1 |
#!/bin/sh |
#!/bin/sh |
2 |
|
|
3 |
# This program tests for a bug which caused |
# This program tests for a bug which caused |
4 |
# the second procedure after GET FILE to corrupt it's output |
# the second procedure after GET FILE to corrupt its output |
5 |
|
|
6 |
|
|
7 |
TEMPDIR=/tmp/pspp-tst-$$ |
TEMPDIR=/tmp/pspp-tst-$$ |
49 |
cd $TEMPDIR |
cd $TEMPDIR |
50 |
|
|
51 |
activity="create program" |
activity="create program" |
52 |
cat > $TEMPDIR/prog.sps <<EOF |
cat > $TESTFILE <<EOF |
53 |
DATA LIST LIST NOTABLE /location * editor * shell * freq * . |
DATA LIST LIST NOTABLE /location * editor * shell * freq * . |
54 |
BEGIN DATA. |
BEGIN DATA. |
55 |
1.00 1.00 1.0 2.00 |
1.00 1.00 1.0 2.00 |
75 |
EOF |
EOF |
76 |
if [ $? -ne 0 ] ; then no_result ; fi |
if [ $? -ne 0 ] ; then no_result ; fi |
77 |
|
|
78 |
|
|
79 |
activity="run program" |
activity="run program" |
80 |
$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/prog.sps |
$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE |
81 |
if [ $? -ne 0 ] ; then no_result ; fi |
if [ $? -ne 0 ] ; then no_result ; fi |
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
activity="compare output" |
activity="compare output" |
87 |
diff -b -B -w $TEMPDIR/pspp.list - << EOF |
diff -b -B -w $TEMPDIR/pspp.list - << EOF |
88 |
LOCATION EDITOR SHELL FREQ |
LOCATION EDITOR SHELL FREQ |