mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-04 23:43:20 +08:00
I previously failed to include a bunch of validation checks I assumed had been covered so fixed that first and got a bunch of new issues detected. Also added a parameter specification test case for https://github.com/galaxyproject/galaxy/issues/19908 and fixed that.
30 lines
879 B
XML
30 lines
879 B
XML
<tool id="gx_int_optional" name="gx_int_optional" version="1.0.0">
|
|
<command><![CDATA[
|
|
echo '$parameter' >> '$output'
|
|
]]></command>
|
|
<inputs>
|
|
<param name="parameter" value="1" type="integer" optional="true" />
|
|
</inputs>
|
|
<outputs>
|
|
<data name="output" format="txt" />
|
|
</outputs>
|
|
<tests>
|
|
<test>
|
|
<param name="parameter" value_json="12456" />
|
|
<output name="output">
|
|
<assert_contents>
|
|
<has_line line="12456" />
|
|
</assert_contents>
|
|
</output>
|
|
</test>
|
|
<test>
|
|
<param name="parameter" value_json="null" />
|
|
<output name="output">
|
|
<assert_contents>
|
|
<has_line line="1" negate="true" />
|
|
</assert_contents>
|
|
</output>
|
|
</test>
|
|
</tests>
|
|
</tool>
|