tests: simplify the pkgconfig test script

This commit is contained in:
Pierre Pronchery 2025-03-14 11:36:50 +01:00
parent c489093b0e
commit 9ee3344c46

View File

@ -55,18 +55,14 @@ _pkgconfig()
)} )}
_pkgconfig_do() _pkgconfig_do()
{( {
ret=0
caption="$1" caption="$1"
options="$2" options="$2"
packages="$3" packages="$3"
$ECHO -n "$caption" $ECHO -n "$caption"
output=$($PKGCONFIG $options "$packages") PKG_CONFIG_PATH="$PKG_CONFIG_PATH" $PKGCONFIG $options "$packages"
ret=$? }
echo "$output"
return $ret
)}
#usage #usage