Mercurial > repos > sanbi-uwc > trimmomatic
comparison run_planemo_tests.sh @ 0:d8975856862e draft
planemo upload for repository https://github.com/SANBI-SA/galaxy-tools/tree/master/tools/trimmomatic commit 59bf1dad1e71026bff0431a020335c51ce1fd153
| author | sanbi-uwc |
|---|---|
| date | Fri, 20 Jan 2017 08:00:23 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:d8975856862e |
|---|---|
| 1 #!/bin/bash | |
| 2 # | |
| 3 # Install dependencies and set up environment for | |
| 4 # trimmomatic tool, then run tests using planemo | |
| 5 # | |
| 6 # Note that any arguments supplied to the script are | |
| 7 # passed directly to the "planemo test..." invocation | |
| 8 # | |
| 9 # e.g. --install_galaxy (to get planemo to create a | |
| 10 # Galaxy instance to run tests) | |
| 11 # | |
| 12 # --galaxy_root DIR (to run tests using existing | |
| 13 # Galaxy instance) | |
| 14 # | |
| 15 # List of dependencies | |
| 16 TOOL_DEPENDENCIES="trimmomatic/0.36" | |
| 17 # Where to find them | |
| 18 TOOL_DEPENDENCIES_DIR=$(pwd)/test.tool_dependencies.trimmomatic | |
| 19 if [ ! -d $TOOL_DEPENDENCIES_DIR ] ; then | |
| 20 echo WARNING $TOOL_DEPENDENCIES_DIR not found >&2 | |
| 21 echo Creating tool dependencies dir | |
| 22 mkdir -p $TOOL_DEPENDENCIES_DIR | |
| 23 echo Installing tool dependencies | |
| 24 $(dirname $0)/install_tool_deps.sh $TOOL_DEPENDENCIES_DIR | |
| 25 fi | |
| 26 # Load dependencies | |
| 27 for dep in $TOOL_DEPENDENCIES ; do | |
| 28 env_file=$TOOL_DEPENDENCIES_DIR/$dep/env.sh | |
| 29 if [ -e $env_file ] ; then | |
| 30 . $env_file | |
| 31 else | |
| 32 echo ERROR no env.sh file found for $dep >&2 | |
| 33 exit 1 | |
| 34 fi | |
| 35 done | |
| 36 # Run the planemo tests | |
| 37 planemo test $@ $(dirname $0)/trimmomatic.xml | |
| 38 ## | |
| 39 # |
