Skip to content

Commit

Permalink
Work toward data column support in tool parameter meta models.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Aug 5, 2024
1 parent 6f39352 commit be483cf
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions test/functional/tools/parameters/gx_column.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<tool id="gx_column" name="gx_column" version="1.0.0">
<macros>
<import>macros.xml</import>
</macros>
<command><![CDATA[
echo 'parameter: $parameter' >> '$output'
]]></command>
<inputs>
<param name="ref_parameter" type="data" format="tabular" />
<param name="parameter" type="data_column" data_ref="ref_parameter" multiple="true" />
</inputs>
<expand macro="simple_text_output" />
<tests>
<test>
<param name="ref_parameter" value="2.tabular" />
<param name="parameter" value="1" />
<expand macro="assert_output">
<has_line line="parameter: 1"/>
</expand>
</test>
<test>
<param name="ref_parameter" value="2.tabular" />
<param name="parameter" value="2" />
<expand macro="assert_output">
<has_line line="parameter: 2"/>
</expand>
</test>
<!-- these parameters are implicitly optional -->
<test>
<param name="ref_parameter" value="2.tabular" />
<expand macro="assert_output">
<has_line line="parameter: 1"/>
</expand>
</test>
</tests>
</tool>

0 comments on commit be483cf

Please sign in to comment.