3 # This program tests that the rename command works properly
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 program"
51 DATA LIST LIST /brakeFluid * y * .
61 RENAME VARIABLES (brakeFluid=applecarts).
65 SAVE /OUTFILE='$TEMPDIR/rename.sav'.
67 if [ $? -ne 0 ] ; then no_result ; fi
70 activity="run program"
71 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
72 if [ $? -ne 0 ] ; then no_result ; fi
74 activity="check sysfile"
75 grep -i Brake $TEMPDIR/rename.sav
76 if [ $? -eq 0 ] ; then fail ; fi
78 activity="compare output"
79 diff -B -b $TEMPDIR/pspp.list - <<EOF
80 1.1 DATA LIST. Reading free-form data from the command file.
103 if [ $? -ne 0 ] ; then fail ; fi