test: allow skipping nested local service probes

This commit is contained in:
udo
2026-06-22 02:39:36 +00:00
parent 30fcfce103
commit c148c1b36b
2 changed files with 14 additions and 4 deletions
+7 -2
View File
@@ -11,6 +11,7 @@ if [[ -z "${UCE_CLI_SOCKET:-}" && -r /etc/uce/settings.cfg ]]; then
fi
include_kill=0
skip_local_service_pages=0
action="run"
while [[ $# -gt 0 ]]; do
case "$1" in
@@ -18,13 +19,17 @@ while [[ $# -gt 0 ]]; do
include_kill=1
shift
;;
--skip-local-service-pages)
skip_local_service_pages=1
shift
;;
--list)
action="list"
shift
;;
-h|--help)
cat <<'USAGE'
Usage: scripts/run_cli_tests.sh [--include-wasm-kill] [--list]
Usage: scripts/run_cli_tests.sh [--include-wasm-kill] [--skip-local-service-pages] [--list]
Runs the UCE unit-based test suite through the runtime CLI socket.
USAGE
@@ -42,5 +47,5 @@ if [[ ! -S "$socket_path" ]]; then
exit 1
fi
url="http://localhost/tests/cli_runner.uce?action=${action}&include_kill=${include_kill}"
url="http://localhost/tests/cli_runner.uce?action=${action}&include_kill=${include_kill}&skip_local_service_pages=${skip_local_service_pages}"
exec curl -sS --fail-with-body --unix-socket "$socket_path" "$url"