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`
13 export STAT_CONFIG_PATH=$top_srcdir/config
48 activity="program create"
49 cat > $TEMPDIR/test.sps << EOF
51 data list notable /x y 1-2.
66 aggregate /missing=columnwise /document /presorted/break=x(a) /z'label for z'=sum(y)/foo=nu.
69 if [ $? -ne 0 ] ; then no_result ; fi
71 activity="run program"
72 $here/../src/pspp -o raw-ascii $TEMPDIR/test.sps
73 if [ $? -ne 0 ] ; then no_result ; fi
75 cat pspp.list > /tmp/foo
77 activity="test result"
78 diff -b -w -B $TEMPDIR/pspp.list - << EOF
85 if [ $? -ne 0 ] ; then fail ; fi