forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More tests for various data column feature combos.
- Loading branch information
Showing
9 changed files
with
170 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
test/functional/tools/parameters/gx_data_column_accept_default.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<tool id="gx_data_column_accept_default" name="gx_data_column_accept_default" 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" accept_default="true" /> | ||
</inputs> | ||
<expand macro="simple_text_output" /> | ||
<tests> | ||
<test> | ||
<param name="ref_parameter" value="2.tabular" /> | ||
<expand macro="assert_output"> | ||
<has_line line="parameter: 1"/> | ||
</expand> | ||
</test> | ||
</tests> | ||
</tool> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
test/functional/tools/parameters/gx_data_column_multiple_accept_default.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<tool id="gx_data_column_multiple_accept_default" name="gx_data_column_multiple_accept_default" 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" accept_default="true" /> | ||
</inputs> | ||
<expand macro="simple_text_output" /> | ||
<tests> | ||
<test> | ||
<param name="ref_parameter" value="2.tabular" /> | ||
<expand macro="assert_output"> | ||
<has_line line="parameter: 1"/> | ||
</expand> | ||
</test> | ||
</tests> | ||
</tool> |
File renamed without changes.
21 changes: 21 additions & 0 deletions
21
test/functional/tools/parameters/gx_data_column_multiple_optional_with_default.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<tool id="gx_data_column_multiple_optional_with_default" name="gx_data_column_multiple_optional_with_default" 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" optional="true" value="1, 2" /> | ||
</inputs> | ||
<expand macro="simple_text_output" /> | ||
<tests> | ||
<test> | ||
<param name="ref_parameter" value="2.tabular" /> | ||
<expand macro="assert_output"> | ||
<has_line line="parameter: 1,2"/> | ||
</expand> | ||
</test> | ||
</tests> | ||
</tool> |
21 changes: 21 additions & 0 deletions
21
test/functional/tools/parameters/gx_data_column_multiple_with_default.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<tool id="gx_data_column_multiple_with_default" name="gx_data_column_multiple_with_default" 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" value="1,2" /> | ||
</inputs> | ||
<expand macro="simple_text_output" /> | ||
<tests> | ||
<test> | ||
<param name="ref_parameter" value="2.tabular" /> | ||
<expand macro="assert_output"> | ||
<has_line line="parameter: 1,2"/> | ||
</expand> | ||
</test> | ||
</tests> | ||
</tool> |
22 changes: 22 additions & 0 deletions
22
test/functional/tools/parameters/gx_data_column_with_default.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<tool id="gx_data_column_with_default" name="gx_data_column_with_default" 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" value="2" /> | ||
</inputs> | ||
<expand macro="simple_text_output" /> | ||
<tests> | ||
<!-- these parameters are implicitly optional --> | ||
<test> | ||
<param name="ref_parameter" value="2.tabular" /> | ||
<expand macro="assert_output"> | ||
<has_line line="parameter: 2"/> | ||
</expand> | ||
</test> | ||
</tests> | ||
</tool> |
22 changes: 22 additions & 0 deletions
22
test/functional/tools/parameters/gx_data_column_with_default_legacy.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<tool id="gx_data_column_with_default_legacy" name="gx_data_column_with_default_legacy" 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" default_value="3" /> | ||
</inputs> | ||
<expand macro="simple_text_output" /> | ||
<tests> | ||
<!-- these parameters are implicitly optional --> | ||
<test> | ||
<param name="ref_parameter" value="2.tabular" /> | ||
<expand macro="assert_output"> | ||
<has_line line="parameter: 3"/> | ||
</expand> | ||
</test> | ||
</tests> | ||
</tool> |