3 # This program tests the LAG function
5 TEMPDIR=/tmp/pspp-tst-$$
9 # ensure that top_srcdir is absolute
10 cd $top_srcdir; top_srcdir=`pwd`
12 export STAT_CONFIG_PATH=$top_srcdir/config
48 activity="create program"
49 cat > $TEMPDIR/lag.stat <<EOF
64 if [ $? -ne 0 ] ; then no_result ; fi
66 activity="run program"
67 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/lag.stat
68 if [ $? -ne 0 ] ; then no_result ; fi
70 activity="compare result"
71 diff -b -B $TEMPDIR/pspp.list - <<EOF
72 1.1 DATA LIST. Reading 1 record from the command file.
73 +--------+------+-------+------+
74 |Variable|Record|Columns|Format|
75 #========#======#=======#======#
77 +--------+------+-------+------+
80 - -------- -------- --------
87 if [ $? -ne 0 ] ; then fail ; fi