3 # This program tests the use of big numbers
5 TEMPDIR=/tmp/pspp-tst-$$
6 TESTFILE=$TEMPDIR/`basename $0`.sps
10 # ensure that top_srcdir is absolute
11 cd $top_srcdir; top_srcdir=`pwd`
13 STAT_CONFIG_PATH=$top_srcdir/config
14 export STAT_CONFIG_PATH
51 activity="create data file"
52 cat > $TEMPDIR/bignum.data << wizzah
84 1234567890123456789012
85 19999999999999999999999
86 123456789012345678901234
87 1999999999999999999999999
88 12345678901234567890123456
89 199999999999999999999999999
90 1234567890123456789012345678
91 19999999999999999999999999999
92 123456789012345678901234567890
93 1999999999999999999999999999999
94 12345678901234567890123456789012
95 199999999999999999999999999999999
96 1234567890123456789012345678901234
97 19999999999999999999999999999999999
98 123456789012345678901234567890123456
99 1999999999999999999999999999999999999
100 12345678901234567890123456789012345678
101 199999999999999999999999999999999999999
102 1234567890123456789012345678901234567890
103 1999999999999999999999999999999999999999
116 if [ $? -ne 0 ] ; then no_result ; fi
119 activity="create program"
120 cat > $TESTFILE <<foobar
121 title 'Test use of big numbers'.
123 *** Do the portable output.
124 data list file='$TEMPDIR/bignum.data'/BIGNUM 1-40.
127 *** Do the nonportable output for fun.
130 if [ $? -ne 0 ] ; then no_result ; fi
132 activity="run program"
133 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
134 if [ $? -ne 0 ] ; then no_result ; fi
136 # Like the above comments say ...
137 # ... if we get here without crashing, then the test has passed.