Files
galaxy/test/functional/tools/multi_select.xml
T
John Chilton a0d6d113ab Add more sample tools for tool testing framework.
Adding multi_select.xml, which demonstrates twill cannot deal with - at the beginning of select param values - this test works immediately with API interactor.

Also adding a multi_output.xml, this is a tool using variable number of outputs (force_refresh=True), both interactors pass this but it is a good test to verify that.

Also adding example to test multi-page tools (multi_page.xml) - both interactors pass this test. Though the API needed to be adjusted to allow its use (in a previous changeset).

Also adding example tool demonstrating extra_files output.

Finally, a tool simple_constructs.xml that just tests the basics, various parameter types, simple conditional, and simple repeat.
2013-11-21 19:17:12 -06:00

30 lines
870 B
XML

<tool id="multi_select" name="multi_select" version="1.0.0">
<description>multi_select</description>
<configfiles>
<configfile name="config">${select_ex}</configfile>
</configfiles>
<command>cat $config > $output</command>
<inputs>
<param name="select_ex" type="select" display="checkboxes" multiple="true">
<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 format="txt" name="output" />
</outputs>
<tests>
<test>
<param name="select_ex" value="--ex1,ex2,--ex3" />
<output name="output">
<assert_contents>
<has_line line="--ex1,ex2,--ex3" />
</assert_contents>
</output>
</test>
</tests>
</tool>