mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-01-06 06:27:57 -05:00
54 lines
1.2 KiB
Bash
Executable File
54 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
Fail()
|
|
{
|
|
echo "ERROR($0): $1"
|
|
exit 1
|
|
}
|
|
|
|
echo ""
|
|
./makedoc || exit $?
|
|
|
|
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 "SUCCESS."
|
|
exit 0
|