Handle case of a lookup table as the active file.
[pspp] / tests / command / t-test-1-indep-val.sh
index 89f2a038b40589160db6f77798b22a7cded6ea8c..12986d07e1936bac6e7f3d2e7b1c880cd6c015ce 100755 (executable)
@@ -4,6 +4,7 @@
 # when a single value in the independent variable is given.
 
 TEMPDIR=/tmp/pspp-tst-$$
+TESTFILE=$TEMPDIR/`basename $0`.sps
 
 here=`pwd`;
 
@@ -47,8 +48,8 @@ mkdir -p $TEMPDIR
 cd $TEMPDIR
 
 activity="create program"
-cat > $TEMPDIR/out.stat <<EOF
-data list list /indep * dep *.
+cat > $TESTFILE <<EOF
+data list list /INDEP * DEP *.
 begin data.
        1        6
        1        6
@@ -79,7 +80,7 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="run program"
-$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi