Files
astronomy/generate/diffcalc
Don Cross 67dd5dc691 Attempt to make GitHub Actions run the same python I told it to install.
It looks like I have been running an unintended version of Python
from GitHub Actions.  In Linux/Mac I used `python3`, and in Windows
I used `py`. It appears that I should be executing `python` in
all 3 operating systems.

This is an experiment to see if I can get everyone on the same page.
2024-05-30 12:57:43 -04:00

22 lines
695 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: $(python --version)"
FAILCOUNT=0
./ctest $1 diff 5.3e-15 temp/c_check.txt dotnet/csharp_test/csharp_check.txt || ((FAILCOUNT+=1))
./ctest $1 diff 6.8e-15 temp/{c,k}_check.txt || ((FAILCOUNT+=1))
./ctest $1 diff 6.7e-15 temp/{c,js}_check.txt || ((FAILCOUNT+=1))
./ctest $1 diff 4.8e-15 temp/{c,py}_check.txt || ((FAILCOUNT+=1))
./ctest $1 diff 6.7e-15 temp/{js,py}_check.txt || ((FAILCOUNT+=1))
if [[ ${FAILCOUNT} != 0 ]]; then
echo "diffcalc: *** FAILED ${FAILCOUNT} TESTS. ***"
exit 1
fi
echo "diffcalc: PASS"
exit 0