diff options
author | Sascha Roloff <sascha.roloff@huawei.com> | 2023-05-30 19:05:56 +0200 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2023-05-31 13:09:29 +0200 |
commit | 06e3d7e45db8edcac37b5ba34837e8ddab4d549f (patch) | |
tree | fbbb0f6c5412c966871224dfc88fe45f32cad750 /tests/test_cases/deps/TARGETS | |
parent | a56a6ebae4a116486df48d96705cc8c8b8d81857 (diff) | |
download | rules-cc-06e3d7e45db8edcac37b5ba34837e8ddab4d549f.tar.gz |
Add testcase for cmake dependencies
Diffstat (limited to 'tests/test_cases/deps/TARGETS')
-rw-r--r-- | tests/test_cases/deps/TARGETS | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_cases/deps/TARGETS b/tests/test_cases/deps/TARGETS index 909cb4b..10a6749 100644 --- a/tests/test_cases/deps/TARGETS +++ b/tests/test_cases/deps/TARGETS @@ -151,7 +151,7 @@ , "cmake": { "type": ["test_rules", "test_case"] , "name": ["deps_cmake"] - , "libs": ["googletest"] + , "libs": ["googletest", "libz", "libcurl"] , "targets": [ "+gtest" , "+test" @@ -161,6 +161,7 @@ , "+install_gtest" , "+install_gtest_main" , "+install_testbin" + , "+install_libcurl" ] , "asserts": [ "test -f gtest/libgtest.a" @@ -184,6 +185,7 @@ , "grep 'Libs.*libgtest_main.so.1.13.0' install_gtest_main/lib/pkgconfig/gtest_main.pc" , "grep 'Libs.*lib/pkgconfig/gtest_main.ldflags' install_gtest_main/lib/pkgconfig/gtest_main.pc" , "./install_testbin/bin/test | grep 'PASSED.*1 test'" + , "path=$(ldd install_libcurl/lib/libcurl.so.4.8.0 | awk '/libz/{print $3}') && test -z \"${path##$(pwd)*}\"" ] , "data": [["TREE", null, "cmake"]] } |