Files
galaxy/test/functional/tools/section.xml
T
John Chilton 3b263a8df4 Tool testing sections.
- Add example tool for testing (section.xml).
 - Implement popular flat group style test cases for section elements (first example in section.xml).
 - Implement nested groupping style test cases for section elements (section example in section.xml).
2015-03-23 20:04:49 -04:00

44 lines
1.4 KiB
XML

<tool id="section" name="section">
<command>
echo "$int.inttest" >> $out_file1;
echo "$float.floattest" >> $out_file1;
</command>
<inputs>
<section name="int" title="Integer Section" expanded="true">
<param name="inttest" value="1" type="integer" />
</section>
<section name="float" title="Float Section" expanded="false">
<param name="floattest" value="1.0" type="float" />
</section>
</inputs>
<outputs>
<data name="out_file1" format="txt" />
</outputs>
<tests>
<test>
<param name="inttest" value="12456" />
<param name="floattest" value="6.789" />
<output name="out_file1">
<assert_contents>
<has_line line="12456" />
<has_line line="6.789" />
</assert_contents>
</output>
</test>
<test>
<section name="int">
<param name="inttest" value="12456" />
</section>
<section name="float">
<param name="floattest" value="6.789" />
</section>
<output name="out_file1">
<assert_contents>
<has_line line="12456" />
<has_line line="6.789" />
</assert_contents>
</output>
</test>
</tests>
</tool>