The current page also says there isn't a test suite. However, there
are test bc scripts provided, just no convenient Makefile target.
Here's the loop I came up with:
for TEST in Test/{checklib,testfn}.b; do
echo "quit" | ./bc/bc -l $TEST
done
The `echo "quit"' is needed because the scripts don't end with a quit
command. There's quite a bit of output, and 10 of the roughly 10,000
fail. Oddly, it's always with the same error that the two values
differ in number of significant digits by 4. Here's a sample.
Checking e(x)
scale = 10
Failed:
index = 97
val1 = 1338334719204269500461736408706115029076717.4572136445
val2 = 1338334719204269500461736408706115029076717.45721364460012
Should the tests be added? Should the output be redirected to a file?
--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page