s/monitor_check_once.sh/test_acceptance.sh/

This commit is contained in:
Stephane Gourichon
2025-08-15 19:07:49 +02:00
parent 911a29dbdf
commit b6b1a5d0b7
4 changed files with 11 additions and 5 deletions

View File

@@ -1,3 +0,0 @@
#!/bin/bash
dig gourichon.org

View File

@@ -0,0 +1,7 @@
#!/bin/bash
cd -P "$(dirname "$(readlink -f "$0")" )"
set -eu
dig gourichon.org | grep -E 'gourichon.org.\s+[0-9]*\s+IN\s+A\s+82.64.72.120'

View File

@@ -43,7 +43,7 @@ then
CRON_LINES+=( "0 0 * * * $SCRIPT_ROOT/run_and_output_only_on_error.sh $INFRA_ROOT/$MONITOR_SCRIPT_PATH # monitoring_crontask" ) CRON_LINES+=( "0 0 * * * $SCRIPT_ROOT/run_and_output_only_on_error.sh $INFRA_ROOT/$MONITOR_SCRIPT_PATH # monitoring_crontask" )
done 3< <( find */ -iname "monitor_check_once.sh" ) done 3< <( find */ -iname "test_acceptance.sh" )
fi fi
{ {

View File

@@ -16,8 +16,10 @@ function fail_one()
while IFS="" read -u 3 -r MONITOR_SCRIPT_PATH while IFS="" read -u 3 -r MONITOR_SCRIPT_PATH
do do
echo >&2
echo >&2 "Will run: $MONITOR_SCRIPT_PATH"
"$MONITOR_SCRIPT_PATH" || { fail_one "$MONITOR_SCRIPT_PATH" ; } "$MONITOR_SCRIPT_PATH" || { fail_one "$MONITOR_SCRIPT_PATH" ; }
done 3< <( find . -iname "monitor_check_once.sh" ) done 3< <( find . -iname "test_acceptance.sh" )
echo "Overall result: $RC" echo "Overall result: $RC"
exit "$RC" exit "$RC"