summaryrefslogtreecommitdiff
path: root/tests/test_cases/deps/lint/TARGETS
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-21 11:00:48 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-23 15:33:21 +0200
commit4c49c81008fc2f22c2eef2e019a11f80cd5464a8 (patch)
tree09da6796020008e9233716da1a283b30e4ca7ef2 /tests/test_cases/deps/lint/TARGETS
parentd62cbb609f486becb6603e1712d81ba52788232e (diff)
downloadrules-cc-4c49c81008fc2f22c2eef2e019a11f80cd5464a8.tar.gz
Add test verifying lint information is propagated properly
... through all our various rules and forms of libraries.
Diffstat (limited to 'tests/test_cases/deps/lint/TARGETS')
-rw-r--r--tests/test_cases/deps/lint/TARGETS78
1 files changed, 78 insertions, 0 deletions
diff --git a/tests/test_cases/deps/lint/TARGETS b/tests/test_cases/deps/lint/TARGETS
new file mode 100644
index 0000000..425815b
--- /dev/null
+++ b/tests/test_cases/deps/lint/TARGETS
@@ -0,0 +1,78 @@
+{ "foo":
+ { "type": ["@", "rules", "CC", "library"]
+ , "name": ["foo"]
+ , "hdrs": ["foo.hpp"]
+ , "srcs": ["foo.cpp"]
+ , "deps": ["foodep"]
+ , "components": ["bar"]
+ }
+, "foodep":
+ { "type": ["@", "rules", "CC", "library"]
+ , "name": ["foodep"]
+ , "hdrs": ["foodep.hpp"]
+ , "srcs": ["foodep.cpp"]
+ }
+, "bar":
+ { "type": ["@", "rules", "CC", "library"]
+ , "name": ["bar"]
+ , "hdrs": ["bar.hpp"]
+ , "srcs": ["bar.cpp"]
+ , "deps": ["bardep"]
+ }
+, "bardep":
+ { "type": ["@", "rules", "CC", "library"]
+ , "name": ["bardep"]
+ , "hdrs": ["bardep.hpp"]
+ , "srcs": ["bardep.cpp"]
+ }
+, "plain":
+ { "type": ["@", "rules", "CC", "library"]
+ , "name": ["plain"]
+ , "arguments_config": ["TEST_SHARED"]
+ , "shared":
+ { "type": "if"
+ , "cond": {"type": "var", "name": "TEST_SHARED"}
+ , "then": ["yes"]
+ }
+ , "hdrs": ["plain.hpp"]
+ , "srcs": ["plain.cpp"]
+ , "deps": ["foo"]
+ }
+, "main":
+ { "type": ["@", "rules", "CC", "binary"]
+ , "name": ["main"]
+ , "srcs": ["main.cpp"]
+ , "private-deps": ["plain"]
+ }
+, "test":
+ { "type": ["@", "rules", "shell/test", "script"]
+ , "name": ["test"]
+ , "test": ["check-main.sh"]
+ , "deps": ["main"]
+ }
+, "suite":
+ { "type": ["@", "rules", "test", "suite"]
+ , "deps": ["test"]
+ , "stage": ["suite"]
+ }
+, "lint":
+ { "type": ["@", "rules", "lint", "targets"]
+ , "targets": ["suite"]
+ , "tainted": ["test"]
+ , "linter": ["pretend_lint.py"]
+ , "summarizer": ["summary.py"]
+ }
+, "lint-shared":
+ { "type": "configure"
+ , "target": "lint"
+ , "tainted": ["lint", "test"]
+ , "config": {"type": "singleton_map", "key": "TEST_SHARED", "value": true}
+ }
+, "test-shared":
+ { "type": "configure"
+ , "target": "test"
+ , "tainted": ["test"]
+ , "config": {"type": "singleton_map", "key": "TEST_SHARED", "value": true}
+ }
+, "verifier": {"type": "install", "files": {"expect": "expect.py"}}
+}