Files
galaxy/test/functional/tools/exit_code_oom.xml
T
John Chilton f017de30bf Tool-centric annotation of out of memory errors.
- Update explicit stdio definitions as well as detect_errors-based definitions to allow this.
- Update runner code to allow resubmission in such cases.
2017-12-22 09:08:18 -05:00

34 lines
953 B
XML

<tool id="exit_code_oom" name="exit_code_oom">
<!-- tool errors out with identified OOM error if less than 10MB are allocated. -->
<command detect_errors="exit_code" oom_exit_code="42"><![CDATA[
echo 'Hello' > '$out_file1';
echo "\$GALAXY_MEMORY_MB";
: \${GALAXY_MEMORY_MB:=20};
echo "\$GALAXY_MEMORY_MB";
if [ "\$GALAXY_MEMORY_MB" -lt 10 ];
then
exit 42;
else
exit 0;
fi
]]></command>
<inputs>
<param name="input" type="integer" label="Dummy" value="6" />
</inputs>
<outputs>
<data name="out_file1" />
</outputs>
<help>
</help>
<tests>
<test>
<param name="input" value="5" />
<output name="out_file1">
<assert_contents>
<has_line line="Hello" />
</assert_contents>
</output>
</test>
</tests>
</tool>