data-in: Convert tests for date formats to Autotest framework.
[pspp-builds.git] / tests / formats / num-out.sh
index 37b0d2eb16bc287baa1c66931347feec26b11699..2d0932f7a8efe23f55ad80b6c37b0130d1947257 100755 (executable)
@@ -8,7 +8,8 @@ trap 'cd /; rm -rf $TEMPDIR' 0
 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
+PSPP=$top_builddir/src/ui/terminal/pspp$EXEEXT
+: ${PERL:=perl}
 
 # ensure that top_srcdir is absolute
 top_srcdir=`cd $top_srcdir; pwd`
@@ -44,12 +45,12 @@ if [ $? -ne 0 ] ; then no_result ; fi
 echo -n .
 
 activity="run program"
-$SUPERVISOR $PSPP --testing-mode num-out.pspp
+$SUPERVISOR $PSPP -o pspp.csv num-out.pspp
 if [ $? -ne 0 ] ; then no_result ; fi
 echo -n .
 
 activity="inexactify results"
-$top_builddir/tests/formats/inexactify < output.txt > output.inexact
+$top_builddir/tests/formats/inexactify$EXEEXT < output.txt > output.inexact
 if [ $? -ne 0 ] ; then no_result ; fi
 echo -n .
 
@@ -64,7 +65,7 @@ if [ $? -ne 0 ] ; then no_result ; fi
 echo -n .
 
 activity="inexactify expected results"
-$top_builddir/tests/formats/inexactify < expected.txt > expected.inexact
+$top_builddir/tests/formats/inexactify$EXEEXT < expected.txt > expected.inexact
 if [ $? -ne 0 ] ; then no_result ; fi
 echo -n .