X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fbugs%2Fcompression.sh;h=71f9eab48d329ed0e2ab8673d48c7578c50ffd3a;hb=38d5e09c01ddffc98430c3c55ed3ccb821180cbf;hp=6556406411d238f3614ee8e5a844c957f3937b34;hpb=b31bac73c9affb7843d332807ffe5cef9c5e7cea;p=pspp-builds.git diff --git a/tests/bugs/compression.sh b/tests/bugs/compression.sh index 65564064..71f9eab4 100755 --- a/tests/bugs/compression.sh +++ b/tests/bugs/compression.sh @@ -12,7 +12,8 @@ top_srcdir=`cd $top_srcdir; pwd` top_builddir=`cd $top_builddir; pwd` PSPP=$top_builddir/src/ui/terminal/pspp -export STAT_CONFIG_PATH=$top_srcdir/config +STAT_CONFIG_PATH=$top_srcdir/config +export STAT_CONFIG_PATH cleanup() @@ -21,6 +22,7 @@ cleanup() echo "NOT cleaning $TEMPDIR" return ; fi + cd / rm -rf $TEMPDIR } @@ -77,15 +79,22 @@ 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 -b $TEMPDIR/file - < /dev/null < /dev/null <