mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Based on idea by @peterjc in a discussion here - http://dev.list.galaxyproject.org/Geting-integer-value-from-InputValueWrapper-in-plugin-xml-file-td4666971.html. With simple test demonstrating new functionality. Run test with ./run_tests.sh -framework -id cheetah_casting
28 lines
878 B
XML
28 lines
878 B
XML
<tool id="cheetah_casting" name="cheetah_casting" version="1.0.0">
|
|
<command>
|
|
#set $int_val_inc = int($inttest) + 1
|
|
#set $float_val_inc = float($floattest) + 1
|
|
echo $int_val_inc >> $out_file1;
|
|
echo $float_val_inc >> $out_file1;
|
|
</command>
|
|
<inputs>
|
|
<param name="inttest" value="1" type="integer" />
|
|
<param name="floattest" value="1.0" type="float" />
|
|
</inputs>
|
|
<outputs>
|
|
<data name="out_file1" format="txt" />
|
|
</outputs>
|
|
<tests>
|
|
<test>
|
|
<param name="inttest" value="1" />
|
|
<param name="floattest" value="2.5" />
|
|
<output name="out_file1">
|
|
<assert_contents>
|
|
<has_line line="2" />
|
|
<has_line line="3.5" />
|
|
</assert_contents>
|
|
</output>
|
|
</test>
|
|
</tests>
|
|
</tool>
|