3 |
# This program tests the DATA LIST input program. |
# This program tests the DATA LIST input program. |
4 |
|
|
5 |
TEMPDIR=/tmp/pspp-tst-$$ |
TEMPDIR=/tmp/pspp-tst-$$ |
6 |
|
TESTFILE=$TEMPDIR/`basename $0`.sps |
7 |
|
|
8 |
here=`pwd`; |
here=`pwd`; |
9 |
|
|
48 |
|
|
49 |
# Create command file. |
# Create command file. |
50 |
activity="create program" |
activity="create program" |
51 |
cat > $TEMPDIR/data-list.stat << EOF |
cat > $TESTFILE << EOF |
52 |
data list list ('|','X') /A B C D. |
data list list ('|','X') /A B C D. |
53 |
begin data. |
begin data. |
54 |
1|23X45|2.03 |
1|23X45|2.03 |
100 |
|
|
101 |
|
|
102 |
activity="run program" |
activity="run program" |
103 |
$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii --testing-mode $TEMPDIR/data-list.stat # > $TEMPDIR/errs |
$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii --testing-mode $TESTFILE |
104 |
if [ $? -ne 0 ] ; then fail ; fi |
if [ $? -ne 0 ] ; then fail ; fi |
105 |
|
|
106 |
activity="compare output" |
activity="compare output" |