mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-01-09 05:00:12 +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 "$@".
15 lines
202 B
Bash
Executable file
15 lines
202 B
Bash
Executable file
#! /bin/sh
|
|
|
|
set -e
|
|
|
|
. ${srcdir}/common
|
|
|
|
if [ "$list_indirect_deps" = "yes" ]; then
|
|
RESULT="-lsimple -lm"
|
|
else
|
|
RESULT="-lsimple"
|
|
fi
|
|
run_test --libs simple
|
|
|
|
RESULT=""
|
|
run_test --libs fields-blank
|