mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
36 lines
1.0 KiB
XML
36 lines
1.0 KiB
XML
<tool id="validation_sanitizer" name="Validation (simple sanitizer)" version="1.0.0">
|
|
<command><![CDATA[
|
|
echo '${text}' >> out1
|
|
]]></command>
|
|
<inputs>
|
|
<param name="text" type="text" label="text input">
|
|
<sanitizer>
|
|
<valid initial="none">
|
|
<add value="a"/>
|
|
<add value="b"/>
|
|
<add value="d"/>
|
|
<add value="e"/>
|
|
</valid>
|
|
<mapping initial="none">
|
|
<add source="@" target="c"/>
|
|
</mapping>
|
|
</sanitizer>
|
|
</param>
|
|
</inputs>
|
|
<outputs>
|
|
<data name="out_file1" from_work_dir="out1" />
|
|
</outputs>
|
|
<tests>
|
|
<test>
|
|
<param name="text" value="ab@de" />
|
|
<output name="out_file1">
|
|
<assert_contents>
|
|
<has_line line="abcde" />
|
|
</assert_contents>
|
|
</output>
|
|
</test>
|
|
</tests>
|
|
<help>
|
|
</help>
|
|
</tool>
|