forked from ariadne/pkgconf
testsuite: add tests for circular dependencies
parent
beda1fffdd
commit
b1949e7706
|
@ -7,5 +7,5 @@ Name: circular-2
|
|||
Description: A testing pkg-config file
|
||||
Version: 1.2.3
|
||||
Libs: -lcircular-2
|
||||
Requires: circular-1
|
||||
Requires: circular-3
|
||||
Cflags:
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
prefix=/usr
|
||||
exec_prefix=${prefix}
|
||||
libdir=${prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: circular-3
|
||||
Description: A testing pkg-config file
|
||||
Version: 1.2.3
|
||||
Libs: -lcircular-3
|
||||
Requires: circular-1
|
||||
Cflags:
|
|
@ -86,6 +86,10 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists '' 'foo'; echo \$?" \
|
|||
'0'
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs intermediary-1 intermediary-2" \
|
||||
'-lintermediary-1 -lintermediary-2 -lfoo -lbar -lbaz'
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs circular-1" \
|
||||
'-lcircular-2 -lcircular-3 -lcircular-1'
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs circular-3" \
|
||||
'-lcircular-1 -lcircular-2 -lcircular-3'
|
||||
|
||||
# 2) tests for PKG_CONFIG_PATH order
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1${PATH_SEP}${selfdir}/lib2' ${1} --libs foo" \
|
||||
|
|
Loading…
Reference in New Issue