Prepend $SUPERVISOR to invocations of pspp so that we
[pspp-builds.git] / tests / command / weight.sh
index aaa633bcf887299ed3bf8a70a43d6305179f47b7..826a9a1cc089fb70d75185b45c1be2646fc08f10 100755 (executable)
@@ -47,7 +47,7 @@ cd $TEMPDIR
 
 activity="create program"
 cat > $TEMPDIR/weight.stat <<EOF
-data list file='$here/weighting.data'/AVAR 1-5 BVAR 6-10.
+data list file='$top_srcdir/tests/weighting.data'/AVAR 1-5 BVAR 6-10.
 weight by BVAR.
 
 descriptives AVAR /statistics all /format serial.
@@ -58,12 +58,12 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="run program"
-$here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/weight.stat
+$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/weight.stat
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare results"
 diff -B -b $TEMPDIR/pspp.list - <<EOF
-1.1 DATA LIST.  Reading 1 record from file "$here/weighting.data".
+1.1 DATA LIST.  Reading 1 record from file "$top_srcdir/tests/weighting.data".
 +--------+------+-------+------+
 |Variable|Record|Columns|Format|
 #========#======#=======#======#