pkg-config/check/Makefile.am
Dan Nicholson 0e6ea44d68 check: Check path handling
Add a test for pkg-config's path handling. The first test covers
PKG_CONFIG_PATH, and the second covers the built-in path. For this one
we need to unset the PKG_CONFIG_LIBDIR that normally is set during the
tests. Since we can't rely on the contents of the default path, we just
check to see that the built-in path matches what was specified in
configure. To do this, we need to add a bunch of variables to config.sh
so the variable resolves. These variables don't need to be exported,
though.
2012-10-02 05:51:22 -07:00

35 lines
683 B
Makefile

TESTS_PKG_CONFIG = $(top_builddir)/pkg-config$(EXEEXT)
TESTS_ENVIRONMENT = PKG_CONFIG='$(TESTS_PKG_CONFIG)' $(TESTS_SHELL)
TESTS = \
check-cflags \
check-libs \
check-define-variable \
check-libs-private \
check-requires-private \
check-includedir \
check-conflicts \
check-missing \
check-idirafter \
check-whitespace \
check-cmd-options \
check-version \
check-print-options \
check-path
EXTRA_DIST = \
$(TESTS) \
common \
simple.pc \
requires-test.pc \
public-dep.pc \
private-dep.pc \
includedir.pc \
missing-requires-private.pc \
missing-requires.pc \
idirafter.pc \
conflicts-test.pc \
whitespace.pc \
fields-blank.pc \
sub/sub1.pc \
sub/sub2.pc