mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-03-23 17:03:37 -04:00
Includes coordinate transform logic support in C, JavaScript, and Python. Will start porting to C# soon.
55 lines
1.3 KiB
Bash
Executable File
55 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
Fail()
|
|
{
|
|
echo "ERROR($0): $1"
|
|
exit 1
|
|
}
|
|
|
|
echo ""
|
|
echo "Running astro_check."
|
|
time node astro_check.js > temp/js_check.txt || Fail "Problem running JavaScript unit test."
|
|
echo "Verifying astro_check output."
|
|
./generate check temp/js_check.txt || Fail "Verification failure for JavaScript unit test output."
|
|
|
|
echo ""
|
|
echo "Running check against JPL Horizons data."
|
|
./jplcheck || Fail "Error in JPL check."
|
|
|
|
echo ""
|
|
echo "Running test of moon phase search."
|
|
node moon_phase_test.js || Fail "Failed moon phase test."
|
|
|
|
echo ""
|
|
echo "Running lunar apsis tests."
|
|
node lunar_apsis_test.js || Fail "Failed lunar apsis test."
|
|
|
|
echo ""
|
|
echo "Running longitude tests."
|
|
node elong_test.js || Fail "Failed longitude tests."
|
|
|
|
echo ""
|
|
echo "Verifying elong_test output."
|
|
for file in temp/js_longitude_*.txt; do
|
|
./generate check ${file} || Fail "Failed verification of ${file}"
|
|
done
|
|
|
|
echo ""
|
|
echo "Running seasons test."
|
|
node seasons_test.js || Fail "Failed seasons test."
|
|
|
|
echo ""
|
|
echo "Running rise/set test."
|
|
node rise_set_test.js || Fail "Failed rise/set test."
|
|
|
|
echo ""
|
|
echo "Running magnitude tests."
|
|
node mag_test.js || Fail "Failed magnitude tests."
|
|
|
|
echo ""
|
|
echo "Running rotation tests."
|
|
node rotation.js || Fail "Failed rotation tests."
|
|
|
|
echo ""
|
|
echo "SUCCESS."
|
|
exit 0
|