Files
galaxy/test/functional/tools/validation_dataset_metadata_in_file.xml
T
Matthias Bernt a60a231b28 remove TODOs from functional tool tests
I guess test data is referred by the file name. This leads to a clash
with the dbkeys.
2021-08-02 15:02:11 +02:00

32 lines
1.4 KiB
XML

<tool id="validation_dataset_metadata_in_file" name="validation_dataset_metadata_in_file" profile="21.09" version="0.1">
<command><![CDATA[
echo 'Hello World' > out1
]]></command>
<inputs>
<!-- test dataset_metadata_in_file validator with and without negation
the test also uses the data table fasta_indexes.loc, but it could be any file in the tool data dir -->
<param name="value" type="data" format="data">
<validator type="dataset_metadata_in_file" filename="fasta_indexes.loc" metadata_name="dbkey" metadata_column="1"/>
</param>
<param name="value_neg" type="data" format="data">
<validator type="dataset_metadata_in_file" filename="fasta_indexes.loc" line_startswith="h" metadata_name="dbkey" metadata_column="1" negate="true"/>
</param>
</inputs>
<outputs>
<data name="out_file1" format="txt" from_work_dir="out1"/>
</outputs>
<tests>
<!-- hg19 is in the file and hg38 isn't -->
<test expect_failure="false">
<param name="value" value="1.fasta" dbkey="hg19"/>
<param name="value_neg" value="2.fasta" dbkey="hg38"/>
</test>
<test expect_failure="true">
<param name="value" value="1.fasta" dbkey="hg38"/>
<param name="value_neg" value="2.fasta" dbkey="hg19"/>
</test>
</tests>
<help>
</help>
</tool>