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 export STAT_CONFIG_PATH=$top_srcdir/config
49 activity="create program"
51 DATA LIST LIST /v1 * v2 * dep * vn *.
73 /STATISTICS descriptives homogeneity
77 if [ $? -ne 0 ] ; then no_result ; fi
80 activity="run program"
81 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
82 if [ $? -ne 0 ] ; then no_result ; fi
84 activity="copy output"
85 cp $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
86 if [ $? -ne 0 ] ; then no_result ; fi
88 activity="create program 2"
90 DATA LIST LIST /v1 * v2 * dep * vn * .
112 /STATISTICS descriptives homogeneity
116 if [ $? -ne 0 ] ; then no_result ; fi
118 activity="run program 2"
119 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
120 if [ $? -ne 0 ] ; then no_result ; fi
122 activity="compare outputs"
123 diff $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
124 if [ $? -ne 0 ] ; then fail ; fi
126 # Now try a missing dependent variable
127 # Everything depends upon it, so it should behave as if LISTWISE were set
128 activity="create program 3"
129 cat > $TESTFILE <<EOF
130 DATA LIST LIST /v1 * v2 * dep * vn * .
152 /STATISTICS descriptives homogeneity
156 if [ $? -ne 0 ] ; then no_result ; fi
158 activity="run program 3"
159 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
160 if [ $? -ne 0 ] ; then no_result ; fi
162 activity="compare outputs"
163 diff $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
164 if [ $? -ne 0 ] ; then fail ; fi