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
54 activity="create program $i"
55 cat > $TEMPDIR/prog.sps <<EOF
56 DATA LIST LIST notable /x * .
67 /PERCENTILES = 0 25 33.333 50 66.666 75 100
70 if [ $? -ne 0 ] ; then no_result; fi
72 activity="run program $i"
73 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/prog.sps
74 if [ $? -ne 0 ] ; then no_result ; fi
76 activity="move output"
77 cp $TEMPDIR/pspp.list $TEMPDIR/list.ref
78 if [ $? -ne 0 ] ; then no_result ; fi
82 activity="create program $i"
83 cat > $TEMPDIR/prog.sps <<EOF
84 DATA LIST LIST notable /x * .
99 if [ $? -ne 0 ] ; then no_result; fi
101 activity="run program $i"
102 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/prog.sps
103 if [ $? -ne 0 ] ; then no_result ; fi
105 activity="compare output"
106 diff $TEMPDIR/pspp.list $TEMPDIR/list.ref
107 if [ $? -ne 0 ] ; then fail; fi