forked from ariadne/pkgconf
testsuite: add tests for normal fragments and whitespace munging, too (closes #94)
parent
b835d74d80
commit
834e21d37e
|
@ -53,7 +53,8 @@ EXTRA_DIST = \
|
||||||
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
|
tests/lib1/depgraph-break.pc \
|
||||||
|
tests/lib1/cflags-whitespace.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 = \
|
||||||
|
|
|
@ -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
|
|
@ -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" \
|
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' PKG_CONFIG_SYSROOT_DIR='/test' ${1} --cflags isystem" \
|
||||||
"-isystem /test/opt/bad/include"
|
"-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
|
# 10) tests for internal getopt implementation with options at the end
|
||||||
if [ "x@STRICT_MODE@" = "xno" ]; then
|
if [ "x@STRICT_MODE@" = "xno" ]; then
|
||||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} foo --libs" \
|
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} foo --libs" \
|
||||||
|
|
Loading…
Reference in New Issue