1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
use strict;
use warnings;
use Test::More tests => 4;
use FindBin ();
$ENV{PKG_CONFIG_PATH} = "$FindBin::Bin/data/usr/lib/pkgconfig";
$ENV{PKG_CONFIG_PATH} =~ s{\\}{/}g;
use_ok 'PkgConfig';
note "PKG_CONFIG_PATH = $ENV{PKG_CONFIG_PATH}";
note "PkgConfig = $INC{'PkgConfig.pm'}";
my $pkg = PkgConfig->find('mono-lineeditor');
is $pkg->errmsg, undef, 'no error';
isa_ok $pkg, 'PkgConfig';
my ($prefix) = $pkg->get_var('prefix'); # list in case in place with space!
is $prefix, "$ENV{PKG_CONFIG_PATH}/../..", "prefix=$prefix";
|