3 # Tests the NTILE subcommand of the frequencies command
5 TEMPDIR=/tmp/pspp-tst-$$
9 # ensure that top_srcdir is absolute
10 cd $top_srcdir; top_srcdir=`pwd`
12 STAT_CONFIG_PATH=$top_srcdir/config
13 export STAT_CONFIG_PATH
53 activity="create program $i"
54 cat > $TEMPDIR/prog.sps <<EOF
55 DATA LIST LIST notable /x * .
66 /PERCENTILES = 0 25 33.333 50 66.666 75 100
69 if [ $? -ne 0 ] ; then no_result; fi
71 activity="run program $i"
72 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/prog.sps
73 if [ $? -ne 0 ] ; then no_result ; fi
75 activity="move output"
76 cp $TEMPDIR/pspp.list $TEMPDIR/list.ref
77 if [ $? -ne 0 ] ; then no_result ; fi
81 activity="create program $i"
82 cat > $TEMPDIR/prog.sps <<EOF
83 DATA LIST LIST notable /x * .
98 if [ $? -ne 0 ] ; then no_result; fi
100 activity="run program $i"
101 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/prog.sps
102 if [ $? -ne 0 ] ; then no_result ; fi
104 activity="compare output"
105 diff $TEMPDIR/pspp.list $TEMPDIR/list.ref
106 if [ $? -ne 0 ] ; then fail; fi