mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-01-10 12:30:16 +01:00
The run_test shell function was running pkg-config with arguments stored in an environment variable. This has problems when trying to pass shell special characters with the proper escaping. Instead, pass the arguments to the test where they can maintain correct formatting through use of the special variable "$@".
13 lines
328 B
Bash
Executable file
13 lines
328 B
Bash
Executable file
#! /bin/sh
|
|
|
|
set -e
|
|
|
|
. ${srcdir}/common
|
|
|
|
# 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="-r:foo -L/usr/white\\ space/lib -lfoo\\ bar -lbar\\ baz"
|
|
run_test --libs whitespace
|