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
51 activity="Create prog"
53 DATA LIST LIST /longVariablename * x *.
60 COMPUTE longvariableName=100-longvariablename.
65 if [ $? -ne 0 ] ; then no_result ; fi
69 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
70 if [ $? -ne 0 ] ; then fail ; fi
73 activity="compare output"
74 diff -B -b pspp.list - << EOF
75 1.1 DATA LIST. Reading free-form data from the command file.
76 +----------------+------+
78 #================#======#
79 |longVariablename|F8.0 |
81 +----------------+------+
84 ---------------- --------
88 if [ $? -ne 0 ] ; then fail ; fi