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 export STAT_CONFIG_PATH=$top_srcdir/config
49 activity="create program"
79 /statistics=extreme(6)
82 if [ $? -ne 0 ] ; then no_result ; fi
85 activity="run program"
86 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
87 if [ $? -ne 0 ] ; then no_result ; fi
89 activity="compare results"
90 diff -b -B $TEMPDIR/pspp.list - << EOF
91 1.1 EXAMINE. Case Processing Summary
92 #==#===============================#
94 # #----------+---------+----------#
95 # # Valid | Missing | Total #
96 # #--+-------+-+-------+--+-------#
97 # # N|Percent|N|Percent| N|Percent#
98 #==#==#=======#=#=======#==#=======#
99 #V1#23| 100%|0| 0%|23| 100%#
100 #==#==#=======#=#=======#==#=======#
102 1.2 EXAMINE. Extreme Values
103 #==========#===========#=====#
104 # #Case Number|Value#
105 #==========#===========#=====#
106 #V1Highest1# 21|20.00#
112 # --------#-----------+-----#
119 #==========#===========#=====#
122 if [ $? -ne 0 ] ; then fail ; fi