3 # This program tests datasheet support.
5 TEMPDIR=/tmp/pspp-tst-$$
6 TESTFILE=$TEMPDIR/`basename $0`.sps
8 # ensure that top_builddir are absolute
9 if [ -z "$top_builddir" ] ; then top_builddir=. ; fi
10 if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi
11 top_builddir=`cd $top_builddir; pwd`
12 PSPP=$top_builddir/src/ui/terminal/pspp
14 # ensure that top_srcdir is absolute
15 top_srcdir=`cd $top_srcdir; pwd`
17 STAT_CONFIG_PATH=$top_srcdir/config
18 export STAT_CONFIG_PATH
57 activity="Create File 1"
59 debug datasheet max=3,3 backing=0,0/progress=none/output=file("/dev/null").
60 debug datasheet max=3,3 backing=3,3/progress=none/output=file("/dev/null").
61 debug datasheet max=3,3 backing=3,1/progress=none/output=file("/dev/null").
62 debug datasheet max=3,3 backing=1,3/progress=none/output=file("/dev/null").
64 if [ $? -ne 0 ] ; then no_result ; fi
68 $SUPERVISOR $PSPP --testing-mode $TESTFILE > datasheet.out
69 if [ $? -ne 0 ] ; then no_result ; fi
71 activity="compare results"
72 diff -b $TEMPDIR/datasheet.out - <<EOF
73 Datasheet test max(3,3) backing(0,0) successful.
74 Datasheet test max(3,3) backing(3,3) successful.
75 Datasheet test max(3,3) backing(3,1) successful.
76 Datasheet test max(3,3) backing(1,3) successful.
78 if [ $? -ne 0 ] ; then fail ; fi