File: pcfiledir.t

package info (click to toggle)
libpkgconfig-perl 0.26026-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,912 kB
  • sloc: ansic: 6,120; perl: 1,922; makefile: 4; sh: 3
file content (20 lines) | stat: -rw-r--r-- 529 bytes parent folder | download
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";