diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2012-10-01 22:19:07 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2012-10-03 05:33:31 -0700 |
commit | d4c0c14ba8ece62dbac0db6e800df66e6c92044c (patch) | |
tree | 0bff2505ad47a787a4d736a171747cb46ba6e329 | |
parent | 4f7d2a1b285f8104885aa8fe60622c64b6234e79 (diff) | |
download | pkg-config-d4c0c14ba8ece62dbac0db6e800df66e6c92044c.tar.gz |
check: Ensure debugging output works correctly
This might be a little fragile, but it makes sure to exercise the
debug_spew function.
-rw-r--r-- | check/Makefile.am | 3 | ||||
-rwxr-xr-x | check/check-debug | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/check/Makefile.am b/check/Makefile.am index d3510cc..b077726 100644 --- a/check/Makefile.am +++ b/check/Makefile.am @@ -17,7 +17,8 @@ TESTS = \ check-print-options \ check-path \ check-sysroot \ - check-uninstalled + check-uninstalled \ + check-debug EXTRA_DIST = \ $(TESTS) \ diff --git a/check/check-debug b/check/check-debug new file mode 100755 index 0000000..c1d9044 --- /dev/null +++ b/check/check-debug @@ -0,0 +1,22 @@ +#! /bin/sh + +set -e + +. ${srcdir}/common + +# Check that debug output works with minimal output. This is still much +# more than desirable. + +RESULT="PKG_CONFIG_DEBUG_SPEW variable enabling debug spew +Adding directory '.' from PKG_CONFIG_PATH +Global variable definition 'pc_sysrootdir' = '/' +Global variable definition 'pc_top_builddir' = '\$(top_builddir)' +Error printing enabled by default due to use of --version, --libs, --cflags, --libs-only-l, --libs-only-L, --libs-only-other, --cflags-only-I, --cflags-only-other or --list. Value of --silence-errors: 0 +Error printing enabled +$PACKAGE_VERSION" +PKG_CONFIG_DEBUG_SPEW=1 run_test --version + +RESULT="Error printing enabled by default due to use of --version, --libs, --cflags, --libs-only-l, --libs-only-L, --libs-only-other, --cflags-only-I, --cflags-only-other or --list. Value of --silence-errors: 0 +Error printing enabled +0.27.1" +run_test --debug --version |