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