Mercurial > repos > refinery-platform > refinery_test
comparison refinery_test_N-1.xml @ 1:b87749d7a24c draft default tip
planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
| author | refinery-platform |
|---|---|
| date | Thu, 22 Feb 2018 14:14:03 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:5b28174e774d | 1:b87749d7a24c |
|---|---|
| 1 <?xml version='1.0' encoding='utf-8'?> | |
| 2 | |
| 3 <tool id="refinery_test_N-1" name="Refinery test tool N-1" version="0.1"> | |
| 4 <description>for testing Galaxy workflow execution from Refinery</description> | |
| 5 <command> | |
| 6 <![CDATA[ | |
| 7 ## Argparse expects many values for a single arg to be in the form of: -i INUPT INPUT1 INPUT2 ... | |
| 8 #set $inputs = " ".join([$input_file.__str__ for $input_file in $input_col]) | |
| 9 | |
| 10 ## Run the test tool with the N inputs from our Dataset Collection | |
| 11 $__tool_directory__/refinery_test_tool.py -i $inputs -o $output_file -e $exit_code -p $p_fail -s $sleep_time $stdout $stderr $empty_outfile | |
| 12 ]]> | |
| 13 </command> | |
| 14 <inputs> | |
| 15 <param name="input_col" type="data_collection" collection_type="list" label="Input file"/> | |
| 16 <param name="sleep_time" type="integer" label="Sleep (seconds)" value="0" min="0"/> | |
| 17 <param name="empty_outfile" type="boolean" label="Produce empty output file" truevalue="--empty_outfile" falsevalue=""/> | |
| 18 <param name="p_fail" type="float" label="Probability of failure [0.0, 1.0]" value="0.0" min="0.0" max="1.0"/> | |
| 19 <param name="stdout" type="boolean" label="Write to standard out" truevalue="--stdout" falsevalue=""/> | |
| 20 <param name="stderr" type="boolean" label="Write to standard error" truevalue="--stderr" falsevalue=""/> | |
| 21 <param name="exit_code" type="integer" label="Exit code [0, 255]" value="0" min="0" max="255"/> | |
| 22 </inputs> | |
| 23 <outputs> | |
| 24 <data format="txt" name="output_file" label="Refinery Test Tool N-1 Output" /> | |
| 25 </outputs> | |
| 26 <stdio> | |
| 27 <exit_code range="1:" level="fatal" /> | |
| 28 <regex match=".+" source="stdout" level="fatal" description="Tool produced output to standard out" /> | |
| 29 <regex match=".+" source="stderr" level="fatal" description="Tool produced output to standard error" /> | |
| 30 </stdio> | |
| 31 <tests> | |
| 32 <test> | |
| 33 <param name="input_col"> | |
| 34 <collection type="list"> | |
| 35 <element name="1" value="file1.txt"/> | |
| 36 <element name="2" value="file2.txt"/> | |
| 37 <element name="3" value="file3.txt"/> | |
| 38 </collection> | |
| 39 </param> | |
| 40 <param name="sleep_time" type="integer" label="Sleep (seconds)" value="0" min="0"/> | |
| 41 <param name="empty_outfile" type="boolean" label="Produce empty output file" truevalue="--empty_outfile" falsevalue=""/> | |
| 42 <param name="p_fail" type="float" label="Probability of failure [0.0, 1.0]" value="0.0" min="0.0" max="1.0"/> | |
| 43 <param name="stdout" type="boolean" label="Write to standard out" truevalue="--stdout" falsevalue=""/> | |
| 44 <param name="stderr" type="boolean" label="Write to standard error" truevalue="--stderr" falsevalue=""/> | |
| 45 <param name="exit_code" type="integer" label="Exit code [0, 255]" value="0" min="0" max="255"/> | |
| 46 <output name="output_file"> | |
| 47 <assert_contents> | |
| 48 <has_text text="Contents of File 1" /> | |
| 49 <has_text text="Contents of File 2" /> | |
| 50 <has_text text="Contents of File 3" /> | |
| 51 </assert_contents> | |
| 52 </output> | |
| 53 </test> | |
| 54 </tests> | |
| 55 <help> | |
| 56 .. class:: infomark | |
| 57 | |
| 58 **Purpose** | |
| 59 | |
| 60 To test Galaxy workflow execution and monitoring from Refinery. | |
| 61 | |
| 62 ----- | |
| 63 | |
| 64 .. class:: infomark | |
| 65 | |
| 66 **Inputs and outputs** | |
| 67 | |
| 68 This wrapper will accept A Dataset collection list as input and produce a single output file with the concatenated, annotated content of each element in the Dataset Collection. | |
| 69 | |
| 70 *Note:* You must set the "Probability of failure" parameter to a non-zero value | |
| 71 for "Write to standard out", "Write to standard error" or "Exit code" to take effect. | |
| 72 </help> | |
| 73 </tool> |
