can run valgrind or gdb easily with `make check'.
+Mon Feb 16 21:36:57 2004 Ben Pfaff <blp@gnu.org>
+
+ * */*.sh: Prepend $SUPERVISOR to invocations of pspp so that we
+ can run valgrind or gdb easily with `make check'
+
Sat Dec 13 00:08:23 2003 Ben Pfaff <blp@gnu.org>
* syntax: Run a diff when there's no expected output, too.
if [ $? -ne 0 ] ; then no_result ; fi
-$here/../src/pspp $TEMPDIR/prog.sps
+$SUPERVISOR $here/../src/pspp $TEMPDIR/prog.sps
if [ $? -ne 0 ] ; then fail ; fi
if [ $? -ne 0 ] ; then no_result ; fi
-$here/../src/pspp $TEMPDIR/ct.stat
+$SUPERVISOR $here/../src/pspp $TEMPDIR/ct.stat
if [ $? -ne 0 ] ; then fail ; fi
if [ $? -ne 0 ] ; then no_result ; fi
-$here/../src/pspp $TEMPDIR/ct.stat > /dev/null
+$SUPERVISOR $here/../src/pspp $TEMPDIR/ct.stat > /dev/null
if [ $? -ne 1 ] ; then fail ; fi
cd $TEMPDIR
activity="run data"
-$here/../src/pspp $TEMPDIR/ff.stat
+$SUPERVISOR $here/../src/pspp $TEMPDIR/ff.stat
if [ $? -ne 0 ] ; then fail ; fi
cd $TEMPDIR
activity="run data"
-$here/../src/pspp -o html $TEMPDIR/ff.stat
+$SUPERVISOR $here/../src/pspp -o html $TEMPDIR/ff.stat
if [ $? -ne 0 ] ; then fail ; fi
EOF
if [ $? -ne 0 ] ; then no_result ; fi
-$here/../src/pspp -o raw-ascii $TEMPDIR/rnd.sps
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/rnd.sps
if [ $? -ne 0 ] ; then no_result ; fi
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$here/../src/pspp -o raw-ascii $TEMPDIR/test.sps
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/test.sps
if [ $? -ne 0 ] ; then no_result ; fi
activity="test result"
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$here/../src/pspp -o raw-ascii $TEMPDIR/prog.sps
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/prog.sps
if [ $? -ne 0 ] ; then no_result ; fi
activity="test output"
activity="run program"
-$here/../src/pspp -o raw-ascii $TEMPDIR/prog.sps
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/prog.sps
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare data"
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$here/../src/pspp -o raw-ascii prog.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii prog.stat
if [ $? -ne 0 ] ; then no_result ; fi
# Like the above comments say ...
activity="run program"
-$here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/compute.stat
+$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/compute.stat
if [ $? -ne 0 ] ; then no_result ; fi
diff -B -b $TEMPDIR/pspp.list - <<EOF
if [ $? -ne 0 ] ; then no_result ; fi
-$here/../src/pspp -o raw-ascii $TEMPDIR/count.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/count.stat
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$here/../src/pspp -o raw-ascii $TEMPDIR/descript.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/descript.stat
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"
# This command must fail
activity="run prog 1"
-$here/../src/pspp $TEMPDIR/foo.sps > /dev/null
+$SUPERVISOR $here/../src/pspp $TEMPDIR/foo.sps > /dev/null
if [ $? -eq 0 ] ; then fail ; fi
activity="run prog 1"
-$here/../src/pspp $TEMPDIR/foo.sps
+$SUPERVISOR $here/../src/pspp $TEMPDIR/foo.sps
if [ $? -ne 0 ] ; then fail ; fi
# foobar should now be gone
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/file-lab.stat
+$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/file-lab.stat
if [ $? -ne 0 ] ; then no_result ; fi
# We need to filter out the dates/times
activity="run program"
-$here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/filter.stat
+$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/filter.stat
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$here/../src/pspp -o raw-ascii $TEMPDIR/flip.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/flip.stat
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$here/../src/pspp -o raw-ascii $TEMPDIR/lag.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/lag.stat
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare result"
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/list.stat
+$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/list.stat
if [ $? -ne 0 ] ; then no_result ; fi
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/loop.stat > $TEMPDIR/stdout
+$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/loop.stat > $TEMPDIR/stdout
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare stdout"
activity="run prog"
-$here/../src/pspp -o raw-ascii $TEMPDIR/percents.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/percents.stat
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"
activity="run program"
-$here/../src/pspp -o raw-ascii --testing-mode $TEMPDIR/print.stat > $TEMPDIR/errs
+$SUPERVISOR $here/../src/pspp -o raw-ascii --testing-mode $TEMPDIR/print.stat > $TEMPDIR/errs
# Note vv --- there are errors in input. Therefore, the command must FAIL
if [ $? -eq 0 ] ; then fail ; fi
activity="run program"
-$here/../src/pspp -o raw-ascii --testing-mode $TEMPDIR/sample.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii --testing-mode $TEMPDIR/sample.stat
if [ $? -ne 0 ] ; then no_result ; fi
activity="create head"
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$here/../src/pspp -o raw-ascii $TEMPDIR/sort.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/sort.stat
if [ $? -ne 0 ] ; then no_result ; fi
# Now there should be some sorted data in $TEMPDIR/pspp.list
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$here/../src/pspp -o raw-ascii $TEMPDIR/split.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/split.stat
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare results"
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program 1"
-$here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/save.stat
+$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/save.stat
if [ $? -ne 0 ] ; then no_result ; fi
activity="create program 2"
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program 2"
-$here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/read.stat
+$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/read.stat
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$here/../src/pspp -o raw-ascii $TEMPDIR/tabs.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/tabs.stat
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/weight.stat
+$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/weight.stat
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare results"