diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2025-05-12 12:12:41 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2025-05-12 18:30:04 +0200 |
commit | 668b32d82bb314a352e3c41f20e2ac06d3110b55 (patch) | |
tree | cb9cf3998f056b57760b108ab20f5043ed5787ca /test | |
parent | 7e503da6c18c50e03d3cb1f5d7490f3c805f3b63 (diff) | |
download | justbuild-668b32d82bb314a352e3c41f20e2ac06d3110b55.tar.gz |
Tests: Enable compatible for normal CC tests
Diffstat (limited to 'test')
-rw-r--r-- | test/TARGETS | 55 |
1 files changed, 53 insertions, 2 deletions
diff --git a/test/TARGETS b/test/TARGETS index b1082951..55fd80fd 100644 --- a/test/TARGETS +++ b/test/TARGETS @@ -59,15 +59,66 @@ } , "unit tests with compatibility, compatible": { "type": "configure" + , "arguments_config": ["TEST_ENV"] , "tainted": ["test"] , "target": "unit tests with compatibility (unconfigured)" - , "config": {"type": "'", "$1": {"TEST_COMPATIBLE_REMOTE": true}} + , "config": + { "type": "`" + , "$1": + { "TEST_COMPATIBLE_REMOTE": true + , "TEST_ENV": + { "type": "," + , "$1": + { "type": "map_union" + , "$1": + [ { "type": "var" + , "name": "TEST_ENV" + , "default": {"type": "empty_map"} + } + , {"type": "'", "$1": {"COMPATIBLE": "YES"}} + ] + } + } + } + } } , "unit tests with compatibility, native": { "type": "configure" + , "arguments_config": ["TEST_ENV"] , "tainted": ["test"] , "target": "unit tests with compatibility (unconfigured)" - , "config": {"type": "'", "$1": {"TEST_COMPATIBLE_REMOTE": false}} + , "config": + { "type": "`" + , "$1": + { "TEST_COMPATIBLE_REMOTE": false + , "TEST_ENV": + { "type": "," + , "$1": + { "type": "map_union" + , "$1": + { "type": "foreach_map" + , "var_key": "name" + , "var_val": "value" + , "range": + { "type": "var" + , "name": "TEST_ENV" + , "default": {"type": "empty_map"} + } + , "body": + { "type": "case" + , "expr": {"type": "var", "name": "name"} + , "case": {"COMPATIBLE": {"type": "empty_map"}} + , "default": + { "type": "singleton_map" + , "key": {"type": "var", "name": "name"} + , "value": {"type": "var", "name": "value"} + } + } + } + } + } + } + } } , "unit tests with compatibility": { "type": ["@", "rules", "test", "suite"] |