Files
galaxy/test/functional/tools/tool_directory.xml
T
John Chilton b56bd85b6a Expose $__tool_directory__ to tools.
Repeatedly one wants to do things like create symbolic links and then call a helper script - the 'interpreter' tag doesn't allow shell commands before calling a helper script so they could not be used in this fashion. The previous pattern for doing this was then to use the ToolShed only 'set_environment' requirement tag. These were onerous to setup and the resulting tools were no longer portable to non-ToolShed installed contexts - I believe this variant is more robust and elegant.

More information https://trello.com/c/0pgF5PBQ and here https://trello.com/c/XK5SqE1i.
2015-02-03 10:29:34 -05:00

21 lines
496 B
XML

<tool id="tool_directory" name="tool_directory">
<command>
cp $__tool_directory__/tool_directory.xml output1
</command>
<inputs>
<param type="integer" name="ignored" label="Ignored" value="0" />
</inputs>
<outputs>
<data name="output1" type="xml" from_work_dir="output1" />
</outputs>
<tests>
<test>
<output name="output1">
<assert_contents>
<has_text text="QUINE" />
</assert_contents>
</output>
</test>
</tests>
</tool>