tests: simplify the pkgconfig test script
This commit is contained in:
parent
c489093b0e
commit
9ee3344c46
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user