3 # This program tests the DATA LIST input program.
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 STAT_CONFIG_PATH=$top_srcdir/config
14 export STAT_CONFIG_PATH
50 # Create command file.
51 activity="create program"
52 cat > $TESTFILE << EOF
53 data list list ('|','X') /A B C D.
62 data list free/A B C D.
79 data list free (tab)/A B C D.
100 if [ $? -ne 0 ] ; then no_result ; fi
103 activity="run program"
104 $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii --testing-mode $TESTFILE
105 if [ $? -ne 0 ] ; then fail ; fi
107 activity="compare output"
108 diff -b -B $TEMPDIR/pspp.list - << EOF
109 1.1 DATA LIST. Reading free-form data from the command file.
120 -------- -------- -------- --------
121 1.00 23.00 45.00 2.03
122 2.00 22.00 34.00 23.00
123 3.00 34.00 34.00 34.00
126 -------- -------- -------- --------
135 -------- -------- -------- --------
153 if [ $? -ne 0 ] ; then fail ; fi