3 # This program tests the SIGN subcommand of npar tests
5 TEMPDIR=/tmp/pspp-tst-$$
6 TESTFILE=$TEMPDIR/`basename $0`.sps
8 # ensure that top_srcdir and top_builddir are absolute
9 if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi
10 if [ -z "$top_builddir" ] ; then top_builddir=. ; fi
11 top_srcdir=`cd $top_srcdir; pwd`
12 top_builddir=`cd $top_builddir; pwd`
14 PSPP=$top_builddir/src/ui/terminal/pspp
16 STAT_CONFIG_PATH=$top_srcdir/config
17 export STAT_CONFIG_PATH
25 if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then
26 echo "NOT cleaning $TEMPDIR"
60 activity="create program 1"
61 cat > $TESTFILE << EOF
64 data list notable list /age * height rank *.
75 /sign=age height WITH height rank (PAIRED)
80 if [ $? -ne 0 ] ; then no_result ; fi
83 activity="run program 1"
84 $SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE
85 if [ $? -ne 0 ] ; then no_result ; fi
87 activity="compare output 1"
88 diff - $TEMPDIR/pspp.list <<EOF
89 1.1 NPAR TESTS. Frequencies
90 #=================================#=#
92 #---------------------------------+-#
93 #height - age Negative Differences|1#
94 # Positive Differences|3#
97 #---------------------------------+-#
98 #rank - heightNegative Differences|3#
99 # Positive Differences|2#
102 #=================================#=#
104 1.2 NPAR TESTS. Test Statistics
105 #=====================#============#=============#
106 # |height - age|rank - height#
107 #=====================#============#=============#
108 #Exact Sig. (2-tailed)| .625| 1.000#
109 #Exact Sig. (1-tailed)| .312| .500#
110 #Point Probability | .250| .312#
111 #=====================#============#=============#
114 if [ $? -ne 0 ] ; then fail ; fi