Skip to content

Commit 2da83ae

Browse files
authored
Merge pull request #1 from mvdbeek/qiagu-data_column_1
Test dumping multiple="false" data_column param as json
2 parents ca57b77 + 88132f9 commit 2da83ae

4 files changed

Lines changed: 25 additions & 0 deletions

File tree

test-data/11.tabular

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1 2 3 4 5 6 7 8 9 10 11

test-data/configfile.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"col": [11]}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<tool id="column_param_configfile" name="Column Param into configfile" >
2+
<command>
3+
cat '$inputs' > '$output1'
4+
</command>
5+
<configfiles>
6+
<inputs name="inputs" />
7+
</configfiles>
8+
<inputs>
9+
<param type="data" format="tabular" name="input1" label="Input 1" />
10+
<param name="col" type="data_column" data_ref="input1" label="Column to Use" />
11+
</inputs>
12+
<outputs>
13+
<data name="output1" format="data" />
14+
</outputs>
15+
<tests>
16+
<test>
17+
<param name="input1" value="11.tabular" />
18+
<param name="col" value="11" />
19+
<output name="output1" file="configfile.json"/>
20+
</test>
21+
</tests>
22+
</tool>

test/functional/tools/samples_tool_conf.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
<tool file="paths_as_file.xml" />
8484
<tool file="param_text_option.xml" />
8585
<tool file="column_param.xml" />
86+
<tool file="column_param_configfile.xml" />
8687
<tool file="column_multi_param.xml" />
8788
<tool file="special_params.xml" />
8889
<tool file="section.xml" />

0 commit comments

Comments
 (0)