forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exit_code_oom.xml
33 lines (33 loc) · 953 Bytes
/
exit_code_oom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<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>