|
0
|
1 <tool id="output_test_tool" name="Output Test Tool" version="0.1.0+galaxy0" python_template_version="3.5" profile="21.05">
|
|
|
2 <requirements>
|
|
|
3 </requirements>
|
|
|
4 <command detect_errors="exit_code"><![CDATA[
|
|
|
5 #if $write_stderr
|
|
|
6 echo "This output goes to stderr" >&2 ;
|
|
|
7 #end if
|
|
|
8 #if $write_stdout
|
|
|
9 echo "This output goes to stdout" ;
|
|
|
10 #end if
|
|
|
11 echo "This output is just a placeholder and of no signficance." >'$output1' ;
|
|
|
12 #if $fail_job
|
|
|
13 exit 1
|
|
|
14 #end if
|
|
|
15 ]]></command>
|
|
|
16 <inputs>
|
|
|
17 <param name="write_stdout" type="boolean" checked="true" label="Write to stdout" />
|
|
|
18 <param name="write_stderr" type="boolean" checked="true" label="Write to stderr" />
|
|
|
19 <param name="fail_job" type="boolean" checked="false" label="Fail job" help="Exit with exit code 1, i.e. fail job" />
|
|
|
20 </inputs>
|
|
|
21 <outputs>
|
|
|
22 <data name="output1" format="txt" label="Output dataset from Output Test Tool" />
|
|
|
23 </outputs>
|
|
|
24 <help><![CDATA[
|
|
|
25 This tool simply writes a dataset and can produce output to stdout, stderr or produce a job failure. It exists
|
|
|
26 to test these features in Galaxy.
|
|
|
27 ]]></help>
|
|
|
28 </tool> |