3 # This program tests the BEGIN DATA / END DATA commands
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/prog.sps << EOF_foobar
50 title 'Test BEGIN DATA ... END DATA'.
72 if [ $? -ne 0 ] ; then no_result ; fi
75 activity="run program"
76 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/prog.sps
77 if [ $? -ne 0 ] ; then no_result ; fi
79 activity="compare data"
80 diff -b -B $TEMPDIR/pspp.list - << foobar
81 1.1 DATA LIST. Reading 1 record from the command file.
82 +--------+------+-------+------+
83 |Variable|Record|Columns|Format|
84 #========#======#=======#======#
87 +--------+------+-------+------+
97 2.1 DATA LIST. Reading 1 record from the command file.
98 +--------+------+-------+------+
99 |Variable|Record|Columns|Format|
100 #========#======#=======#======#
103 +--------+------+-------+------+
113 if [ $? -ne 0 ] ; then fail ; fi