3 # Tests random distribution functions.
5 TEMPDIR=/tmp/pspp-tst-$$
9 # ensure that top_srcdir is absolute
10 cd $top_srcdir; top_srcdir=`pwd`
12 export STAT_CONFIG_PATH=$top_srcdir/config
48 activity="run script to generate random distribution test command file"
49 perl $top_srcdir/tests/expressions/randist/randist.pl \
50 < $top_srcdir/tests/expressions/randist/randist.txt \
52 if [ $? -ne 0 ] ; then no_result ; fi
54 activity="run command file"
55 $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii \
56 $TEMPDIR/randist.pspp >$TEMPDIR/randist.err 2> $TEMPDIR/randist.out
57 if [ $? -ne 0 ] ; then fail ; fi
59 for d in beta cauchy chisq exp f gamma laplace logistic lnormal \
60 normal pareto t uniform weibull; do
61 activity="compare output for $d distribution"
62 diff -B -b $top_srcdir/tests/expressions/randist/$d.out $TEMPDIR/$d.out
63 if [ $? -ne 0 ] ; then fail ; fi