Updated pspp-mode.el.
[pspp-builds.git] / tests / bugs / html-frequency.sh
index 474735fc74ba0bec85bfcdefcfdb36ffd187ef89..7c12397abcd9da03c34ae89c51f13bce8be84128 100755 (executable)
@@ -6,13 +6,14 @@
 
 
 TEMPDIR=/tmp/pspp-tst-$$
+TESTFILE=$TEMPDIR/`basename $0`.sps
 
 here=`pwd`
 
 # ensure that top_srcdir is absolute
 cd $top_srcdir ; top_srcdir=`pwd`
 
-STAT_CONFIG_PATH=$top_srcdir/config
+export STAT_CONFIG_PATH=$top_srcdir/config
 
 cleanup()
 {
@@ -47,7 +48,7 @@ mkdir -p $TEMPDIR
 
 
 activity="create data"
-cat << EOF > $TEMPDIR/ff.stat 
+cat << EOF > $TESTFILE
 
 data list free /v1 v2.
 begin data.
@@ -66,7 +67,7 @@ if [ $? -ne 0 ] ; then no_result ; fi
 cd $TEMPDIR
 
 activity="run data"
-$SUPERVISOR $here/../src/pspp -o html $TEMPDIR/ff.stat
+$SUPERVISOR $here/../src/pspp -o html $TESTFILE
 if [ $? -ne 0 ] ; then fail ; fi