pkg-config/check/check-variables
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
488 B
Bash
Executable file

#! /bin/sh
set -e
. ${srcdir}/common
# Check quoted variables are stripped. In 0.28 and earlier, this would
# contain the "" quotes.
RESULT='/local/include'
run_test --variable=includedir variables
# Non-quoted variables are output as is. In 0.29, the \ would be stripped.
RESULT='-I"/local/include"/foo -DFOO=\"/bar\"'
run_test --variable=cppflags variables
# Check the entire cflags output
RESULT='-DFOO=\"/bar\" -I/local/include -I/local/include/foo'
run_test --cflags variables