Modify the random distributions test to verify to 2 more decimal
[pspp-builds.git] / tests / expressions / randist.sh
index b1c9f440317e53b8a4a824f325cb28782bc7f839..adfdb006425ebf767ea52bdeb33f7acc86209f43 100755 (executable)
@@ -67,8 +67,8 @@ 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