Add test that verifies ftype is being set correctly

This commit is contained in:
mvdbeek
2019-04-07 23:15:35 +02:00
parent 0d20c031c2
commit 3e3d15a84b
+33 -24
View File
@@ -1,24 +1,33 @@
<tool id="inheritance_simple" name="inheritance_simple" version="1.0.0">
<description>(demonstrates subtypes are usable for parent format)</description>
<command>
cat $input1 > $out_file1
</command>
<inputs>
<param name="input1" type="data" label="Copy FASTQ" format="fastq" />
</inputs>
<outputs>
<data name="out_file1" format_source="input1" metadata_source="input1"/>
</outputs>
<tests>
<test>
<param name="input1" value="1.fastqsanger" ftype="fastqsanger" />
<output name="out_file1" file="1.fastqsanger" ftype="fastqsanger" />
</test>
<test>
<param name="input1" value="1.fastqsolexa" ftype="fastqsolexa" />
<output name="out_file1" file="1.fastqsolexa" ftype="fastqsolexa" />
</test>
</tests>
<help>
</help>
</tool>
<tool id="inheritance_simple" name="inheritance_simple" version="1.0.0">
<description>(demonstrates subtypes are usable for parent format)</description>
<command>
cat '$input1' > '$out_file1'
</command>
<inputs>
<param name="input1" type="data" label="Copy FASTQ" format="fastq" />
</inputs>
<outputs>
<data name="out_file1" format_source="input1" metadata_source="input1"/>
</outputs>
<tests>
<test>
<param name="input1" value="1.fastqsanger.gz"/>
<!-- should be converted to fastqsanger, so output should be fastqsanger -->
<output name="out_file1" ftype="fastqsanger">
<assert_contents>
<has_line line="@1831_573_1004/1"/>
</assert_contents>
</output>
</test>
<test>
<param name="input1" value="1.fastqsanger" ftype="fastqsanger" />
<output name="out_file1" file="1.fastqsanger" ftype="fastqsanger" />
</test>
<test>
<param name="input1" value="1.fastqsolexa" ftype="fastqsolexa" />
<output name="out_file1" file="1.fastqsolexa" ftype="fastqsolexa" />
</test>
</tests>
<help>
</help>
</tool>