mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-06-09 08:44:49 -04:00
63 lines
1.5 KiB
Bash
Executable File
63 lines
1.5 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 planet apsis tests."
|
|
node planet_apsis_test.js || Fail "Failed planet 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 "Running constellation tests."
|
|
node constellation.js || Fail "Failed constellation tests."
|
|
|
|
echo ""
|
|
echo "SUCCESS."
|
|
exit 0
|