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 STAT_CONFIG_PATH=$top_srcdir/config
14 export STAT_CONFIG_PATH
50 activity="create program"
52 DATA LIST LIST /brakeFluid * y * .
62 RENAME VARIABLES (brakeFluid=applecarts).
66 SAVE /OUTFILE='$TEMPDIR/rename.sav'.
68 if [ $? -ne 0 ] ; then no_result ; fi
71 activity="run program"
72 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
73 if [ $? -ne 0 ] ; then no_result ; fi
75 activity="check sysfile"
76 grep -i Brake $TEMPDIR/rename.sav
77 if [ $? -eq 0 ] ; then fail ; fi
79 activity="compare output"
80 diff -B -b $TEMPDIR/pspp.list - <<EOF
81 1.1 DATA LIST. Reading free-form data from the command file.
104 if [ $? -ne 0 ] ; then fail ; fi