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 STAT_CONFIG_PATH=$top_srcdir/config
14 export STAT_CONFIG_PATH
50 activity="create program"
51 cat > $TEMPDIR/split.stat <<EOF
52 title 'Test SPLIT FILE utility'.
54 data list notable /X 1 Y 2.
73 if [ $? -ne 0 ] ; then no_result ; fi
75 activity="run program"
76 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/split.stat
77 if [ $? -ne 0 ] ; then no_result ; fi
79 activity="compare results"
80 diff -B -b $TEMPDIR/pspp.list - <<EOF
106 if [ $? -ne 0 ] ; then fail ; fi