3 |
# This program tests the aggregate procedure |
# This program tests the aggregate procedure |
4 |
|
|
5 |
TEMPDIR=/tmp/pspp-tst-$$ |
TEMPDIR=/tmp/pspp-tst-$$ |
6 |
|
TESTFILE=$TEMPDIR/`basename $0`.sps |
7 |
|
|
8 |
|
|
9 |
here=`pwd`; |
here=`pwd`; |
10 |
|
|
48 |
cd $TEMPDIR |
cd $TEMPDIR |
49 |
|
|
50 |
activity="program create" |
activity="program create" |
51 |
cat > $TEMPDIR/test.sps << EOF |
cat > $TESTFILE << EOF |
52 |
|
|
53 |
data list notable /x y 1-2. |
data list notable /x y 1-2. |
54 |
begin data. |
begin data. |
71 |
if [ $? -ne 0 ] ; then no_result ; fi |
if [ $? -ne 0 ] ; then no_result ; fi |
72 |
|
|
73 |
activity="run program" |
activity="run program" |
74 |
$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/test.sps |
$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE |
75 |
if [ $? -ne 0 ] ; then no_result ; fi |
if [ $? -ne 0 ] ; then no_result ; fi |
76 |
|
|
77 |
activity="test result" |
activity="test result" |