From dff951822a3d3403f50ed2819702ddcb11ca910f Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Thu, 17 Sep 2026 11:24:40 +0200 Subject: [PATCH 1/2] scripts: depends-py: add the possibility to provide a fully custom build-and-test command This is useful for debugging purposes because, for example, the user only want to build a specific suite and/or only run it instead of building and testing everything for all the jobs. For this scope the custom command can be a bash script that's executed instead of 'make' + 'make test'. Signed-off-by: Valerio Setti --- tests/scripts/depends.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/scripts/depends.py b/tests/scripts/depends.py index 24f120b05e..d06e8f149c 100755 --- a/tests/scripts/depends.py +++ b/tests/scripts/depends.py @@ -429,8 +429,11 @@ class DomainData: # pylint: disable=too-many-locals def __init__(self, options, conf): """Gather data about the library and establish a list of domains to test.""" - build_command = [options.make_command, '-f', 'scripts/legacy.make', 'CFLAGS=-Werror -O2'] - build_and_test = [build_command, [options.make_command, '-f', + if options.build_and_test_command: + build_and_test = [[options.build_and_test_command]] + else: + build_command = [options.make_command, '-f', 'scripts/legacy.make', 'CFLAGS=-Werror -O2'] + build_and_test = [build_command, [options.make_command, '-f', 'scripts/legacy.make', 'test']] self.all_config_symbols = set(conf.settings.keys()) psa_info = psa_information.Information().constructors @@ -600,6 +603,8 @@ def main(): parser.add_argument('--make-command', metavar='CMD', help='Command to run instead of make (e.g. gmake)', action='store', default='make') + parser.add_argument('--build-and-test-command', + help='Provide a custom command or script to build and test') parser.add_argument('tasks', metavar='TASKS', nargs='*', help='The domain(s) or job(s) to test (default: all).', default=True) From 3c1b87e3870d7f9560c626e1fc3a6aef1c521781 Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Thu, 17 Sep 2026 17:29:58 +0200 Subject: [PATCH 2/2] scripts: depends-py: fix pylint complains Signed-off-by: Valerio Setti --- tests/scripts/depends.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/scripts/depends.py b/tests/scripts/depends.py index d06e8f149c..1505a82eb3 100755 --- a/tests/scripts/depends.py +++ b/tests/scripts/depends.py @@ -432,9 +432,10 @@ class DomainData: if options.build_and_test_command: build_and_test = [[options.build_and_test_command]] else: - build_command = [options.make_command, '-f', 'scripts/legacy.make', 'CFLAGS=-Werror -O2'] + build_command = [options.make_command, '-f', 'scripts/legacy.make', + 'CFLAGS=-Werror -O2'] build_and_test = [build_command, [options.make_command, '-f', - 'scripts/legacy.make', 'test']] + 'scripts/legacy.make', 'test']] self.all_config_symbols = set(conf.settings.keys()) psa_info = psa_information.Information().constructors algs = {crypto_knowledge.Algorithm(alg): symbol