From: Ben Pfaff Date: Tue, 17 Feb 2004 05:38:31 +0000 (+0000) Subject: Prepend $SUPERVISOR to invocations of pspp so that we X-Git-Tag: sav-api~2587 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c48bf64ab648b9b761a8e0774db3672d8009c64c;p=pspp Prepend $SUPERVISOR to invocations of pspp so that we can run valgrind or gdb easily with `make check'. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 0545202ee9..f92371b1a5 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +Mon Feb 16 21:36:57 2004 Ben Pfaff + + * */*.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 * syntax: Run a diff when there's no expected output, too. diff --git a/tests/bugs/alpha-freq.sh b/tests/bugs/alpha-freq.sh index f292563b6b..102f98bae0 100755 --- a/tests/bugs/alpha-freq.sh +++ b/tests/bugs/alpha-freq.sh @@ -60,7 +60,7 @@ EOF 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 diff --git a/tests/bugs/crosstabs.sh b/tests/bugs/crosstabs.sh index 4bd6e47e00..a850750d7f 100755 --- a/tests/bugs/crosstabs.sh +++ b/tests/bugs/crosstabs.sh @@ -73,7 +73,7 @@ EOF 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 diff --git a/tests/bugs/data-crash.sh b/tests/bugs/data-crash.sh index 73bca66ad4..b1d453a8bc 100755 --- a/tests/bugs/data-crash.sh +++ b/tests/bugs/data-crash.sh @@ -55,7 +55,7 @@ EOF 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 diff --git a/tests/bugs/double-frequency.sh b/tests/bugs/double-frequency.sh index 7509efa0f3..e52b7185f6 100755 --- a/tests/bugs/double-frequency.sh +++ b/tests/bugs/double-frequency.sh @@ -66,7 +66,7 @@ if [ $? -ne 0 ] ; then no_result ; 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 diff --git a/tests/bugs/html-frequency.sh b/tests/bugs/html-frequency.sh index 1c082356f8..474735fc74 100755 --- a/tests/bugs/html-frequency.sh +++ b/tests/bugs/html-frequency.sh @@ -66,7 +66,7 @@ if [ $? -ne 0 ] ; then no_result ; 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 diff --git a/tests/bugs/random.sh b/tests/bugs/random.sh index cb7fb06a31..72da71fcd5 100755 --- a/tests/bugs/random.sh +++ b/tests/bugs/random.sh @@ -63,7 +63,7 @@ list. 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 diff --git a/tests/command/aggregate.sh b/tests/command/aggregate.sh index 90c1351f09..916587dc0c 100755 --- a/tests/command/aggregate.sh +++ b/tests/command/aggregate.sh @@ -69,7 +69,7 @@ EOF 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" diff --git a/tests/command/autorecod.sh b/tests/command/autorecod.sh index 2ef03f9f25..01c90904a2 100755 --- a/tests/command/autorecod.sh +++ b/tests/command/autorecod.sh @@ -73,7 +73,7 @@ EOF 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" diff --git a/tests/command/beg-data.sh b/tests/command/beg-data.sh index cdbf0a6b0e..382e2a0365 100755 --- a/tests/command/beg-data.sh +++ b/tests/command/beg-data.sh @@ -84,7 +84,7 @@ 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="compare data" diff --git a/tests/command/bignum.sh b/tests/command/bignum.sh index 17cc55197a..1ccc09ba4f 100755 --- a/tests/command/bignum.sh +++ b/tests/command/bignum.sh @@ -147,7 +147,7 @@ foobar 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 ... diff --git a/tests/command/compute.sh b/tests/command/compute.sh index 8d2480d9d9..7aa0dbb909 100755 --- a/tests/command/compute.sh +++ b/tests/command/compute.sh @@ -71,7 +71,7 @@ if [ $? -ne 0 ] ; then no_result ; fi 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 - < /dev/null +$SUPERVISOR $here/../src/pspp $TEMPDIR/foo.sps > /dev/null if [ $? -eq 0 ] ; then fail ; fi @@ -84,7 +84,7 @@ if [ $? -ne 0 ] ; then no_result ; 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 diff --git a/tests/command/file-label.sh b/tests/command/file-label.sh index f69e79d28a..931d0c11af 100755 --- a/tests/command/file-label.sh +++ b/tests/command/file-label.sh @@ -104,7 +104,7 @@ EOF 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 diff --git a/tests/command/filter.sh b/tests/command/filter.sh index 180b59f68a..1214c72894 100755 --- a/tests/command/filter.sh +++ b/tests/command/filter.sh @@ -75,7 +75,7 @@ if [ $? -ne 0 ] ; then no_result ; fi 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 diff --git a/tests/command/flip.sh b/tests/command/flip.sh index 759c4fd07f..269939fd01 100755 --- a/tests/command/flip.sh +++ b/tests/command/flip.sh @@ -65,7 +65,7 @@ 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" diff --git a/tests/command/lag.sh b/tests/command/lag.sh index db7c296932..77ec38e853 100755 --- a/tests/command/lag.sh +++ b/tests/command/lag.sh @@ -64,7 +64,7 @@ EOF 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" diff --git a/tests/command/list.sh b/tests/command/list.sh index 4dc92dd55c..c82dd27346 100755 --- a/tests/command/list.sh +++ b/tests/command/list.sh @@ -75,7 +75,7 @@ foobar 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 diff --git a/tests/command/loop.sh b/tests/command/loop.sh index 474c89947f..15f43ec738 100755 --- a/tests/command/loop.sh +++ b/tests/command/loop.sh @@ -63,7 +63,7 @@ EOF 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" diff --git a/tests/command/percentiles.sh b/tests/command/percentiles.sh index aa7d81a803..83cace7e25 100755 --- a/tests/command/percentiles.sh +++ b/tests/command/percentiles.sh @@ -70,7 +70,7 @@ if [ $? -ne 0 ] ; then no_result ; fi 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" diff --git a/tests/command/print.sh b/tests/command/print.sh index 6451bdbcaf..fdfcf9cb5d 100755 --- a/tests/command/print.sh +++ b/tests/command/print.sh @@ -86,7 +86,7 @@ if [ $? -ne 0 ] ; then no_result ; fi 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 diff --git a/tests/command/sample.sh b/tests/command/sample.sh index 6d3317e43a..56a1bb30c4 100755 --- a/tests/command/sample.sh +++ b/tests/command/sample.sh @@ -70,7 +70,7 @@ if [ $? -ne 0 ] ; then no_result ; 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" diff --git a/tests/command/sort.sh b/tests/command/sort.sh index 0f7dd17783..c53c197205 100755 --- a/tests/command/sort.sh +++ b/tests/command/sort.sh @@ -58,7 +58,7 @@ EOF 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 diff --git a/tests/command/split-file.sh b/tests/command/split-file.sh index 666f39dd3b..6b9a5ea389 100755 --- a/tests/command/split-file.sh +++ b/tests/command/split-file.sh @@ -71,7 +71,7 @@ EOF 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" diff --git a/tests/command/sys-info.sh b/tests/command/sys-info.sh index 96420ae055..31025a0cfe 100755 --- a/tests/command/sys-info.sh +++ b/tests/command/sys-info.sh @@ -61,7 +61,7 @@ EOF 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" @@ -73,7 +73,7 @@ EOF 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 diff --git a/tests/command/tabs.sh b/tests/command/tabs.sh index 0a2915f3e8..9d57c0082e 100755 --- a/tests/command/tabs.sh +++ b/tests/command/tabs.sh @@ -67,7 +67,7 @@ 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 diff --git a/tests/command/weight.sh b/tests/command/weight.sh index 3b71997f03..826a9a1cc0 100755 --- a/tests/command/weight.sh +++ b/tests/command/weight.sh @@ -58,7 +58,7 @@ 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"