diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-01-11 18:56:04 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-01-20 16:20:18 +0100 |
commit | 25981eeccf645ddc6338bed0b159014f210f4326 (patch) | |
tree | 2c6ec31213dea01ab4b874ebb22b674252225d3e /tests/test_cases/deps/TARGETS | |
parent | 5cf2ed4a1953564b2358af57345d4fecfcdf6673 (diff) | |
download | rules-cc-25981eeccf645ddc6338bed0b159014f210f4326.tar.gz |
Test initial prebuilt library support
Diffstat (limited to 'tests/test_cases/deps/TARGETS')
-rw-r--r-- | tests/test_cases/deps/TARGETS | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/tests/test_cases/deps/TARGETS b/tests/test_cases/deps/TARGETS index fa6ef0b..3e31861 100644 --- a/tests/test_cases/deps/TARGETS +++ b/tests/test_cases/deps/TARGETS @@ -96,9 +96,44 @@ ] , "data": [["TREE", null, "shared"]] } +, "prebuilt_tests": + { "type": "tree" + , "deps": [["test_cases/deps/prebuilt", "TARGETS"], ["TREE", null, "shared"]] + } +, "prebuilt": + { "type": ["test_rules", "test_case"] + , "name": ["deps_prebuilt"] + , "targets": + [ "+foo" + , "+bar" + , "+main_uses_foo" + , "+test_uses_foo" + , "+main_uses_bar" + , "+test_uses_bar" + , "+test_uses_bar_s" + , "+test_uses_main" + , "+install_main" + , "+test_uses_foobar" + , "+test_uses_foobar_s" + , "+install_foobar" + ] + , "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" + , "./install_main/bin/main_uses_bar | grep main" + , "./install_main/bin/main_uses_bar | grep bar" + , "./install_main/bin/main_uses_bar | grep foo" + , "test -f install_foobar/lib/libfoo.so.1.2.3" + , "test -f install_foobar/lib/libbar.so" + , "test -f install_foobar/share/pkgconfig/foobar.pc" + ] + , "data": ["prebuilt_tests"] + } , "ALL": { "type": "install" - , "deps": ["private", "public", "shared"] + , "deps": ["private", "public", "shared", "prebuilt"] , "tainted": ["test"] } } |