Skip to content

Commit

Permalink
test actions in statically defined collection elements
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Jul 30, 2024
1 parent 3fef58c commit 5e85e29
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion test/functional/tools/metadata_column_names.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<tool id="metadata_columns" name="metadata_columns" version="1.0.0">
<description>Tests whether metadata is being set correctly.</description>
<command><![CDATA[
cp '$input' '$output'
cp '$input' '$output';
cp '$input' '$paired_output.forward' ;
cp '$input' '$paired_output.reverse' ;
]]></command>
<inputs>
<param name="input" type="data" multiple="false" />
Expand All @@ -12,13 +14,33 @@
<action name="column_names" type="metadata" default="First,${input.name}" />
</actions>
</data>
<collection name="paired_output" format="tabular" type="paired" label="Split Pair">
<data name="forward">
<actions>
<action name="dbkey" type="metadata" default="hg38" />
</actions>
</data>
<data name="reverse">
<actions>
<action name="column_names" type="metadata" default="A,B,C" />
</actions>
</data>
</collection>
</outputs>
<tests>
<test>
<param name="input" value="2.tabular" />
<output name="output">
<metadata name="column_names" value="First,2.tabular"/>
</output>
<output_collection name="paired_output" type="paired">
<element name="forward" ftype="tabular" value="2.tabular">
<metadata name="dbkey" value="hg38"/>
</element>
<element name="reverse" ftype="tabular" value="2.tabular">
<metadata name="column_names" value="A,B,C"/>
</element>
</output_collection>
</test>
</tests>
</tool>

0 comments on commit 5e85e29

Please sign in to comment.