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