X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fbugs%2Fcompression.sh;h=dadc88365a6e9386d835add4a241ae6753f54d9c;hb=751d7694b0904b580fad3903205341c85c04d421;hp=e705480c4ce10bf78e5f73736f835a64159be76d;hpb=916d376c0868edf6d271a4fe9fdc96107f69002f;p=pspp diff --git a/tests/bugs/compression.sh b/tests/bugs/compression.sh index e705480c4c..dadc88365a 100755 --- a/tests/bugs/compression.sh +++ b/tests/bugs/compression.sh @@ -10,8 +10,10 @@ if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi if [ -z "$top_builddir" ] ; then top_builddir=. ; fi top_srcdir=`cd $top_srcdir; pwd` top_builddir=`cd $top_builddir; pwd` +PSPP=$top_builddir/src/ui/terminal/pspp$EXEEXT -export STAT_CONFIG_PATH=$top_srcdir/config +STAT_CONFIG_PATH=$top_srcdir/config +export STAT_CONFIG_PATH cleanup() @@ -20,6 +22,7 @@ cleanup() echo "NOT cleaning $TEMPDIR" return ; fi + cd / rm -rf $TEMPDIR } @@ -71,20 +74,27 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $top_builddir/src/pspp --testing-mode -o raw-ascii $TESTFILE +$SUPERVISOR $PSPP -o pspp.csv $TESTFILE if [ $? -ne 0 ] ; then fail ; fi # Make sure the file really was compressed activity="inspect system file" -dd if=$TEMPDIR/com.sav bs=1 skip=72 count=1 2> /dev/null | od > $TEMPDIR/file +dd if=$TEMPDIR/com.sav bs=1 skip=72 count=4 2> /dev/null | od > $TEMPDIR/file if [ $? -ne 0 ] ; then no_result ; fi -activity="check compression byte" -diff $TEMPDIR/file - < /dev/null < /dev/null <