File: 01-script_detailed.t

package info (click to toggle)
libpkgconfig-perl 0.23026-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,912 kB
  • sloc: ansic: 6,120; perl: 1,968; makefile: 4
file content (26 lines) | stat: -rw-r--r-- 612 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!perl
use strict;
use warnings;
use Test::More;
use File::Basename;
use Data::Dumper;
use File::Spec;
use Config;
use FindBin;
use lib $FindBin::Bin;
use PkgConfigTest;

run_common("glib-2.0"); ok($RV == 0, "package name exists");

run_common("--exists glib-2.0"); ok($RV == 0, "package name (--exists)");

run_common("--libs glib-2.0"); like($S, qr/-lglib-2\.0/, "Got expected libs");
ok($S !~ /-L/, "No -L directive for standard search path");



run_common("--cflags glib-2.0");
expect_flags("-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include",
             "Got expected include flags");

done_testing();