3 # This program tests the EXTREME subcommand of the EXAMINE command.
5 TEMPDIR=/tmp/pspp-tst-$$
6 TESTFILE=$TEMPDIR/`basename $0`.sps
10 # ensure that top_srcdir is absolute
11 cd $top_srcdir; top_srcdir=`pwd`
13 STAT_CONFIG_PATH=$top_srcdir/config
14 export STAT_CONFIG_PATH
50 activity="create program"
80 /statistics=extreme(6)
83 if [ $? -ne 0 ] ; then no_result ; fi
86 activity="run program"
87 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
88 if [ $? -ne 0 ] ; then no_result ; fi
90 activity="compare results"
91 diff -b -B $TEMPDIR/pspp.list - << EOF
92 1.1 EXAMINE. Case Processing Summary
93 #==#===============================#
95 # #----------+---------+----------#
96 # # Valid | Missing | Total #
97 # #--+-------+-+-------+--+-------#
98 # # N|Percent|N|Percent| N|Percent#
99 #==#==#=======#=#=======#==#=======#
100 #V1#23| 100%|0| 0%|23| 100%#
101 #==#==#=======#=#=======#==#=======#
103 1.2 EXAMINE. Extreme Values
104 #==========#===========#=====#
105 # #Case Number|Value#
106 #==========#===========#=====#
107 #V1Highest1# 21|20.00#
113 # --------#-----------+-----#
120 #==========#===========#=====#
123 if [ $? -ne 0 ] ; then fail ; fi