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'.
53 ----------------------------------------------------------------------
54 First we show that we can input data with BEGIN DATA/END DATA after
56 ----------------------------------------------------------------------
69 ----------------------------------------------------------------------
70 Next we show that BEGIN DATA/END DATA work fine on their own as well.
71 ----------------------------------------------------------------------
83 if [ $? -ne 0 ] ; then no_result ; fi
86 activity="run program"
87 $here/../src/pspp -o raw-ascii $TEMPDIR/prog.sps
88 if [ $? -ne 0 ] ; then no_result ; fi
90 activity="compare data"
91 diff -B $TEMPDIR/pspp.list - << foobar
92 ----------------------------------------------------------------------
93 First we show that we can input data with BEGIN DATA/END DATA after
95 ----------------------------------------------------------------------
97 1.1 DATA LIST. Reading 1 record from the command file.
98 +--------+------+-------+------+
99 |Variable|Record|Columns|Format|
100 #========#======#=======#======#
103 +--------+------+-------+------+
113 ----------------------------------------------------------------------
114 Next we show that BEGIN DATA/END DATA work fine on their own as well.
115 ----------------------------------------------------------------------
117 2.1 DATA LIST. Reading 1 record from the command file.
118 +--------+------+-------+------+
119 |Variable|Record|Columns|Format|
120 #========#======#=======#======#
123 +--------+------+-------+------+
133 if [ $? -ne 0 ] ; then fail ; fi