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
55 activity="create program"
57 DATA LIST LIST /v1 * v2 * dep * vn *.
79 /STATISTICS descriptives homogeneity
83 if [ $? -ne 0 ] ; then no_result ; fi
86 activity="run program"
87 $SUPERVISOR $PSPP -o raw-ascii $TESTFILE
88 if [ $? -ne 0 ] ; then no_result ; fi
90 activity="copy output"
91 cp $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
92 if [ $? -ne 0 ] ; then no_result ; fi
94 activity="create program 2"
96 DATA LIST LIST /v1 * v2 * dep * vn * .
118 /STATISTICS descriptives homogeneity
122 if [ $? -ne 0 ] ; then no_result ; fi
124 activity="run program 2"
125 $SUPERVISOR $PSPP -o raw-ascii $TESTFILE
126 if [ $? -ne 0 ] ; then no_result ; fi
128 activity="compare outputs"
129 diff $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
130 if [ $? -ne 0 ] ; then fail ; fi
132 # Now try a missing dependent variable
133 # Everything depends upon it, so it should behave as if LISTWISE were set
134 activity="create program 3"
135 cat > $TESTFILE <<EOF
136 DATA LIST LIST /v1 * v2 * dep * vn * .
158 /STATISTICS descriptives homogeneity
162 if [ $? -ne 0 ] ; then no_result ; fi
164 activity="run program 3"
165 $SUPERVISOR $PSPP -o raw-ascii $TESTFILE
166 if [ $? -ne 0 ] ; then no_result ; fi
168 activity="compare outputs"
169 diff $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
170 if [ $? -ne 0 ] ; then fail ; fi