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
51 activity="create program"
81 /statistics=extreme(6)
84 if [ $? -ne 0 ] ; then no_result ; fi
87 activity="run program"
88 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
89 if [ $? -ne 0 ] ; then no_result ; fi
91 activity="compare results"
92 diff -b -B $TEMPDIR/pspp.list - << EOF
93 1.1 EXAMINE. Case Processing Summary
94 #==#===============================#
96 # #----------+---------+----------#
97 # # Valid | Missing | Total #
98 # #--+-------+-+-------+--+-------#
99 # # N|Percent|N|Percent| N|Percent#
100 #==#==#=======#=#=======#==#=======#
101 #V1#23| 100%|0| 0%|23| 100%#
102 #==#==#=======#=#=======#==#=======#
104 1.2 EXAMINE. Extreme Values
105 #==========#===========#=====#
106 # #Case Number|Value#
107 #==========#===========#=====#
108 #V1Highest1# 21|20.00#
114 # --------#-----------+-----#
121 #==========#===========#=====#
124 if [ $? -ne 0 ] ; then fail ; fi