3 # This program tests the flip command
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 flip.stat"
49 cat > $TEMPDIR/flip.stat <<EOF
50 data list /n 1 (a) a b c d 2-9.
64 if [ $? -ne 0 ] ; then no_result ; fi
67 activity="run program"
68 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/flip.stat
69 if [ $? -ne 0 ] ; then no_result ; fi
71 activity="compare output"
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 #========#======#=======#======#
82 +--------+------+-------+------+
93 -------- -------- -------- -------- -------- --------
94 A 1.00 6.00 11.00 16.00 21.00
95 B 2.00 7.00 12.00 17.00 22.00
96 C 3.00 8.00 13.00 18.00 23.00
97 D 4.00 9.00 14.00 19.00 24.00
100 -------- -------- -------- -------- --------
101 V 1.00 2.00 3.00 4.00
102 W 6.00 7.00 8.00 9.00
103 X 11.00 12.00 13.00 14.00
104 Y 16.00 17.00 18.00 19.00
105 Z 21.00 22.00 23.00 24.00
107 if [ $? -ne 0 ] ; then fail ; fi