3 # This program tests the aggregate procedure
5 TEMPDIR=/tmp/pspp-tst-$$
6 TESTFILE=$TEMPDIR/`basename $0`.sps
11 # ensure that top_srcdir is absolute
12 cd $top_srcdir; top_srcdir=`pwd`
15 export STAT_CONFIG_PATH=$top_srcdir/config
50 activity="program create"
51 cat > $TESTFILE << EOF
53 data list notable /x y 1-2.
68 aggregate /missing=columnwise /document /presorted/break=x(a) /z'label for z'=sum(y)/foo=nu.
71 if [ $? -ne 0 ] ; then no_result ; fi
73 activity="run program"
74 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
75 if [ $? -ne 0 ] ; then no_result ; fi
77 activity="test result"
78 diff -b -w -B $TEMPDIR/pspp.list - << EOF
85 if [ $? -ne 0 ] ; then fail ; fi