|
0
|
1 <tool id="dummy_tool" name="Dummy Tool">
|
|
|
2 <description>Sleeps for the specified number of seconds.</description>
|
|
|
3 <inputs>
|
|
|
4 <param name="empty_file" type="data" format="txt, fastq" label="Random file to allow chaining" />
|
|
|
5 <param name="num_seconds" type="select" label="Sleep for how long?">
|
|
|
6 <option value="2">2 seconds</option>
|
|
|
7 <option value="3">3 seconds</option>
|
|
|
8 <option value="5">5 seconds</option>
|
|
|
9 <option value="10">10 seconds</option>
|
|
|
10 <option value="20">20 seconds</option>
|
|
|
11 <option value="30">30 seconds</option>
|
|
|
12 <option value="60">1 minute</option>
|
|
|
13 </param>
|
|
|
14 </inputs>
|
|
|
15 <command interpreter="bash">$script_file</command>
|
|
|
16 <configfiles>
|
|
|
17 <configfile name="script_file">
|
|
|
18 #!/bin/bash
|
|
|
19 sleep $num_seconds
|
|
|
20 echo -n "hello genome" > ${output_file}
|
|
|
21 </configfile>
|
|
|
22 </configfiles>
|
|
|
23 <outputs>
|
|
|
24 <data name="output_file" format="txt"/>
|
|
|
25 </outputs>
|
|
|
26 </tool>
|