3 TEMPDIR=/tmp/pspp-tst-$$
5 trap 'cd /; rm -rf $TEMPDIR' 0
7 # ensure that top_builddir are absolute
8 if [ -z "$top_builddir" ] ; then top_builddir=. ; fi
9 if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi
10 top_builddir=`cd $top_builddir; pwd`
11 PSPP=$top_builddir/src/ui/terminal/pspp
13 # ensure that top_srcdir is absolute
14 top_srcdir=`cd $top_srcdir; pwd`
16 STAT_CONFIG_PATH=$top_srcdir/config
17 export STAT_CONFIG_PATH
41 activity="write pspp syntax"
42 cat > wkday-out.pspp <<EOF
67 do repeat format=wkday2 to wkday40.
68 print outfile='wkday-out.out'/x(format).
72 if [ $? -ne 0 ] ; then no_result ; fi
74 activity="run program"
75 $SUPERVISOR $PSPP --testing-mode wkday-out.pspp
76 if [ $? -eq 0 ] ; then no_result ; fi
78 activity="compare output"
79 diff -u wkday-out.out - <<EOF
783 if [ $? -ne 0 ] ; then fail ; fi