/[pspp]/pspp/tests/command/oneway-missing.sh
ViewVC logotype

Diff of /pspp/tests/command/oneway-missing.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jmd, Sat Oct 30 04:46:38 2004 UTC revision 1.2 by jmd, Tue Jan 18 11:31:45 2005 UTC
# Line 3  Line 3 
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    
# Line 46  mkdir -p $TEMPDIR Line 47  mkdir -p $TEMPDIR
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
# Line 77  if [ $? -ne 0 ] ; then no_result ; fi Line 78  if [ $? -ne 0 ] ; then no_result ; fi
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"
# Line 85  cp $TEMPDIR/pspp.list $TEMPDIR/pspp.list Line 86  cp $TEMPDIR/pspp.list $TEMPDIR/pspp.list
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
# Line 115  EOF Line 116  EOF
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"
# Line 125  if [ $? -ne 0 ] ; then fail ; fi Line 126  if [ $? -ne 0 ] ; then fail ; fi
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
# Line 155  EOF Line 156  EOF
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"

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26