During the DAWN workshop the issue of installing Squish came up. Here
is the script that I wrote (improved and extended by Matthew Webber).
This script runs on the clean VM Guest to extract all the ZIP files
and install and run squish.
The key bits are:
1) Installing license:
cp "$SCRATCH/squish_control/.squish-3-license" ~/.squish-3-license
2) Setting up squish (this makes the jars for the version of Java you are using)
"$java" \
-classpath "${SQUISHDIR}/lib/squishjava.jar:${SQUISHDIR}/lib/bcel.jar" \
com.froglogic.squish.awt.FixMethod \
"${jredir}/lib/rt.jar:${SQUISHDIR}/lib/squishjava.jar" \
"${SQUISHDIR}/lib/squishrt.jar"
3) Set all the config details:
many times: $squishserver --config ...
4) Run the tests:
($SQUISHDIR/bin/squishrunner \
--testsuite $SCRATCH/squish_tests/$squish_test_location/$suite \
--reportgen stdout \
--reportgen
xml2.1,$SCRATCH/results/report_${squish_test_location}_${suite}_xml2.1.xml
\
--reportgen
xmljunit,$SCRATCH/results/report_${squish_test_location}_${suite}_xmljunit.xml
\
--resultdir $SCRATCH/results \
> $SCRATCH/results/squish_runner_${squish_test_location}_${suite}.log
2>&1) || true
Jonah
~~~
Jonah Graham
Kichwa Coders Ltd.
|