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