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 export STAT_CONFIG_PATH=$top_srcdir/config
49 activity="create data file"
50 cat > $TEMPDIR/bignum.data << wizzah
82 1234567890123456789012
83 19999999999999999999999
84 123456789012345678901234
85 1999999999999999999999999
86 12345678901234567890123456
87 199999999999999999999999999
88 1234567890123456789012345678
89 19999999999999999999999999999
90 123456789012345678901234567890
91 1999999999999999999999999999999
92 12345678901234567890123456789012
93 199999999999999999999999999999999
94 1234567890123456789012345678901234
95 19999999999999999999999999999999999
96 123456789012345678901234567890123456
97 1999999999999999999999999999999999999
98 12345678901234567890123456789012345678
99 199999999999999999999999999999999999999
100 1234567890123456789012345678901234567890
101 1999999999999999999999999999999999999999
114 if [ $? -ne 0 ] ; then no_result ; fi
117 activity="create program"
118 cat > $TESTFILE <<foobar
119 title 'Test use of big numbers'.
121 *** Do the portable output.
122 data list file='$TEMPDIR/bignum.data'/BIGNUM 1-40.
125 *** Do the nonportable output for fun.
128 if [ $? -ne 0 ] ; then no_result ; fi
130 activity="run program"
131 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
132 if [ $? -ne 0 ] ; then no_result ; fi
134 # Like the above comments say ...
135 # ... if we get here without crashing, then the test has passed.