3 # This program tests the aggregate procedure
5 TEMPDIR=/tmp/pspp-tst-$$
9 # ensure that top_srcdir is absolute
10 cd $top_srcdir; top_srcdir=`pwd`
12 export STAT_CONFIG_PATH=$top_srcdir/config
47 activity="program create"
48 cat > $TEMPDIR/test.sps << EOF
50 data list notable /x y 1-2.
65 aggregate /missing=columnwise /document /presorted/break=x(a) /z'label for z'=sum(y)/foo=nu.
68 if [ $? -ne 0 ] ; then no_result ; fi
70 activity="run program"
71 $here/../src/pspp -o raw-ascii $TEMPDIR/test.sps
72 if [ $? -ne 0 ] ; then no_result ; fi
75 activity="test result"
76 diff -B $TEMPDIR/pspp.list - << EOF
83 if [ $? -ne 0 ] ; then fail ; fi