tests: add tests for the fragment mergeback changes
parent
0c690dc891
commit
951a844c94
|
@ -60,6 +60,8 @@ EXTRA_DIST = pkg.m4 \
|
||||||
tests/lib1/cflags-whitespace-trailing.pc \
|
tests/lib1/cflags-whitespace-trailing.pc \
|
||||||
tests/lib1/provides.pc \
|
tests/lib1/provides.pc \
|
||||||
tests/lib1/provides-request-simple.pc \
|
tests/lib1/provides-request-simple.pc \
|
||||||
|
tests/lib1/flag-order-1.pc \
|
||||||
|
tests/lib1/flag-order-3.pc \
|
||||||
tests/test_env.sh \
|
tests/test_env.sh \
|
||||||
$(test_scripts) \
|
$(test_scripts) \
|
||||||
doc/conf.py \
|
doc/conf.py \
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
prefix=/test
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${exec_prefix}/lib
|
||||||
|
includedir=${prefix}/include
|
||||||
|
cflags=-I${includedir}
|
||||||
|
|
||||||
|
Name: flag order 1
|
||||||
|
Description: test for flag ordering
|
||||||
|
Version: 1
|
||||||
|
Libs: -L${libdir} -Bdynamic -lfoo -Bstatic -lbar
|
|
@ -0,0 +1,10 @@
|
||||||
|
prefix=/test
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${exec_prefix}/lib
|
||||||
|
includedir=${prefix}/include
|
||||||
|
cflags=-I${includedir}
|
||||||
|
|
||||||
|
Name: flag order 3
|
||||||
|
Description: test for flag ordering
|
||||||
|
Version: 1
|
||||||
|
Libs: -L${libdir} -Wl,--start-group -lfoo -lbar -Wl,--end-group
|
|
@ -13,6 +13,10 @@ tests_init \
|
||||||
tilde_quoting \
|
tilde_quoting \
|
||||||
paren_quoting \
|
paren_quoting \
|
||||||
multiline_field \
|
multiline_field \
|
||||||
|
flag_order_1 \
|
||||||
|
flag_order_2 \
|
||||||
|
flag_order_3 \
|
||||||
|
flag_order_4 \
|
||||||
quoted
|
quoted
|
||||||
|
|
||||||
comments_body()
|
comments_body()
|
||||||
|
@ -107,3 +111,35 @@ quoted_body()
|
||||||
-o inline:"-DQUOTED=\\\"bla\\\" \n" \
|
-o inline:"-DQUOTED=\\\"bla\\\" \n" \
|
||||||
pkgconf --cflags quotes
|
pkgconf --cflags quotes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
flag_order_1_body()
|
||||||
|
{
|
||||||
|
export PKG_CONFIG_PATH="${selfdir}/lib1"
|
||||||
|
atf_check \
|
||||||
|
-o inline:"-L/test/lib -Bdynamic -lfoo -Bstatic -lbar \n" \
|
||||||
|
pkgconf --libs flag-order-1
|
||||||
|
}
|
||||||
|
|
||||||
|
flag_order_2_body()
|
||||||
|
{
|
||||||
|
export PKG_CONFIG_PATH="${selfdir}/lib1"
|
||||||
|
atf_check \
|
||||||
|
-o inline:"-L/test/lib -Bdynamic -lfoo -Bstatic -lbar -lfoo \n" \
|
||||||
|
pkgconf --libs flag-order-1 foo
|
||||||
|
}
|
||||||
|
|
||||||
|
flag_order_3_body()
|
||||||
|
{
|
||||||
|
export PKG_CONFIG_PATH="${selfdir}/lib1"
|
||||||
|
atf_check \
|
||||||
|
-o inline:"-L/test/lib -Wl,--start-group -lfoo -lbar -Wl,--end-group \n" \
|
||||||
|
pkgconf --libs flag-order-3
|
||||||
|
}
|
||||||
|
|
||||||
|
flag_order_4_body()
|
||||||
|
{
|
||||||
|
export PKG_CONFIG_PATH="${selfdir}/lib1"
|
||||||
|
atf_check \
|
||||||
|
-o inline:"-L/test/lib -Wl,--start-group -lfoo -lbar -Wl,--end-group -lfoo \n" \
|
||||||
|
pkgconf --libs flag-order-3 foo
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue