From 53ca9245145536c62e1cff0b032ddf41f2a95a84 Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Tue, 4 Jun 2024 11:49:04 +0200 Subject: ["test_rules", "test_case"]: add config vars to be propagated to the runner The config vars ENV, ARCH, HOST_ARCH, TARGET_ARCH, BUILD_ARCH, OS have been added. This allows to test the rules with different configurations and/or set required values via the "defaults" target of the rules under testing. --- tests/test_rules/test_runner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test_rules/test_runner.py') diff --git a/tests/test_rules/test_runner.py b/tests/test_rules/test_runner.py index 6fd2d8c..5c0d129 100755 --- a/tests/test_rules/test_runner.py +++ b/tests/test_rules/test_runner.py @@ -53,7 +53,8 @@ for t in config.get('targets', []): should_fail = t[0] == "-" ret = subprocess.run([ "./bin/just", "install", "--local-build-root", "./build_root", "-C", - "repos.json", "-o", "/".join(["./outs", target]), target + "repos.json", "-o", "/".join(["./outs", target]), + "-c", "conf_vars.json", target ], capture_output=True) success = ret.returncode != 0 if should_fail else ret.returncode == 0 -- cgit v1.2.3