3 # This program tests for a bug involving COMPUTE and long variable names
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 activity="Create prog"
52 DATA LIST LIST /longVariablename * x *.
59 COMPUTE longvariableName=100-longvariablename.
64 if [ $? -ne 0 ] ; then no_result ; fi
68 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
69 if [ $? -ne 0 ] ; then fail ; fi
72 activity="compare output"
73 diff -B -b pspp.list - << EOF
74 1.1 DATA LIST. Reading free-form data from the command file.
75 +----------------+------+
77 #================#======#
78 |longVariablename|F8.0 |
80 +----------------+------+
83 ---------------- --------
87 if [ $? -ne 0 ] ; then fail ; fi