mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-02-04 07:10:25 +01:00
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
18 lines
513 B
Bash
Executable file
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
|