3 # This program tests that the ONEWAY anova command works OK when there is missing data
5 TEMPDIR=/tmp/pspp-tst-$$
9 # ensure that top_srcdir is absolute
10 cd $top_srcdir; top_srcdir=`pwd`
12 export STAT_CONFIG_PATH=$top_srcdir/config
48 activity="create program"
49 cat > $TEMPDIR/out.stat <<EOF
50 DATA LIST LIST /v1 * v2 * dep * vn *.
72 /STATISTICS descriptives homogeneity
76 if [ $? -ne 0 ] ; then no_result ; fi
79 activity="run program"
80 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
81 if [ $? -ne 0 ] ; then no_result ; fi
83 activity="copy output"
84 cp $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
85 if [ $? -ne 0 ] ; then no_result ; fi
87 activity="create program 2"
88 cat > $TEMPDIR/out.stat <<EOF
89 DATA LIST LIST /v1 * v2 * dep * vn * .
111 /STATISTICS descriptives homogeneity
115 if [ $? -ne 0 ] ; then no_result ; fi
117 activity="run program 2"
118 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
119 if [ $? -ne 0 ] ; then no_result ; fi
121 activity="compare outputs"
122 diff $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
123 if [ $? -ne 0 ] ; then fail ; fi
125 # Now try a missing dependent variable
126 # Everything depends upon it, so it should behave as if LISTWISE were set
127 activity="create program 3"
128 cat > $TEMPDIR/out.stat <<EOF
129 DATA LIST LIST /v1 * v2 * dep * vn * .
151 /STATISTICS descriptives homogeneity
155 if [ $? -ne 0 ] ; then no_result ; fi
157 activity="run program 3"
158 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
159 if [ $? -ne 0 ] ; then no_result ; fi
161 activity="compare outputs"
162 diff $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
163 if [ $? -ne 0 ] ; then fail ; fi