view output_test_tool.xml @ 0:44a961461b85 draft default tip

planemo upload
author sanbi-uwc
date Tue, 30 Aug 2022 12:50:52 +0000
parents
children
line wrap: on
line source

<tool id="output_test_tool" name="Output Test Tool" version="0.1.0+galaxy0" python_template_version="3.5" profile="21.05">
    <requirements>
    </requirements>
    <command detect_errors="exit_code"><![CDATA[
        #if $write_stderr
            echo "This output goes to stderr" >&2 ;
        #end if
        #if $write_stdout
            echo "This output goes to stdout" ;
        #end if
        echo "This output is just a placeholder and of no signficance." >'$output1' ;
        #if $fail_job
            exit 1
        #end if
    ]]></command>
    <inputs>
        <param name="write_stdout" type="boolean"  checked="true" label="Write to stdout"  />
        <param name="write_stderr" type="boolean"  checked="true" label="Write to stderr"  />
        <param name="fail_job" type="boolean"  checked="false" label="Fail job" help="Exit with exit code 1, i.e. fail job"  />
    </inputs>
    <outputs>
        <data name="output1" format="txt" label="Output dataset from Output Test Tool" />
    </outputs>
    <help><![CDATA[
        This tool simply writes a dataset and can produce output to stdout, stderr or produce a job failure. It exists
        to test these features in Galaxy.
    ]]></help>
</tool>