projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unnecessary gpointer variable from gsheet-row-iface
[pspp-builds.git]
/
tests
/
bugs
/
compression.sh
diff --git
a/tests/bugs/compression.sh
b/tests/bugs/compression.sh
index e705480c4ce10bf78e5f73736f835a64159be76d..d2147237e2d8cb8ee1e1669c2ebf212facf766db 100755
(executable)
--- a/
tests/bugs/compression.sh
+++ b/
tests/bugs/compression.sh
@@
-10,6
+10,7
@@
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`
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
export STAT_CONFIG_PATH=$top_srcdir/config
export STAT_CONFIG_PATH=$top_srcdir/config
@@
-71,20
+72,27
@@
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
activity="run program"
-$SUPERVISOR $
top_builddir/src/pspp --testing-mode -o raw-ascii
$TESTFILE
+$SUPERVISOR $
PSPP --testing-mode
$TESTFILE
if [ $? -ne 0 ] ; then fail ; fi
# Make sure the file really was compressed
activity="inspect system file"
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
if [ $? -ne 0 ] ; then no_result ; fi
-activity="check compression byte"
-diff $TEMPDIR/file - <<EOF
-0000000 000001
-0000001
+activity="check compression setting"
+# Big-endian?
+diff -b $TEMPDIR/file - > /dev/null <<EOF
+0000000 000000 000001
+0000004
EOF
EOF
-if [ $? -ne 0 ] ; then fail ; fi
-
-
-pass;
+if [ $? -ne 0 ] ; then pass ; fi
+# Little-endian?
+diff -b $TEMPDIR/file - > /dev/null <<EOF
+0000000 000001 000000
+0000004
+EOF
+if [ $? -ne 0 ] ; then pass ; fi
+# Otherwise error.
+cat $TEMPDIR/file
+fail