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
50 activity="create program"
51 cat > $TEMPDIR/casefile.stat <<EOF
54 if [ $? -ne 0 ] ; then no_result ; fi
56 activity="run program"
57 $SUPERVISOR $here/../src/pspp --testing-mode $TEMPDIR/casefile.stat > $TEMPDIR/casefile.out
58 if [ $? -ne 0 ] ; then no_result ; fi
60 activity="compare results"
61 perl -pi -e 's/^\s*$//g' $TEMPDIR/casefile.out
62 diff -b $TEMPDIR/casefile.out - <<EOF
63 Casefile tests succeeded.
66 if [ $? -ne 0 ] ; then no_result ; fi
69 if [ $? -ne 0 ] ; then fail ; fi