summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSascha Roloff <sascha.roloff@huawei.com>2023-05-31 12:20:04 +0200
committerSascha Roloff <sascha.roloff@huawei.com>2023-05-31 13:09:29 +0200
commita56a6ebae4a116486df48d96705cc8c8b8d81857 (patch)
treea83c509513830be017ed9cf65595261055e1ca00 /tests
parent6bae849b9242378d286c80d08a903f143027328b (diff)
downloadrules-cc-a56a6ebae4a116486df48d96705cc8c8b8d81857.tar.gz
Update rule test cases to changed pkg-config file location
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cases/deps/TARGETS50
1 files changed, 25 insertions, 25 deletions
diff --git a/tests/test_cases/deps/TARGETS b/tests/test_cases/deps/TARGETS
index 450d1a3..909cb4b 100644
--- a/tests/test_cases/deps/TARGETS
+++ b/tests/test_cases/deps/TARGETS
@@ -74,17 +74,17 @@
, "! 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"
+ , "grep 'Name: foo' install_foo/lib/pkgconfig/foo.pc"
+ , "grep 'Version: 1.2.3' install_foo/lib/pkgconfig/foo.pc"
+ , "grep -- '-L${libdir}' install_foo/lib/pkgconfig/foo.pc"
+ , "grep -- '-l:libfoo.so.1.2.3' install_foo/lib/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"
+ , "grep 'Name: bar' install_bar_s/lib/pkgconfig/bar.pc"
+ , "grep '${libdir}/bar/libbar.a' install_bar_s/lib/pkgconfig/bar.pc"
+ , "grep '${libdir}/libfoo.so.1.2.3' install_bar_s/lib/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"
@@ -129,22 +129,22 @@
, "test -f foo/foo/foo.hpp"
, "test -f bar/libbar.so"
, "test -f bar/bar/bar.hpp"
- , "test -f install_foo/share/pkgconfig/foo/foo.cflags"
- , "test -f install_foo/share/pkgconfig/foo/foo.ldflags"
- , "test -f install_bar/share/pkgconfig/foo/foo.cflags"
- , "test -f install_bar/share/pkgconfig/foo/foo.ldflags"
- , "test -f install_bar/share/pkgconfig/bar/bar.cflags"
- , "test -f install_bar/share/pkgconfig/bar/bar.ldflags"
+ , "test -f install_foo/lib/pkgconfig/foo/foo.cflags"
+ , "test -f install_foo/lib/pkgconfig/foo/foo.ldflags"
+ , "test -f install_bar/lib/pkgconfig/foo/foo.cflags"
+ , "test -f install_bar/lib/pkgconfig/foo/foo.ldflags"
+ , "test -f install_bar/lib/pkgconfig/bar/bar.cflags"
+ , "test -f install_bar/lib/pkgconfig/bar/bar.ldflags"
, "./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"
- , "grep 'Cflags:.*@${prefix}/share/pkgconfig/bar/foobar.cflags' install_foobar/share/pkgconfig/foobar.pc"
- , "grep -- '-DUSE_BAR=1 -DUSE_FOO=1' install_foobar/share/pkgconfig/bar/foobar.cflags"
- , "grep 'Libs:.*@${prefix}/share/pkgconfig/bar/foobar.ldflags' install_foobar/share/pkgconfig/foobar.pc"
- , "grep -- '-lm -lpthread' install_foobar/share/pkgconfig/bar/foobar.ldflags"
+ , "test -f install_foobar/lib/pkgconfig/foobar.pc"
+ , "grep 'Cflags:.*@${prefix}/lib/pkgconfig/bar/foobar.cflags' install_foobar/lib/pkgconfig/foobar.pc"
+ , "grep -- '-DUSE_BAR=1 -DUSE_FOO=1' install_foobar/lib/pkgconfig/bar/foobar.cflags"
+ , "grep 'Libs:.*@${prefix}/lib/pkgconfig/bar/foobar.ldflags' install_foobar/lib/pkgconfig/foobar.pc"
+ , "grep -- '-lm -lpthread' install_foobar/lib/pkgconfig/bar/foobar.ldflags"
]
, "data": ["prebuilt_tests"]
}
@@ -173,16 +173,16 @@
, "grep 'PASSED.*1 test' shell_test/stdout"
, "test -f install_gtest/lib/libgtest.a"
, "test -f install_gtest/include/gtest/gtest.h"
- , "grep 'Cflags.*share/pkgconfig/gtest.cflags' install_gtest/share/pkgconfig/gtest.pc"
- , "grep 'Libs.*libgtest.a' install_gtest/share/pkgconfig/gtest.pc"
- , "grep 'Libs.*share/pkgconfig/gtest.ldflags' install_gtest/share/pkgconfig/gtest.pc"
+ , "grep 'Cflags.*lib/pkgconfig/gtest.cflags' install_gtest/lib/pkgconfig/gtest.pc"
+ , "grep 'Libs.*libgtest.a' install_gtest/lib/pkgconfig/gtest.pc"
+ , "grep 'Libs.*lib/pkgconfig/gtest.ldflags' install_gtest/lib/pkgconfig/gtest.pc"
, "test -f install_gtest_main/lib/libgtest.so.1.13.0"
, "test -f install_gtest_main/lib/libgtest_main.so.1.13.0"
, "test -f install_gtest_main/include/gtest/gtest.h"
- , "grep 'Cflags.*share/pkgconfig/gtest_main.cflags' install_gtest_main/share/pkgconfig/gtest_main.pc"
- , "grep 'Libs.*libgtest.so.1.13.0' install_gtest_main/share/pkgconfig/gtest_main.pc"
- , "grep 'Libs.*libgtest_main.so.1.13.0' install_gtest_main/share/pkgconfig/gtest_main.pc"
- , "grep 'Libs.*share/pkgconfig/gtest_main.ldflags' install_gtest_main/share/pkgconfig/gtest_main.pc"
+ , "grep 'Cflags.*lib/pkgconfig/gtest_main.cflags' install_gtest_main/lib/pkgconfig/gtest_main.pc"
+ , "grep 'Libs.*libgtest.so.1.13.0' install_gtest_main/lib/pkgconfig/gtest_main.pc"
+ , "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'"
]
, "data": [["TREE", null, "cmake"]]