Make sort stable (PR 12313).
[pspp] / tests / command / bignum.sh
index 1ccc09ba4fa59ca1a0a5b02a92041d20653fd7b9..24d0dd3f2cec43b73a8a3449b11dabe3c5ca4201 100755 (executable)
@@ -3,6 +3,7 @@
 # This program tests the use of big numbers
 
 TEMPDIR=/tmp/pspp-tst-$$
+TESTFILE=$TEMPDIR/`basename $0`.sps
 
 here=`pwd`;
 
@@ -114,40 +115,20 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="create program"
-cat > $TEMPDIR/prog.stat <<foobar
+cat > $TESTFILE <<foobar
 title 'Test use of big numbers'.
 
 *** Do the portable output.
-remark EOF
-----------------------------------------------------------------------
-Testing use of big numbers.\n
-The numbers in the data file are designed for IEEE754 double
-format--if your system uses something different then the test needs to
-be adjusted for whatever are big numbers to your system.
-----------------------------------------------------------------------
-EOF
 data list file='$TEMPDIR/bignum.data'/BIGNUM 1-40.
 list.
 
 *** Do the nonportable output for fun. 
-remark EOF
-NOCOMP
-SUCCESS?
-----------------------------------------------------------------------
-This test merely shows whether your system can successfully handle
-floating-point overflow.  If you get a fatal exception at this point,
-the source needs some editing--glob.c should mask overflow exceptions
-in init_glob().  Again, the numbers are specific to IEEE754 double
-format.
-----------------------------------------------------------------------
-EOF
 descriptives BIGNUM.
-rem-SUCCESS
 foobar
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="run program"
-$SUPERVISOR $here/../src/pspp -o raw-ascii prog.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
 # Like the above comments say ...