X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Fformats%2Fnum-out.sh;h=2d0932f7a8efe23f55ad80b6c37b0130d1947257;hb=42f90f5cd49c722219172fa067d937d923f8e9ec;hp=37b0d2eb16bc287baa1c66931347feec26b11699;hpb=8acca2de53c1852f38726f70fc6516b34732a79f;p=pspp diff --git a/tests/formats/num-out.sh b/tests/formats/num-out.sh index 37b0d2eb16..2d0932f7a8 100755 --- a/tests/formats/num-out.sh +++ b/tests/formats/num-out.sh @@ -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 .