3 |
# This program tests that the ONEWAY anova command works OK when there is missing data |
# This program tests that the ONEWAY anova command works OK when there is missing data |
4 |
|
|
5 |
TEMPDIR=/tmp/pspp-tst-$$ |
TEMPDIR=/tmp/pspp-tst-$$ |
6 |
|
TESTFILE=$TEMPDIR/`basename $0`.sps |
7 |
|
|
8 |
here=`pwd`; |
here=`pwd`; |
9 |
|
|
47 |
cd $TEMPDIR |
cd $TEMPDIR |
48 |
|
|
49 |
activity="create program" |
activity="create program" |
50 |
cat > $TEMPDIR/out.stat <<EOF |
cat > $TESTFILE <<EOF |
51 |
DATA LIST LIST /v1 * v2 * dep * vn *. |
DATA LIST LIST /v1 * v2 * dep * vn *. |
52 |
BEGIN DATA |
BEGIN DATA |
53 |
. . 1 4 |
. . 1 4 |
78 |
|
|
79 |
|
|
80 |
activity="run program" |
activity="run program" |
81 |
$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat |
$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE |
82 |
if [ $? -ne 0 ] ; then no_result ; fi |
if [ $? -ne 0 ] ; then no_result ; fi |
83 |
|
|
84 |
activity="copy output" |
activity="copy output" |
86 |
if [ $? -ne 0 ] ; then no_result ; fi |
if [ $? -ne 0 ] ; then no_result ; fi |
87 |
|
|
88 |
activity="create program 2" |
activity="create program 2" |
89 |
cat > $TEMPDIR/out.stat <<EOF |
cat > $TESTFILE <<EOF |
90 |
DATA LIST LIST /v1 * v2 * dep * vn * . |
DATA LIST LIST /v1 * v2 * dep * vn * . |
91 |
BEGIN DATA |
BEGIN DATA |
92 |
4 . 1 2 |
4 . 1 2 |
116 |
if [ $? -ne 0 ] ; then no_result ; fi |
if [ $? -ne 0 ] ; then no_result ; fi |
117 |
|
|
118 |
activity="run program 2" |
activity="run program 2" |
119 |
$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat |
$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE |
120 |
if [ $? -ne 0 ] ; then no_result ; fi |
if [ $? -ne 0 ] ; then no_result ; fi |
121 |
|
|
122 |
activity="compare outputs" |
activity="compare outputs" |
126 |
# Now try a missing dependent variable |
# Now try a missing dependent variable |
127 |
# Everything depends upon it, so it should behave as if LISTWISE were set |
# Everything depends upon it, so it should behave as if LISTWISE were set |
128 |
activity="create program 3" |
activity="create program 3" |
129 |
cat > $TEMPDIR/out.stat <<EOF |
cat > $TESTFILE <<EOF |
130 |
DATA LIST LIST /v1 * v2 * dep * vn * . |
DATA LIST LIST /v1 * v2 * dep * vn * . |
131 |
BEGIN DATA |
BEGIN DATA |
132 |
4 2 . 2 |
4 2 . 2 |
156 |
if [ $? -ne 0 ] ; then no_result ; fi |
if [ $? -ne 0 ] ; then no_result ; fi |
157 |
|
|
158 |
activity="run program 3" |
activity="run program 3" |
159 |
$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat |
$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE |
160 |
if [ $? -ne 0 ] ; then no_result ; fi |
if [ $? -ne 0 ] ; then no_result ; fi |
161 |
|
|
162 |
activity="compare outputs" |
activity="compare outputs" |