3 # This program tests casefiles by running DEBUG CASEFILE.
5 TEMPDIR=/tmp/pspp-tst-$$
9 # ensure that top_srcdir is absolute
10 cd $top_srcdir; top_srcdir=`pwd`
12 STAT_CONFIG_PATH=$top_srcdir/config
13 export STAT_CONFIG_PATH
49 activity="create program"
50 cat > $TEMPDIR/casefile.stat <<EOF
53 if [ $? -ne 0 ] ; then no_result ; fi
55 activity="run program"
56 $SUPERVISOR $here/../src/pspp --testing-mode $TEMPDIR/casefile.stat > $TEMPDIR/casefile.out
57 if [ $? -ne 0 ] ; then no_result ; fi
59 activity="compare results"
60 diff -b -B $TEMPDIR/casefile.out - <<EOF
61 Casefile tests succeeded.
64 if [ $? -ne 0 ] ; then no_result ; fi
67 if [ $? -ne 0 ] ; then fail ; fi