X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fexpressions%2Frandist.sh;h=58fe386d291f4738661c0385d1ee67faeaf0d180;hb=ba03e6dae4d379b510b053c4df6d41277b456d3a;hp=b1c9f440317e53b8a4a824f325cb28782bc7f839;hpb=65a4e29574b67921ea899b6a1d45806dca11db00;p=pspp-builds.git diff --git a/tests/expressions/randist.sh b/tests/expressions/randist.sh index b1c9f440..58fe386d 100755 --- a/tests/expressions/randist.sh +++ b/tests/expressions/randist.sh @@ -19,7 +19,7 @@ export STAT_CONFIG_PATH cleanup() { if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then - echo NOT removing directory $TEMPDIR + echo "NOT cleaning $TEMPDIR" return ; fi cd / @@ -60,15 +60,15 @@ perl $top_srcdir/tests/expressions/randist/randist.pl \ if [ $? -ne 0 ] ; then no_result ; fi activity="run command file" -$SUPERVISOR $PSPP --testing-mode -o raw-ascii \ +$SUPERVISOR $PSPP --testing-mode \ $TEMPDIR/randist.pspp >$TEMPDIR/randist.err 2> $TEMPDIR/randist.out if [ $? -ne 0 ] ; then fail ; fi for d in beta cauchy chisq exp f gamma laplace logistic lnormal \ normal pareto t uniform weibull; do activity="compare output for $d distribution" - perl -pi -e 's/^\s*$//g' $top_srcdir/tests/expressions/randist/$d.out $TEMPDIR/$d.out - diff -b $top_srcdir/tests/expressions/randist/$d.out $TEMPDIR/$d.out + perl $top_srcdir/tests/expressions/randist/compare.pl \ + $top_srcdir/tests/expressions/randist/$d.out $TEMPDIR/$d.out if [ $? -ne 0 ] ; then fail ; fi done