3 # This program tests for a bug which caused
4 # the second procedure after GET FILE to corrupt its output
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
53 activity="create program"
55 DATA LIST LIST NOTABLE /LOCATION * EDITOR * SHELL * FREQ * .
67 SAVE /OUTFILE='$TEMPDIR/foo.sav'.
69 GET /FILE='$TEMPDIR/foo.sav'.
74 * But this one get rubbish
78 if [ $? -ne 0 ] ; then no_result ; fi
81 activity="run program"
82 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
83 if [ $? -ne 0 ] ; then no_result ; fi
88 activity="compare output"
89 diff -b -B -w $TEMPDIR/pspp.list - << EOF
90 LOCATION EDITOR SHELL FREQ
91 -------- -------- -------- --------
102 LOCATION EDITOR SHELL FREQ
103 -------- -------- -------- --------
114 if [ $? -ne 0 ] ; then fail ; fi