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`
12 PSPP=$top_builddir/src/ui/terminal/pspp
14 # ensure that top_srcdir is absolute
15 top_srcdir=`cd $top_srcdir; pwd`
17 STAT_CONFIG_PATH=$top_srcdir/config
18 export STAT_CONFIG_PATH
55 activity="create data file"
56 cat > $TEMPDIR/bignum.data << wizzah
88 1234567890123456789012
89 19999999999999999999999
90 123456789012345678901234
91 1999999999999999999999999
92 12345678901234567890123456
93 199999999999999999999999999
94 1234567890123456789012345678
95 19999999999999999999999999999
96 123456789012345678901234567890
97 1999999999999999999999999999999
98 12345678901234567890123456789012
99 199999999999999999999999999999999
100 1234567890123456789012345678901234
101 19999999999999999999999999999999999
102 123456789012345678901234567890123456
103 1999999999999999999999999999999999999
104 12345678901234567890123456789012345678
105 199999999999999999999999999999999999999
106 1234567890123456789012345678901234567890
107 1999999999999999999999999999999999999999
120 if [ $? -ne 0 ] ; then no_result ; fi
123 activity="create program"
124 cat > $TESTFILE <<foobar
125 title 'Test use of big numbers'.
127 *** Do the portable output.
128 data list file='$TEMPDIR/bignum.data'/BIGNUM 1-40.
131 *** Do the nonportable output for fun.
134 if [ $? -ne 0 ] ; then no_result ; fi
136 activity="run program"
137 $SUPERVISOR $PSPP --testing-mode $TESTFILE
138 if [ $? -ne 0 ] ; then no_result ; fi
140 # Like the above comments say ...
141 # ... if we get here without crashing, then the test has passed.