forked from ariadne/pkgconf
testsuite: add a test for explicit depgraph breakage
parent
7eec25e90c
commit
25b730fbf6
|
@ -52,7 +52,8 @@ EXTRA_DIST = \
|
|||
tests/lib3/bar.pc \
|
||||
tests/lib1/conflicts.pc \
|
||||
tests/lib1/omg-uninstalled.pc \
|
||||
tests/lib1/isystem.pc
|
||||
tests/lib1/isystem.pc \
|
||||
tests/lib1/depgraph-break.pc
|
||||
|
||||
pkginclude_HEADERS = libpkgconf/bsdstubs.h libpkgconf/iter.h libpkgconf/libpkgconf.h libpkgconf/stdinc.h
|
||||
libpkgconf_la_SOURCES = \
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
prefix=/test
|
||||
exec_prefix=${prefix}
|
||||
libdir=${prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: depgraph-break
|
||||
Description: A testing pkg-config file
|
||||
Version: 1.2.3
|
||||
Libs: -L${libdir} -lfoo
|
||||
Cflags: -fPIC -I${includedir}/foo
|
||||
Cflags.private: -DFOO_STATIC
|
||||
Requires: nonexistant
|
|
@ -250,6 +250,9 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists --print-errors 'foo >
|
|||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists --print-errors 'nonexisting foo <= 3'; echo \$?" \
|
||||
'1'
|
||||
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists --print-errors 'depgraph-break'; echo \$?" \
|
||||
'1'
|
||||
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib2' ${1} ${selfdir}/lib3/bar.pc --cflags" \
|
||||
'-fPIC -I/test/include/foo'
|
||||
|
||||
|
|
Loading…
Reference in New Issue