From: Michal Nowak Date: Tue, 9 Jun 2026 16:11:51 +0000 (+0000) Subject: Report all unregistered unit test files at once X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4ccbe8159fcac8082a16242c5f46f9aaf73df05;p=thirdparty%2Fbind9.git Report all unregistered unit test files at once Collect every unregistered unit test file before exiting instead of failing on the first one, so a single configure run lists them all. Assisted-by: Claude:claude-opus-4-8 --- diff --git a/util/check_test_registration.py b/util/check_test_registration.py index 1bde17ef77c..fad3c9b14c3 100644 --- a/util/check_test_registration.py +++ b/util/check_test_registration.py @@ -17,12 +17,17 @@ import sys test_dir = sys.argv[1] registered = sys.argv[2:] +missing = [] for path in sorted(glob.glob(os.path.join(test_dir, "*_test.c"))): name = os.path.basename(path).removesuffix("_test.c") if name not in registered: + missing.append((os.path.basename(path), name)) + +if missing: + for filename, name in missing: print( - f"Unit test file {os.path.basename(path)} is not registered" + f"Unit test file {filename} is not registered" f" (add '{name}' to the list)", file=sys.stderr, ) - sys.exit(1) + sys.exit(1)