3 # This program tests for a bug which crashed pspp
4 # when the /DESCRIPTIVES subcommand of EXAMINE
5 # encountered missing values.
7 TEMPDIR=/tmp/pspp-tst-$$
8 TESTFILE=$TEMPDIR/`basename $0`.sps
10 # ensure that top_srcdir and top_builddir are absolute
11 if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi
12 if [ -z "$top_builddir" ] ; then top_builddir=. ; fi
13 top_srcdir=`cd $top_srcdir; pwd`
14 top_builddir=`cd $top_builddir; pwd`
16 PSPP=$top_builddir/src/ui/terminal/pspp
18 STAT_CONFIG_PATH=$top_srcdir/config
19 export STAT_CONFIG_PATH
27 if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then
28 echo "NOT cleaning $TEMPDIR"
62 activity="create program"
64 data list list /x * y *.
72 examine x by y /statistics=descriptives.
74 if [ $? -ne 0 ] ; then no_result ; fi
77 activity="run program"
78 $SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE
79 if [ $? -ne 0 ] ; then fail ; fi