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 STAT_CONFIG_PATH=$top_srcdir/config
14 export STAT_CONFIG_PATH
50 activity="create program"
51 cat > $TEMPDIR/descript.stat <<EOF
52 data list notable / X 1.
62 descript all/stat=mean.
65 if [ $? -ne 0 ] ; then no_result ; fi
68 activity="run program"
69 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/descript.stat
70 if [ $? -ne 0 ] ; then no_result ; fi
72 activity="compare output"
73 diff -B -b $TEMPDIR/pspp.list - <<EOF
74 1.1 DESCRIPTIVES. Valid cases = 6; cases with missing value(s) = 0.
81 if [ $? -ne 0 ] ; then fail ; fi