mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-08-02 10:57:13 -04:00
Two different people are currently helping me get the build process working on Mac OS. They both ran into different amounts of comparison error in the calculations for different langauges. I updated the 'diffcalc' bash script to have slightly less strict tolerances, so the unit tests pass.
15 lines
475 B
Bash
Executable File
15 lines
475 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "diffcalc: $(gcc --version | head -n 1)"
|
|
echo "diffcalc: dotnet $(dotnet --version)"
|
|
echo "diffcalc: Node.js $(node --version)"
|
|
echo "diffcalc: $(python3 --version)"
|
|
|
|
./ctest $1 diff 3.1e-15 temp/c_check.txt dotnet/csharp_test/csharp_check.txt || exit $?
|
|
./ctest $1 diff 6.7e-15 temp/{c,js}_check.txt || exit $?
|
|
./ctest $1 diff 3.1e-15 temp/{c,py}_check.txt || exit $?
|
|
./ctest $1 diff 6.7e-15 temp/{js,py}_check.txt || exit $?
|
|
|
|
echo "diffcalc: PASS"
|
|
exit 0
|