forked from ariadne/pkgconf
tests: add an additional test for more complicated --static relationships
parent
17b0c40d2a
commit
b26374a5ad
|
@ -0,0 +1,12 @@
|
||||||
|
prefix=/usr/local
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${prefix}/lib
|
||||||
|
includedir=${prefix}/include
|
||||||
|
|
||||||
|
Name: static-libs
|
||||||
|
Description: A testing pkg-config file
|
||||||
|
Version: 1.2.3
|
||||||
|
Libs: -lbar
|
||||||
|
Libs.private: -lbar-private
|
||||||
|
Cflags: -I${includedir}/foo
|
||||||
|
Requires.private: foo
|
|
@ -118,6 +118,8 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --static --cflags baz" \
|
||||||
'-fPIC' '-I/usr/include/foo' '-DFOO_STATIC'
|
'-fPIC' '-I/usr/include/foo' '-DFOO_STATIC'
|
||||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --static --libs-only-l private-libs-duplication" \
|
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --static --libs-only-l private-libs-duplication" \
|
||||||
'-lprivate -lbaz -lfoo -lbar -lzee'
|
'-lprivate -lbaz -lfoo -lbar -lzee'
|
||||||
|
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --static --libs static-libs" \
|
||||||
|
'-lbar -lbar-private -lfoo'
|
||||||
|
|
||||||
# 4) tests for parser bugs
|
# 4) tests for parser bugs
|
||||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs dos-lineendings" \
|
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs dos-lineendings" \
|
||||||
|
|
Loading…
Reference in New Issue