Fixed non-portable shell syntax in tests. Added a dist-hook target to check
[pspp-builds.git] / tests / bugs / match-files-scratch.sh
index 9303f4f50bb30cecb5fbbe861c90d3b8d530790f..4830ddd359611169f6c9c6459e61e1dd9d9ecd64 100755 (executable)
@@ -11,6 +11,7 @@ TESTFILE=$TEMPDIR/`basename $0`.pspp
 if [ -z "$top_builddir" ] ; then top_builddir=. ; fi
 if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi
 top_builddir=`cd $top_builddir; pwd`
+PSPP=$top_builddir/src/ui/terminal/pspp
 
 # ensure that top_srcdir is absolute
 top_srcdir=`cd $top_srcdir; pwd`
@@ -73,7 +74,7 @@ FINISH.
 EOF
 if [ $? -ne 0 ] ; then no_result ; fi
 
-$SUPERVISOR $top_builddir/src/pspp -o raw-ascii $TESTFILE
+$SUPERVISOR $PSPP --testing-mode $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi