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 perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
93 diff -b $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
94 1.1 EXAMINE. Case Processing Summary
95 #==#===============================#
97 # #----------+---------+----------#
98 # # Valid | Missing | Total #
99 # #--+-------+-+-------+--+-------#
100 # # N|Percent|N|Percent| N|Percent#
101 #==#==#=======#=#=======#==#=======#
102 #V1#23| 100%|0| 0%|23| 100%#
103 #==#==#=======#=#=======#==#=======#
105 1.2 EXAMINE. Extreme Values
106 #==========#===========#=====#
107 # #Case Number|Value#
108 #==========#===========#=====#
109 #V1Highest1# 21|20.00#
115 # --------#-----------+-----#
122 #==========#===========#=====#
125 if [ $? -ne 0 ] ; then fail ; fi