3 # This program tests the LAG function
5 TEMPDIR=/tmp/pspp-tst-$$
6 TESTFILE=$TEMPDIR/`basename $0`.sps
10 # ensure that top_srcdir is absolute
11 cd $top_srcdir; top_srcdir=`pwd`
13 export STAT_CONFIG_PATH=$top_srcdir/config
49 activity="create program"
50 cat > $TEMPDIR/lag.stat <<EOF
65 if [ $? -ne 0 ] ; then no_result ; fi
67 activity="run program"
68 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/lag.stat
69 if [ $? -ne 0 ] ; then no_result ; fi
71 activity="compare result"
72 diff -b -B $TEMPDIR/pspp.list - <<EOF
73 1.1 DATA LIST. Reading 1 record from the command file.
74 +--------+------+-------+------+
75 |Variable|Record|Columns|Format|
76 #========#======#=======#======#
78 +--------+------+-------+------+
81 - -------- -------- --------
88 if [ $? -ne 0 ] ; then fail ; fi