diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-12-01 17:19:44 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-12-16 21:08:05 +0100 |
commit | 36a66f98fa2022c53b3792110549f27f3ce5336c (patch) | |
tree | 3623154a35b351c56164f5af145ea39944d4ce86 /tests/test_cases/deps/TARGETS | |
parent | 484092bb16cbf4683313c4adab8571699513a60b (diff) | |
download | rules-cc-36a66f98fa2022c53b3792110549f27f3ce5336c.tar.gz |
tests: Add support for shared libraries
Diffstat (limited to 'tests/test_cases/deps/TARGETS')
-rw-r--r-- | tests/test_cases/deps/TARGETS | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/tests/test_cases/deps/TARGETS b/tests/test_cases/deps/TARGETS index 3fcf850..0af783f 100644 --- a/tests/test_cases/deps/TARGETS +++ b/tests/test_cases/deps/TARGETS @@ -29,6 +29,33 @@ ] , "data": [["TREE", null, "public"]] } +, "shared": + { "type": ["test_rules", "test_case"] + , "name": ["deps_shared"] + , "targets": + [ "+foo" + , "+bar" + , "+main_uses_foo" + , "+test_uses_foo" + , "+main_uses_bar" + , "+test_uses_bar" + , "+test_uses_bar_s" + , "+test_uses_baz" + , "+test_uses_main" + , "+test_diamond" + ] + , "asserts": + [ "test -f foo/libfoo.so.1.2.3" + , "test -f foo/foo/foo.hpp" + , "test -f bar/libbar.so" + , "test -f bar/bar/bar.hpp" + , "! test -f bar/foo/foo.hpp" + ] + , "data": [["TREE", null, "shared"]] + } , "ALL": - {"type": "install", "deps": ["private", "public"], "tainted": ["test"]} + { "type": "install" + , "deps": ["private", "public", "shared"] + , "tainted": ["test"] + } } |