testsuite: add tests for normal fragments and whitespace munging, too (closes #94)

feature/tap-sh
William Pitcock 2016-08-24 19:00:10 -05:00
parent b835d74d80
commit 834e21d37e
3 changed files with 9 additions and 1 deletions

View File

@ -53,7 +53,8 @@ EXTRA_DIST = \
tests/lib1/conflicts.pc \
tests/lib1/omg-uninstalled.pc \
tests/lib1/isystem.pc \
tests/lib1/depgraph-break.pc
tests/lib1/depgraph-break.pc \
tests/lib1/cflags-whitespace.pc
pkginclude_HEADERS = libpkgconf/bsdstubs.h libpkgconf/iter.h libpkgconf/libpkgconf.h libpkgconf/stdinc.h
libpkgconf_la_SOURCES = \

View File

@ -0,0 +1,4 @@
Name: CFlags Whitespace Bug
Description: Demonstrates problems with -I with spaces and sysroot munging
Version: 1
Cflags: -I /opt/bad/include

View File

@ -292,6 +292,9 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --print-provides foo" \
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' PKG_CONFIG_SYSROOT_DIR='/test' ${1} --cflags isystem" \
"-isystem /test/opt/bad/include"
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' PKG_CONFIG_SYSROOT_DIR='/test' ${1} --cflags cflags-whitespace" \
"-I /test/opt/bad/include"
# 10) tests for internal getopt implementation with options at the end
if [ "x@STRICT_MODE@" = "xno" ]; then
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} foo --libs" \