3 # This program tests the EXTREME subcommand of the EXAMINE 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
48 activity="create program"
49 cat > $TEMPDIR/out.stat <<EOF
78 /statistics=extreme(6)
81 if [ $? -ne 0 ] ; then no_result ; fi
84 activity="run program"
85 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
86 if [ $? -ne 0 ] ; then no_result ; fi
88 activity="compare results"
89 diff $TEMPDIR/pspp.list - << EOF
90 1.1 EXAMINE. Case Processing Summary
91 #==#===============================#
93 # #----------+---------+----------#
94 # # Valid | Missing | Total #
95 # #--+-------+-+-------+--+-------#
96 # # N|Percent|N|Percent| N|Percent#
97 #==#==#=======#=#=======#==#=======#
98 #V1#23| 100%|0| 0%|23| 100%#
99 #==#==#=======#=#=======#==#=======#
101 1.2 EXAMINE. Extreme Values
102 #==========#===========#=====#
103 # #Case Number|Value#
104 #==========#===========#=====#
105 #V1Highest1# 21|20.00#
111 # --------#-----------+-----#
118 #==========#===========#=====#
121 if [ $? -ne 0 ] ; then fail ; fi