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
51 activity="create program"
52 cat > $TEMPDIR/split.stat <<EOF
53 title 'Test SPLIT FILE utility'.
55 data list notable /X 1 Y 2.
74 if [ $? -ne 0 ] ; then no_result ; fi
76 activity="run program"
77 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/split.stat
78 if [ $? -ne 0 ] ; then no_result ; fi
80 activity="compare results"
81 diff -B -b $TEMPDIR/pspp.list - <<EOF
107 if [ $? -ne 0 ] ; then fail ; fi