Fix arg type for expr_parse.
[pspp] / tests / bugs / html-frequency.sh
index 27b6f58a81547c42295c163e50d16b57ba30f6fe..7c12397abcd9da03c34ae89c51f13bce8be84128 100755 (executable)
@@ -6,6 +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`
+
+export STAT_CONFIG_PATH=$top_srcdir/config
 
 cleanup()
 {
@@ -38,10 +46,9 @@ pass()
 
 mkdir -p $TEMPDIR
 
-here=`pwd`;
 
 activity="create data"
-cat << EOF > $TEMPDIR/ff.stat 
+cat << EOF > $TESTFILE
 
 data list free /v1 v2.
 begin data.
@@ -51,15 +58,16 @@ begin data.
 3 4
 end data.
 
+list.
+
 frequencies v1 v2.
 EOF
 if [ $? -ne 0 ] ; then no_result ; fi
 
-cd $top_srcdir ; top_srcdir=`pwd`
 cd $TEMPDIR
 
 activity="run data"
-$here/../src/pspp -B $top_srcdir/config -o html $TEMPDIR/ff.stat
+$SUPERVISOR $here/../src/pspp -o html $TESTFILE
 if [ $? -ne 0 ] ; then fail ; fi