3 # This program tests the split file command
5 TEMPDIR=/tmp/pspp-tst-$$
6 TESTFILE=$TEMPDIR/`basename $0`.sps
10 # ensure that top_srcdir is absolute
11 cd $top_srcdir; top_srcdir=`pwd`
13 export STAT_CONFIG_PATH=$top_srcdir/config
49 activity="create program"
50 cat > $TEMPDIR/split.stat <<EOF
51 title 'Test SPLIT FILE utility'.
53 data list notable /X 1 Y 2.
72 if [ $? -ne 0 ] ; then no_result ; fi
74 activity="run program"
75 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/split.stat
76 if [ $? -ne 0 ] ; then no_result ; fi
78 activity="compare results"
79 diff -B -b $TEMPDIR/pspp.list - <<EOF
105 if [ $? -ne 0 ] ; then fail ; fi