pkg-config/check/check-whitespace
Dan Nicholson a3e58e7d4d check: More thoroughly test variable usage
Add some more tests for handling unusual variables such as those that
are quoted or that contain shell characters. This should help make the
--variable output more reliable in the future.

https://bugs.freedesktop.org/show_bug.cgi?id=93284
2016-02-26 08:56:52 -08:00

18 lines
513 B
Bash
Executable file

#! /bin/sh
set -e
. ${srcdir}/common
# variables come out unquoted. In 0.28 and earlier, this would also
# contain the ""s quoting the variable.
RESULT='/usr/white space/include'
run_test --variable=includedir whitespace
# expect cflags from whitespace
RESULT='-Dlala=misc -I/usr/white\ space/include -I$(top_builddir) -Iinclude\ dir -Iother\ include\ dir'
run_test --cflags whitespace
# expect libs from whitespace
RESULT="-L/usr/white\\ space/lib -lfoo\\ bar -lbar\\ baz -r:foo"
run_test --libs whitespace