Files
galaxy/test/functional/tools/unicode_stream.xml
T

52 lines
1.7 KiB
XML

<tool id="unicode_stream" name="unicode_stream" version="0.1.0">
<description>
</description>
<version_command><![CDATA[
echo "\x00"
]]></version_command>
<command detect_errors="exit_code"><![CDATA[
#if $include_null:
echo "\x00" > '$out_file1' &&
#end if
echo '$input1' >> '$out_file1' &&
cat '$cf' &&
echo "\x00" &&
>&2 cat '$cf' &&
sh -c 'exit $exit'
]]></command>
<configfiles>
<configfile name="cf">ვეპხის ტყაოსანი შოთა რუსთაველი</configfile>
</configfiles>
<inputs>
<param name="input1" type="text" label="Input">
<sanitizer sanitize="false" />
</param>
<param name="exit" type="integer" value="0" label="Exit Code" />
<param name="include_null" type="boolean" label="Include unicode null in output?"/>
</inputs>
<outputs>
<data name="out_file1" format="txt" />
</outputs>
<tests>
<test expect_exit_code="0" expect_failure="false">
<param name="input1" value="This is a line of text."/>
<param name="exit" value="0" />
<output name="out_file1" file="simple_line.txt" />
</test>
<test expect_exit_code="1" expect_failure="true">
<param name="input1" value="This is a line of text."/>
<param name="exit" value="1" />
</test>
<test expect_exit_code="0" expect_failure="false">
<param name="input1" value="ვვვვვ"/>
<param name="exit" value="0" />
</test>
<test expect_exit_code="0" expect_failure="false">
<param name="include_null" value="true"/>
<param name="exit" value="0" />
</test>
</tests>
<help>
</help>
</tool>