3 # This program tests that the ONEWAY anova command works OK when there is missing data
5 TEMPDIR=/tmp/pspp-tst-$$
6 TESTFILE=$TEMPDIR/`basename $0`.sps
8 # ensure that top_builddir are absolute
9 if [ -z "$top_builddir" ] ; then top_builddir=. ; fi
10 if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi
11 top_builddir=`cd $top_builddir; pwd`
13 # ensure that top_srcdir is absolute
14 top_srcdir=`cd $top_srcdir; pwd`
16 STAT_CONFIG_PATH=$top_srcdir/config
17 export STAT_CONFIG_PATH
54 activity="create program"
56 DATA LIST LIST /v1 * v2 * dep * vn *.
78 /STATISTICS descriptives homogeneity
82 if [ $? -ne 0 ] ; then no_result ; fi
85 activity="run program"
86 $SUPERVISOR $top_builddir/src/pspp -o raw-ascii $TESTFILE
87 if [ $? -ne 0 ] ; then no_result ; fi
89 activity="copy output"
90 cp $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
91 if [ $? -ne 0 ] ; then no_result ; fi
93 activity="create program 2"
95 DATA LIST LIST /v1 * v2 * dep * vn * .
117 /STATISTICS descriptives homogeneity
121 if [ $? -ne 0 ] ; then no_result ; fi
123 activity="run program 2"
124 $SUPERVISOR $top_builddir/src/pspp -o raw-ascii $TESTFILE
125 if [ $? -ne 0 ] ; then no_result ; fi
127 activity="compare outputs"
128 diff $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
129 if [ $? -ne 0 ] ; then fail ; fi
131 # Now try a missing dependent variable
132 # Everything depends upon it, so it should behave as if LISTWISE were set
133 activity="create program 3"
134 cat > $TESTFILE <<EOF
135 DATA LIST LIST /v1 * v2 * dep * vn * .
157 /STATISTICS descriptives homogeneity
161 if [ $? -ne 0 ] ; then no_result ; fi
163 activity="run program 3"
164 $SUPERVISOR $top_builddir/src/pspp -o raw-ascii $TESTFILE
165 if [ $? -ne 0 ] ; then no_result ; fi
167 activity="compare outputs"
168 diff $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
169 if [ $? -ne 0 ] ; then fail ; fi