diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-08-09 15:32:40 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-08-09 16:49:40 +0200 |
commit | 2e8f03a66a8690dcd137834e0a3479e20b560b78 (patch) | |
tree | 8ce7ec9b0a368e4939359d7451662f3b9344eb6b /tests/test_cases/deps/TARGETS | |
parent | 8a6e4182cbac4bd6afd88e1dc222303b0df57001 (diff) | |
download | rules-cc-2e8f03a66a8690dcd137834e0a3479e20b560b78.tar.gz |
Add a test for components having components
Diffstat (limited to 'tests/test_cases/deps/TARGETS')
-rw-r--r-- | tests/test_cases/deps/TARGETS | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/test_cases/deps/TARGETS b/tests/test_cases/deps/TARGETS index b9b1344..fb3060a 100644 --- a/tests/test_cases/deps/TARGETS +++ b/tests/test_cases/deps/TARGETS @@ -344,6 +344,39 @@ ] , "data": [["TREE", null, "components"]] } +, "transitive-components": + { "type": ["test_rules", "test_case"] + , "name": ["deps_transitive_components"] + , "targets": + ["+baz", "+bar", "+foo", "+main", "+shared-foo", "+installed-shared-main"] + , "asserts": + [ "test -f foo/libfoo.a" + , "test -f foo/foo.hpp" + , "test -f foo/bar.hpp" + , "test -f foo/baz.hpp" + , "! test -f foo/foodep.hpp" + , "! test -f foo/bardep.hpp" + , "! test -f foo/bazdep.hpp" + , "./main/main" + , "./main/main | grep main" + , "./main/main | grep foodep" + , "./main/main | grep bardep" + , "./main/main | grep bazdep" + , "test -f shared-foo/libfoo.so" + , "test -f shared-foo/foo.hpp" + , "test -f shared-foo/bar.hpp" + , "test -f shared-foo/baz.hpp" + , "! test -f shared-foo/foodep.hpp" + , "! test -f shared-foo/bardep.hpp" + , "! test -f shared-foo/bazdep.hpp" + , "./installed-shared-main/bin/main" + , "./installed-shared-main/bin/main | grep main" + , "./installed-shared-main/bin/main | grep foodep" + , "./installed-shared-main/bin/main | grep bardep" + , "./installed-shared-main/bin/main | grep bazdep" + ] + , "data": [["TREE", null, "transitive-components"]] + } , "ALL": { "type": "install" , "deps": @@ -355,6 +388,7 @@ , "cmake" , "install" , "components" + , "transitive-components" ] , "tainted": ["test"] } |