3 # Tests the NTILE subcommand of the frequencies command
5 TEMPDIR=/tmp/pspp-tst-$$
7 # ensure that top_builddir are absolute
8 if [ -z "$top_builddir" ] ; then top_builddir=. ; fi
9 if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi
10 top_builddir=`cd $top_builddir; pwd`
12 # ensure that top_srcdir is absolute
13 top_srcdir=`cd $top_srcdir; pwd`
15 STAT_CONFIG_PATH=$top_srcdir/config
16 export STAT_CONFIG_PATH
57 activity="create program $i"
58 cat > $TEMPDIR/prog.sps <<EOF
59 DATA LIST LIST notable /x * .
70 /PERCENTILES = 0 25 33.333 50 66.666 75 100
73 if [ $? -ne 0 ] ; then no_result; fi
75 activity="run program $i"
76 $SUPERVISOR $top_builddir/src/pspp -o raw-ascii $TEMPDIR/prog.sps
77 if [ $? -ne 0 ] ; then no_result ; fi
79 activity="move output"
80 cp $TEMPDIR/pspp.list $TEMPDIR/list.ref
81 if [ $? -ne 0 ] ; then no_result ; fi
85 activity="create program $i"
86 cat > $TEMPDIR/prog.sps <<EOF
87 DATA LIST LIST notable /x * .
102 if [ $? -ne 0 ] ; then no_result; fi
104 activity="run program $i"
105 $SUPERVISOR $top_builddir/src/pspp -o raw-ascii $TEMPDIR/prog.sps
106 if [ $? -ne 0 ] ; then no_result ; fi
108 activity="compare output"
109 diff $TEMPDIR/pspp.list $TEMPDIR/list.ref
110 if [ $? -ne 0 ] ; then fail; fi