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
50 activity="create program"
52 DATA LIST LIST /v1 * v2 * dep * vn *.
74 /STATISTICS descriptives homogeneity
78 if [ $? -ne 0 ] ; then no_result ; fi
81 activity="run program"
82 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
83 if [ $? -ne 0 ] ; then no_result ; fi
85 activity="copy output"
86 cp $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
87 if [ $? -ne 0 ] ; then no_result ; fi
89 activity="create program 2"
91 DATA LIST LIST /v1 * v2 * dep * vn * .
113 /STATISTICS descriptives homogeneity
117 if [ $? -ne 0 ] ; then no_result ; fi
119 activity="run program 2"
120 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
121 if [ $? -ne 0 ] ; then no_result ; fi
123 activity="compare outputs"
124 diff $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
125 if [ $? -ne 0 ] ; then fail ; fi
127 # Now try a missing dependent variable
128 # Everything depends upon it, so it should behave as if LISTWISE were set
129 activity="create program 3"
130 cat > $TESTFILE <<EOF
131 DATA LIST LIST /v1 * v2 * dep * vn * .
153 /STATISTICS descriptives homogeneity
157 if [ $? -ne 0 ] ; then no_result ; fi
159 activity="run program 3"
160 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
161 if [ $? -ne 0 ] ; then no_result ; fi
163 activity="compare outputs"
164 diff $TEMPDIR/pspp.list $TEMPDIR/pspp.list1
165 if [ $? -ne 0 ] ; then fail ; fi