1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#!/usr/bin/env bash
#
# this script brings everything together for an automated build/test system
#
set -o errexit
set -o nounset
set -o xtrace
if [ $# -gt 1 ]; then
echo "usage: $0 [ -nosge ]" 2>&1
exit 2
fi
is_sge=1
if [ $# -ge 1 ] && [ "$1" == "-nosge" ]; then
is_sge=0
fi
thisdir=$(dirname $0)
cd $thisdir/..
testname=TESTBALL
bash ./make_release_tarball.bash $testname
tar -xzf $testname.tar.gz
testdir=$(pwd)/$testname
# run through tests:
PYTHONPATH=$testdir/src test/pyflow_unit_tests.py -v
# run this a few times just in case we can russle out any subtle/rare race conditions:
for f in $(seq 5); do
PYTHONPATH=$testdir/src test/pyflow_basic_feature_runner.py --mode local
done
if [ $is_sge == 1 ]; then
PYTHONPATH=$testdir/src test/pyflow_basic_feature_runner.py --mode sge
fi
# run through demos:
for f in cwdDemo envDemo helloWorld makeDemo memoryDemo mutexDemo simpleDemo subWorkflow; do
cd $testdir/demo/$f
python $f.py
python pyflow.data/state/make_pyflow_task_graph.py >| test.dot
done
|