3 # This program tests that DESCRIPTIVES asking for a mean only works,
4 # which didn't at one point.
6 TEMPDIR=/tmp/pspp-tst-$$
10 # ensure that top_srcdir is absolute
11 cd $top_srcdir; top_srcdir=`pwd`
13 export STAT_CONFIG_PATH=$top_srcdir/config
49 activity="create program"
50 cat > $TEMPDIR/descript.stat <<EOF
51 data list notable / X 1.
61 descript all/stat=mean.
64 if [ $? -ne 0 ] ; then no_result ; fi
67 activity="run program"
68 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/descript.stat
69 if [ $? -ne 0 ] ; then no_result ; fi
71 activity="compare output"
72 diff -B -b $TEMPDIR/pspp.list - <<EOF
73 1.1 DESCRIPTIVES. Valid cases = 6; cases with missing value(s) = 0.
80 if [ $? -ne 0 ] ; then fail ; fi