From 36a66f98fa2022c53b3792110549f27f3ce5336c Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Thu, 1 Dec 2022 17:19:44 +0100 Subject: tests: Add support for shared libraries --- tests/test_cases/deps/TARGETS | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'tests/test_cases/deps/TARGETS') 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"] + } } -- cgit v1.2.3