5 |
# a few cases |
# a few cases |
6 |
|
|
7 |
TEMPDIR=/tmp/pspp-tst-$$ |
TEMPDIR=/tmp/pspp-tst-$$ |
8 |
|
TESTFILE=$TEMPDIR/`basename $0`.sps |
9 |
|
|
10 |
here=`pwd`; |
here=`pwd`; |
11 |
|
|
49 |
cd $TEMPDIR |
cd $TEMPDIR |
50 |
|
|
51 |
activity="create program" |
activity="create program" |
52 |
cat > $TEMPDIR/out.stat <<EOF |
cat > $TESTFILE <<EOF |
53 |
DATA LIST LIST /x *. |
DATA LIST LIST /x *. |
54 |
BEGIN DATA. |
BEGIN DATA. |
55 |
2.00 |
2.00 |
75 |
if [ $? -ne 0 ] ; then no_result ; fi |
if [ $? -ne 0 ] ; then no_result ; fi |
76 |
|
|
77 |
activity="run program" |
activity="run program" |
78 |
$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat |
$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE |
79 |
if [ $? -ne 0 ] ; then no_result ; fi |
if [ $? -ne 0 ] ; then no_result ; fi |
80 |
|
|
81 |
|
|