mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-04-04 14:55:38 -04:00
I had a bug back in May 2020 that turned out to be in generate.c unit tests, not in published Astronomy Engine code. I have long since fixed these bugs, but I still had fossil test code sitting around that doesn't work any more and isn't needed. Deleted it.
21 lines
506 B
Bash
Executable File
21 lines
506 B
Bash
Executable File
#!/bin/bash
|
|
Fail()
|
|
{
|
|
echo "ERROR($0): $1"
|
|
exit 1
|
|
}
|
|
|
|
[[ "$1" == "" || "$1" == "-v" ]] || Fail "Invalid command line options."
|
|
|
|
./ctbuild || exit 1
|
|
time ./ctest $1 check || Fail "Failure in ctest check"
|
|
./generate check temp/c_check.txt || Fail "Verification failure for C unit test output."
|
|
./ctest $1 all || Fail "Failure in C unit tests"
|
|
|
|
for file in temp/c_longitude_*.txt; do
|
|
./generate $1 check ${file} || Fail "Failed verification of file ${file}"
|
|
done
|
|
|
|
echo "unit_test_c: success"
|
|
exit 0
|