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
51 activity="create program"
52 cat > $TEMPDIR/descript.stat <<EOF
53 data list notable / X 1.
63 descript all/stat=mean.
66 if [ $? -ne 0 ] ; then no_result ; fi
69 activity="run program"
70 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/descript.stat
71 if [ $? -ne 0 ] ; then no_result ; fi
73 activity="compare output"
74 perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
75 diff -b $TEMPDIR/pspp.list - <<EOF | perl -e 's/^\s*$//g'
76 1.1 DESCRIPTIVES. Valid cases = 6; cases with missing value(s) = 0.
83 if [ $? -ne 0 ] ; then fail ; fi