testsuite: add a test for explicit depgraph breakage

pull/92/head
William Pitcock 2016-05-19 17:37:27 -05:00
parent 7eec25e90c
commit 25b730fbf6
3 changed files with 17 additions and 1 deletions

View File

@ -52,7 +52,8 @@ EXTRA_DIST = \
tests/lib3/bar.pc \ tests/lib3/bar.pc \
tests/lib1/conflicts.pc \ tests/lib1/conflicts.pc \
tests/lib1/omg-uninstalled.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 pkginclude_HEADERS = libpkgconf/bsdstubs.h libpkgconf/iter.h libpkgconf/libpkgconf.h libpkgconf/stdinc.h
libpkgconf_la_SOURCES = \ libpkgconf_la_SOURCES = \

View File

@ -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

View File

@ -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 \$?" \ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists --print-errors 'nonexisting foo <= 3'; echo \$?" \
'1' '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" \ run_test "PKG_CONFIG_PATH='${selfdir}/lib2' ${1} ${selfdir}/lib3/bar.pc --cflags" \
'-fPIC -I/test/include/foo' '-fPIC -I/test/include/foo'