summaryrefslogtreecommitdiff
path: root/tests/test_cases/deps/TARGETS
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-12-22 11:39:57 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2023-01-10 14:47:56 +0100
commit3774344bb7e270d14a5c5bda002f1db2fa26a20c (patch)
tree17e93e2a6fbcf622397894c43a8705986d63b593 /tests/test_cases/deps/TARGETS
parent1eb2ab6cf151ce59bfc27d11dade5742167f4229 (diff)
downloadrules-cc-3774344bb7e270d14a5c5bda002f1db2fa26a20c.tar.gz
tests: Test support for pkg-config
Diffstat (limited to 'tests/test_cases/deps/TARGETS')
-rw-r--r--tests/test_cases/deps/TARGETS10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_cases/deps/TARGETS b/tests/test_cases/deps/TARGETS
index 93aa167..fa6ef0b 100644
--- a/tests/test_cases/deps/TARGETS
+++ b/tests/test_cases/deps/TARGETS
@@ -61,6 +61,7 @@
, "+test_uses_baz"
, "+test_uses_main"
, "+test_diamond"
+ , "+install_foo"
, "+install_bar_s"
, "+install_baz"
, "+install_main"
@@ -71,10 +72,19 @@
, "test -f bar/libbar.so"
, "test -f bar/bar/bar.hpp"
, "! test -f bar/foo/foo.hpp"
+ , "test -f install_foo/lib/libfoo.so.1.2.3"
+ , "test -f install_foo/include/foo/foo.hpp"
+ , "grep 'Name: foo' install_foo/share/pkgconfig/foo.pc"
+ , "grep 'Version: 1.2.3' install_foo/share/pkgconfig/foo.pc"
+ , "grep -- '-L${libdir}' install_foo/share/pkgconfig/foo.pc"
+ , "grep -- '-l:libfoo.so.1.2.3' install_foo/share/pkgconfig/foo.pc"
, "test -f install_bar_s/lib/bar/libbar.a"
, "test -f install_bar_s/include/bar/bar.hpp"
, "test -f install_bar_s/lib/libfoo.so.1.2.3"
, "! test -f install_bar_s/include/foo/foo.hpp"
+ , "grep 'Name: bar' install_bar_s/share/pkgconfig/bar.pc"
+ , "grep '${libdir}/bar/libbar.a' install_bar_s/share/pkgconfig/bar.pc"
+ , "grep '${libdir}/libfoo.so.1.2.3' install_bar_s/share/pkgconfig/bar.pc"
, "test -f install_baz/lib/libbaz.so"
, "test -f install_baz/include/baz/baz.hpp"
, "! test -f install_baz/lib/foo/libfoo.a"