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 export STAT_CONFIG_PATH=$top_srcdir/config
52 activity="create program $i"
53 cat > $TEMPDIR/prog.sps <<EOF
54 DATA LIST LIST notable /x * .
65 /PERCENTILES = 0 25 33.333 50 66.666 75 100
68 if [ $? -ne 0 ] ; then no_result; fi
70 activity="run program $i"
71 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/prog.sps
72 if [ $? -ne 0 ] ; then no_result ; fi
74 activity="move output"
75 cp $TEMPDIR/pspp.list $TEMPDIR/list.ref
76 if [ $? -ne 0 ] ; then no_result ; fi
80 activity="create program $i"
81 cat > $TEMPDIR/prog.sps <<EOF
82 DATA LIST LIST notable /x * .
97 if [ $? -ne 0 ] ; then no_result; fi
99 activity="run program $i"
100 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/prog.sps
101 if [ $? -ne 0 ] ; then no_result ; fi
103 activity="compare output"
104 diff $TEMPDIR/pspp.list $TEMPDIR/list.ref
105 if [ $? -ne 0 ] ; then fail; fi