3 # This program tests that system files can be read and written
4 # including the long variable names.
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 STAT_CONFIG_PATH=$top_srcdir/config
16 export STAT_CONFIG_PATH
52 activity="create program"
54 DATA LIST LIST NOTABLE / variable001 * variable002 * variable003 * variable004 * .
66 SAVE /OUTFILE='$TEMPDIR/foo.sav'.
68 GET /FILE='$TEMPDIR/foo.sav'.
73 if [ $? -ne 0 ] ; then no_result ; fi
76 activity="run program"
77 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
78 if [ $? -ne 0 ] ; then no_result ; fi
80 activity="compare output"
81 diff -b -B -w $TEMPDIR/pspp.list - << EOF
82 variable001 variable002 variable003 variable004
83 ----------- ----------- ----------- -----------
94 if [ $? -ne 0 ] ; then fail ; fi