Files
galaxy/test/functional/tools/parameters/gx_select.xml
T

38 lines
1.2 KiB
XML

<tool id="gx_select" name="gx_select" version="1.0.0">
<command><![CDATA[
echo '$parameter' >> '$output'
]]></command>
<inputs>
<param name="parameter" type="select">
<option value="--ex1">Ex1</option>
<option value="ex2">Ex2</option>
<option value="--ex3">Ex3</option>
<option value="--ex4">Ex4</option>
<option value="ex5">Ex5</option>
</param>
</inputs>
<outputs>
<data name="output" format="txt" />
</outputs>
<tests>
<test>
<param name="parameter" value="ex2" />
<output name="output">
<assert_contents>
<has_line line="ex2" />
</assert_contents>
</output>
</test>
<test>
<!-- Selects implicitly default to the first option as the default option.
Additional verification in test_select_first_by_default API test in test_tools.py.
-->
<output name="output">
<assert_contents>
<has_line line="--ex1" />
</assert_contents>
</output>
</test>
</tests>
</tool>