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
|
#!/bin/sh
. ../../dttools/test/test_runner_common.sh
test_dir=`basename $0 .sh`.dir
test_output=`basename $0 .sh`.output
prepare()
{
mkdir $test_dir
cd $test_dir
ln -sf ../syntax/variable_scope.makeflow Makeflow
cat > ../$test_output <<EOF
0
1
1 2
0
1
EOF
exit 0
}
run()
{
cd $test_dir
../../src/makeflow -d all;
if [ $? -eq 0 ]; then
exec diff ../$test_output out.all
else
exit 1
fi
}
clean()
{
rm -fr $test_dir $test_output
exit 0
}
dispatch "$@"
# vim: set noexpandtab tabstop=4:
|