X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Fweight.sh;h=5da366d9968d9941f34eb5561a7538eaf031dc0a;hb=b9a18d43ace66798d4f2eaaab063fd06b30d5f8f;hp=aadc0d5c4b25a59a0b925d5f8a074f153a24e596;hpb=009350385d97d9fba2b33ea68cfe8b1aeebf1529;p=pspp-builds.git diff --git a/tests/command/weight.sh b/tests/command/weight.sh index aadc0d5c..5da366d9 100755 --- a/tests/command/weight.sh +++ b/tests/command/weight.sh @@ -9,6 +9,7 @@ TESTFILE=$TEMPDIR/`basename $0`.sps if [ -z "$top_builddir" ] ; then top_builddir=. ; fi if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi top_builddir=`cd $top_builddir; pwd` +PSPP=$top_builddir/src/ui/terminal/pspp # ensure that top_srcdir is absolute top_srcdir=`cd $top_srcdir; pwd` @@ -16,10 +17,16 @@ top_srcdir=`cd $top_srcdir; pwd` STAT_CONFIG_PATH=$top_srcdir/config export STAT_CONFIG_PATH +LANG=C +export LANG + cleanup() { - if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then return ; fi + if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then + echo "NOT cleaning $TEMPDIR" + return ; + fi cd / rm -rf $TEMPDIR } @@ -54,6 +61,7 @@ cd $TEMPDIR activity="create program" cat > $TESTFILE << EOF +SET FORMAT F8.3. data list file='$top_srcdir/tests/weighting.data'/AVAR 1-5 BVAR 6-10. weight by BVAR. @@ -65,7 +73,7 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $top_builddir/src/pspp --testing-mode -o raw-ascii $TESTFILE +$SUPERVISOR $PSPP --testing-mode $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi activity="compare results" @@ -79,87 +87,87 @@ diff -b $TEMPDIR/pspp.list - <