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 export STAT_CONFIG_PATH=$top_srcdir/config
49 activity="Create prog"
51 DATA LIST LIST /longVariablename * x *.
58 COMPUTE longvariableName=100-longvariablename.
63 if [ $? -ne 0 ] ; then no_result ; fi
67 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
68 if [ $? -ne 0 ] ; then fail ; fi
71 activity="compare output"
72 diff -B -b pspp.list - << EOF
73 1.1 DATA LIST. Reading free-form data from the command file.
74 +----------------+------+
76 #================#======#
77 |longVariablename|F8.0 |
79 +----------------+------+
82 ---------------- --------
86 if [ $? -ne 0 ] ; then fail ; fi