mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Clean up tool framework test tools.
Add example of nested conditional disambiugation.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<tool id="velvet_inspired" name="velvet_inspired" version="1.0.0">
|
||||
<description>Velvet sequence assembler for very short reads</description>
|
||||
<tool id="composite" version="1.0.0">
|
||||
<command>cat '$input.extra_files_path/Sequences' > $output</command>
|
||||
<inputs>
|
||||
<param name="input" type="data" format="velvet" label="Velvet Dataset" help="Prepared by velveth."/>
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<tool id="handle_cond" name="handle_cond">
|
||||
<description>tail-to-head</description>
|
||||
<!-- -->
|
||||
<tool id="disambiguate_cond" name="disambiguate_cond">
|
||||
<command>
|
||||
echo "$p1.p1v $p2.p2v $p3.p3v" > $out_file1; cat "$files.p4.file" >> $out_file1;
|
||||
</command>
|
||||
@@ -61,5 +59,29 @@
|
||||
</assert_contents>
|
||||
</output>
|
||||
</test>
|
||||
<test>
|
||||
<conditional name="p1">
|
||||
<param name="use" value="False"/>
|
||||
</conditional>
|
||||
<conditional name="p2">
|
||||
<param name="use" value="True"/>
|
||||
</conditional>
|
||||
<conditional name="p3">
|
||||
<param name="use" value="False"/>
|
||||
</conditional>
|
||||
<conditional name="files">
|
||||
<param name="attach_files" value="True" />
|
||||
<conditional name="p4">
|
||||
<param name="use" value="True"/>
|
||||
<param name="file" value="simple_line_alternative.txt" />
|
||||
</conditional>
|
||||
</conditional>
|
||||
<output name="out_file1">
|
||||
<assert_contents>
|
||||
<has_line line="7 4 7" />
|
||||
<has_line line="This is a different line of text." />
|
||||
</assert_contents>
|
||||
</output>
|
||||
</test>
|
||||
</tests>
|
||||
</tool>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<tool id="multirepeat" name="multirepeat">
|
||||
<description>tail-to-head</description>
|
||||
<tool id="multi_repeats" name="multi_repeats">
|
||||
<command>
|
||||
cat $input1 #for $q in $queries# ${q.input2} #end for# #for $q in $more_queries# ${q.more_queries_input} #end for# > $out_file1
|
||||
</command>
|
||||
|
||||
Reference in New Issue
Block a user