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`
12 PSPP=$top_builddir/src/ui/terminal/pspp
14 # ensure that top_srcdir is absolute
15 top_srcdir=`cd $top_srcdir; pwd`
17 STAT_CONFIG_PATH=$top_srcdir/config
18 export STAT_CONFIG_PATH
23 if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then
24 echo "NOT cleaning $TEMPDIR"
59 activity="create program"
61 DATA LIST LIST /v1 * v2 * dep * vn *.
83 /STATISTICS descriptives homogeneity
87 if [ $? -ne 0 ] ; then no_result ; fi
90 activity="run program"
91 $SUPERVISOR $PSPP --testing-mode $TESTFILE
92 if [ $? -ne 0 ] ; then no_result ; fi
94 activity="copy output"
95 cp $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
96 if [ $? -ne 0 ] ; then no_result ; fi
98 activity="create program 2"
100 DATA LIST LIST /v1 * v2 * dep * vn * .
122 /STATISTICS descriptives homogeneity
126 if [ $? -ne 0 ] ; then no_result ; fi
128 activity="run program 2"
129 $SUPERVISOR $PSPP --testing-mode $TESTFILE
130 if [ $? -ne 0 ] ; then no_result ; fi
132 activity="compare outputs"
133 diff $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
134 if [ $? -ne 0 ] ; then fail ; fi
136 # Now try a missing dependent variable
137 # Everything depends upon it, so it should behave as if LISTWISE were set
138 activity="create program 3"
139 cat > $TESTFILE <<EOF
140 DATA LIST LIST /v1 * v2 * dep * vn * .
162 /STATISTICS descriptives homogeneity
166 if [ $? -ne 0 ] ; then no_result ; fi
168 activity="run program 3"
169 $SUPERVISOR $PSPP --testing-mode $TESTFILE
170 if [ $? -ne 0 ] ; then no_result ; fi
172 activity="compare outputs"
173 diff $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
174 if [ $? -ne 0 ] ; then fail ; fi