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
10 # ensure that top_srcdir is absolute
11 cd $top_srcdir; top_srcdir=`pwd`
13 STAT_CONFIG_PATH=$top_srcdir/config
14 export STAT_CONFIG_PATH
51 activity="create program"
53 DATA LIST LIST /v1 * v2 * dep * vn *.
75 /STATISTICS descriptives homogeneity
79 if [ $? -ne 0 ] ; then no_result ; fi
82 activity="run program"
83 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
84 if [ $? -ne 0 ] ; then no_result ; fi
86 activity="copy output"
87 cp $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
88 if [ $? -ne 0 ] ; then no_result ; fi
90 activity="create program 2"
92 DATA LIST LIST /v1 * v2 * dep * vn * .
114 /STATISTICS descriptives homogeneity
118 if [ $? -ne 0 ] ; then no_result ; fi
120 activity="run program 2"
121 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
122 if [ $? -ne 0 ] ; then no_result ; fi
124 activity="compare outputs"
125 diff $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
126 if [ $? -ne 0 ] ; then fail ; fi
128 # Now try a missing dependent variable
129 # Everything depends upon it, so it should behave as if LISTWISE were set
130 activity="create program 3"
131 cat > $TESTFILE <<EOF
132 DATA LIST LIST /v1 * v2 * dep * vn * .
154 /STATISTICS descriptives homogeneity
158 if [ $? -ne 0 ] ; then no_result ; fi
160 activity="run program 3"
161 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
162 if [ $? -ne 0 ] ; then no_result ; fi
164 activity="compare outputs"
165 diff $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
166 if [ $? -ne 0 ] ; then fail ; fi