annotate planemotest/planemotest.xml @ 1:0183cad9d13b draft

planemo upload
author fubar
date Thu, 22 Feb 2024 10:48:01 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
0183cad9d13b planemo upload
fubar
parents:
diff changeset
1 <tool name="planemotest" id="planemotest" version="0.01">
0183cad9d13b planemo upload
fubar
parents:
diff changeset
2 <!--Source in git at: https://github.com/fubar2/galaxy-->
0183cad9d13b planemo upload
fubar
parents:
diff changeset
3 <!--Created by toolfactory@galaxy.org at 25/05/2023 01:04:53 using the Galaxy Tool Factory.-->
0183cad9d13b planemo upload
fubar
parents:
diff changeset
4 <description>Tests a ToolFactory archive containing a new tool</description>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
5 <requirements>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
6 <requirement version="0.75.18" type="package">planemo</requirement>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
7 </requirements>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
8 <stdio>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
9 <exit_code range="1:" level="fatal"/>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
10 </stdio>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
11 <version_command><![CDATA[echo "0.01"]]></version_command>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
12 <command><![CDATA[bash
0183cad9d13b planemo upload
fubar
parents:
diff changeset
13 $runme
0183cad9d13b planemo upload
fubar
parents:
diff changeset
14 $Toolshed_archive_to_be_tested
0183cad9d13b planemo upload
fubar
parents:
diff changeset
15 $test_output]]></command>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
16 <configfiles>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
17 <configfile name="runme"><![CDATA[#raw
0183cad9d13b planemo upload
fubar
parents:
diff changeset
18
0183cad9d13b planemo upload
fubar
parents:
diff changeset
19 ### script for ToolFactory toolshed archive test tool
0183cad9d13b planemo upload
fubar
parents:
diff changeset
20 mkdir testout
0183cad9d13b planemo upload
fubar
parents:
diff changeset
21 tar -xvf $1
0183cad9d13b planemo upload
fubar
parents:
diff changeset
22 TOOLNAME=`find . -name "*.xml"`
0183cad9d13b planemo upload
fubar
parents:
diff changeset
23 FIXED=$(basename "$TOOLNAME" | cut -d. -f1)
0183cad9d13b planemo upload
fubar
parents:
diff changeset
24 REP=testout/"$FIXED"_planemo_test_report.html
0183cad9d13b planemo upload
fubar
parents:
diff changeset
25 planemo test --update_test_data --test_output $REP $TOOLNAME > STDOUT
0183cad9d13b planemo upload
fubar
parents:
diff changeset
26 cp $REP $2
0183cad9d13b planemo upload
fubar
parents:
diff changeset
27
0183cad9d13b planemo upload
fubar
parents:
diff changeset
28 #end raw]]></configfile>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
29 </configfiles>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
30 <inputs>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
31 <param name="Toolshed_archive_to_be_tested" type="data" optional="false" label="Toolshed archive to be tested" help="" format="tgz" multiple="false"/>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
32 </inputs>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
33 <outputs>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
34 <data name="test_output" format="html" label="test_output" hidden="false"/>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
35 </outputs>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
36 <tests>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
37 <test>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
38 <output name="test_output" value="test_output_sample" compare="diff" lines_diff="5"/>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
39 <param name="Toolshed_archive_to_be_tested" value="Toolshed_archive_to_be_tested_sample"/>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
40 </test>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
41 </tests>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
42 <help><![CDATA[
0183cad9d13b planemo upload
fubar
parents:
diff changeset
43
0183cad9d13b planemo upload
fubar
parents:
diff changeset
44 **What it Does**
0183cad9d13b planemo upload
fubar
parents:
diff changeset
45
0183cad9d13b planemo upload
fubar
parents:
diff changeset
46 Tests a tool archive with Planemo
0183cad9d13b planemo upload
fubar
parents:
diff changeset
47
0183cad9d13b planemo upload
fubar
parents:
diff changeset
48 Runs planemo test and returns a toolshed archive updated with test outputs and a Planemo test result.
0183cad9d13b planemo upload
fubar
parents:
diff changeset
49
0183cad9d13b planemo upload
fubar
parents:
diff changeset
50 NOTE: First run takes 5+ minutes as Planemo is installed by Conda.
0183cad9d13b planemo upload
fubar
parents:
diff changeset
51 The second and subsequent runs don't have that startup time.
0183cad9d13b planemo upload
fubar
parents:
diff changeset
52
0183cad9d13b planemo upload
fubar
parents:
diff changeset
53 Dogfood demonstration - this tool was generated with the ToolFactory and is included as a sample of what's possible and potentially useful.
0183cad9d13b planemo upload
fubar
parents:
diff changeset
54
0183cad9d13b planemo upload
fubar
parents:
diff changeset
55 ------
0183cad9d13b planemo upload
fubar
parents:
diff changeset
56
0183cad9d13b planemo upload
fubar
parents:
diff changeset
57
0183cad9d13b planemo upload
fubar
parents:
diff changeset
58 Script::
0183cad9d13b planemo upload
fubar
parents:
diff changeset
59
0183cad9d13b planemo upload
fubar
parents:
diff changeset
60 ### script for ToolFactory toolshed archive test tool
0183cad9d13b planemo upload
fubar
parents:
diff changeset
61 mkdir testout
0183cad9d13b planemo upload
fubar
parents:
diff changeset
62 tar -xvf $1
0183cad9d13b planemo upload
fubar
parents:
diff changeset
63 TOOLNAME=`find . -name "*.xml"`
0183cad9d13b planemo upload
fubar
parents:
diff changeset
64 FIXED=$(basename "$TOOLNAME" | cut -d. -f1)
0183cad9d13b planemo upload
fubar
parents:
diff changeset
65 LOG=testout/"$FIXED"_planemo_test_log.txt
0183cad9d13b planemo upload
fubar
parents:
diff changeset
66 REP=testout/"$FIXED"_planemo_test_report.html
0183cad9d13b planemo upload
fubar
parents:
diff changeset
67 echo "using $LOG and $REP"
0183cad9d13b planemo upload
fubar
parents:
diff changeset
68 echo "## Found toolname = $TOOLNAME" > $LOG
0183cad9d13b planemo upload
fubar
parents:
diff changeset
69 planemo test --update_test_data --test_output $REP $TOOLNAME >> $LOG
0183cad9d13b planemo upload
fubar
parents:
diff changeset
70 cp $REP $2
0183cad9d13b planemo upload
fubar
parents:
diff changeset
71
0183cad9d13b planemo upload
fubar
parents:
diff changeset
72 ]]></help>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
73 <citations>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
74 <citation type="doi">10.1093/bioinformatics/bts573</citation>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
75 </citations>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
76 </tool>
0183cad9d13b planemo upload
fubar
parents:
diff changeset
77