Require two paths for rgtest.sh galaxyroot and outroot

test with a /tmp path for outroot...this script will recreate all the
snp/wga test outputs if you ask it to - which may or may not be what
you want...
This commit is contained in:
Ross Lazarus
2010-05-22 19:47:50 -04:00
parent dc0e679767
commit 69b4b1fd25
2 changed files with 24 additions and 5 deletions
+1 -1
View File
@@ -48,7 +48,7 @@
<param name="t" value="2" />
<param name="s" value="2" />
<output name='out_file1' file='rgtestouts/rgEigPCA/rgEigPCAtest1.html' ftype='html' compare='diff' lines_diff='195'>
<extra_files type="file" name='rgEigPCAtest1_PCAPlot.pdf' value="rgtestouts/rgEigPCA/rgEigPCAtest1_PCAPlot.pdf" compare="sim_size" delta="30000"/>
<extra_files type="file" name='rgEigPCAtest1_PCAPlot.pdf' value="rgtestouts/rgEigPCA/rgEigPCAtest1_PCAPlot.pdf" compare="sim_size" delta="3000"/>
</output>
<output name='pca' file='rgtestouts/rgEigPCA/rgEigPCAtest1.txt' compare='diff'/>
</test>
+23 -4
View File
@@ -1,14 +1,33 @@
#!/bin/sh
# script to generate all functional test outputs for each rgenetics tool
# could be run at installation to ensure all dependencies are in place?
GALAXYROOT=`pwd`
echo "using $GALAXYROOT"
if test $# -lt 2
then
echo "We need to agree on 2 parameters - GalaxyRoot and OutRoot - use paths to galaxy and galaxy to re-create all test outputs"
echo "or more prudently, galaxy and /tmp/foo for checking without updating all your test-data"
echo "Exiting with no changes"
exit 1
fi
if [ $1 ]
then
GALAXYROOT=$1
else
GALAXYROOT=`pwd`
fi
if [ $2 ]
then
OUTROOT=$2
else
OUTROOT=`pwd`
OUTROOT="$OUTROOT/test-data"
fi
echo "using $GALAXYROOT as galaxyroot and $OUTROOT as outroot"
# change this as needed for your local install
INPATH="${GALAXYROOT}/test-data"
BINPATH="${GALAXYROOT}/tool-data/rg/bin"
TOOLPATH="${GALAXYROOT}/tools/rgenetics"
OROOT="${GALAXYROOT}/test-data/rgtestouts"
NORMALOROOT="${GALAXYROOT}/test-data"
OROOT="${OUTROOT}/test-data/rgtestouts"
NORMALOROOT="${OUTROOT}/test-data"
mkdir -p $OROOT
rm -rf $OROOT/*
# needed for testing - but tool versions should be bumped if this is rerun?