3 # This program tests that system files can be read properly, even when the
4 # case_size header value is -1 (Some 3rd party products do this)
7 TEMPDIR=/tmp/pspp-tst-$$
8 TESTFILE=$TEMPDIR/`basename $0`.sps
12 # ensure that top_srcdir is absolute
13 cd $top_srcdir; top_srcdir=`pwd`
15 export STAT_CONFIG_PATH=$top_srcdir/config
20 if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then
21 echo "NOT cleaning $TEMPDIR"
56 GET FILE='$top_srcdir/tests/no_case_size.sav'.
60 if [ $? -ne 0 ] ; then no_result ; fi
63 activity="run program"
64 $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE > /dev/null
65 if [ $? -ne 0 ] ; then no_result ; fi
67 activity="compare output"
68 diff -b -B -w pspp.list - <<EOF
70 +--------+-------------------------------------------+--------+
71 |Variable|Description |Position|
72 #========#===========================================#========#
73 |CONT |continents of the world | 1|
75 +--------+-------------------------------------------+--------+
78 +--------+-------------------------------------------+--------+
81 +--------+-------------------------------------------+--------+
82 |COUNT |number of countries | 4|
84 +--------+-------------------------------------------+--------+
87 -------------------------------- -------- -------- --------
126 if [ $? -ne 0 ] ; then fail ; fi