mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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.
48 lines
1.8 KiB
XML
48 lines
1.8 KiB
XML
<tool id="simple_constructs" name="simple_constructs">
|
|
<command>
|
|
echo "$p1.p1val" >> $out_file1;
|
|
echo "$booltest" >> $out_file1;
|
|
echo "$inttest" >> $out_file1;
|
|
echo "$floattest" >> $out_file1;
|
|
cat "$files[0].file" >> $out_file1;
|
|
</command>
|
|
<inputs>
|
|
<conditional name="p1">
|
|
<param type="boolean" name="p1use" />
|
|
<when value="true">
|
|
<param name="p1val" value="p1used" type="text" />
|
|
</when>
|
|
<when value="false">
|
|
<param name="p1val" value="p1notused" type="text" />
|
|
</when>
|
|
</conditional>
|
|
<param name="booltest" truevalue="booltrue" falsevalue="boolfalse" checked="false" type="boolean" />
|
|
<param name="inttest" value="1" type="integer" />
|
|
<param name="floattest" value="1.0" type="float" />
|
|
<repeat name="files" title="Files">
|
|
<param name="file" type="data" format="txt" />
|
|
</repeat>
|
|
</inputs>
|
|
<outputs>
|
|
<data name="out_file1" format="txt" />
|
|
</outputs>
|
|
<tests>
|
|
<test>
|
|
<param name="p1use" value="true" />
|
|
<param name="booltest" value="true" />
|
|
<param name="inttest" value="12456" />
|
|
<param name="floattest" value="6.789" />
|
|
<param name="file" value="simple_line.txt" /> <!-- This is a line of text. -->
|
|
<output name="out_file1">
|
|
<assert_contents>
|
|
<has_line line="p1used" />
|
|
<has_line line="booltrue" />
|
|
<has_line line="12456" />
|
|
<has_line line="6.789" />
|
|
<has_line line="This is a line of text." />
|
|
</assert_contents>
|
|
</output>
|
|
</test>
|
|
</tests>
|
|
</tool>
|