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
23 if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then
24 echo "NOT cleaning $TEMPDIR"
59 activity="create data file"
60 cat > $TEMPDIR/bignum.data << wizzah
92 1234567890123456789012
93 19999999999999999999999
94 123456789012345678901234
95 1999999999999999999999999
96 12345678901234567890123456
97 199999999999999999999999999
98 1234567890123456789012345678
99 19999999999999999999999999999
100 123456789012345678901234567890
101 1999999999999999999999999999999
102 12345678901234567890123456789012
103 199999999999999999999999999999999
104 1234567890123456789012345678901234
105 19999999999999999999999999999999999
106 123456789012345678901234567890123456
107 1999999999999999999999999999999999999
108 12345678901234567890123456789012345678
109 199999999999999999999999999999999999999
110 1234567890123456789012345678901234567890
111 1999999999999999999999999999999999999999
124 if [ $? -ne 0 ] ; then no_result ; fi
127 activity="create program"
128 cat > $TESTFILE <<foobar
129 title 'Test use of big numbers'.
131 *** Do the portable output.
132 data list file='$TEMPDIR/bignum.data'/BIGNUM 1-40.
135 *** Do the nonportable output for fun.
138 if [ $? -ne 0 ] ; then no_result ; fi
140 activity="run program"
141 $SUPERVISOR $PSPP --testing-mode $TESTFILE
142 if [ $? -ne 0 ] ; then no_result ; fi
144 # Like the above comments say ...
145 # ... if we get here without crashing, then the test has passed.