App-LXC-Container
view release on metacpan or search on metacpan
t/05-mounts.t view on Meta::CPAN
is($obj->mount_point('/usr/lib'), NO_MERGE,
'still got correct state for entry of /usr/lib');
my @sizes =
(8, 16, 22, 24, 32, 36, 42, 64, 72, 96, 128, 192, 256, 480, 512, 1024);
my @sub_dirs = ();
foreach (@sizes)
{
$_ = '/usr/share/icons/hicolor/' . $_ . 'x' . $_;
push @sub_dirs, $_;
$_ = $_ . '/apps/some-icon.png';
is($obj->mount_point($_, IMPLICIT), IMPLICIT,
'correct state could be set for ' . $_);
}
is($obj->mount_point('/usr/share/icons/hicolor/8x8/apps/some-icon.png'),
IMPLICIT,
'got correct state for entry of /usr/share/icons/hicolor/.../some-icon.png');
is($obj->mount_point('/usr/share/icons/hicolor/8x8/apps'), UNDEFINED,
'got correct state for entry of /usr/share/icons/hicolor/8x8/apps');
is($obj->mount_point('/usr/share/icons/hicolor/8x8'), UNDEFINED,
'got correct state for entry of /usr/share/icons/hicolor/8x8');
is($obj->mount_point('/usr/share/icons/hicolor'), UNDEFINED,
'got correct state for entry of /usr/share/icons/hicolor');
is($obj->mount_point('/usr/share/icons'), UNDEFINED,
'got correct state for entry of /usr/share/icons');
is($obj->mount_point('/usr/share'), UNDEFINED,
'got correct state for entry of /usr/share');
@sub_dirs = sort @sub_dirs;
is_deeply([$obj->sub_directories('/usr/share/icons/hicolor')], \@sub_dirs,
'got correct sub-directories for /usr/share/icons/hicolor');
is_deeply([$obj->sub_directories('/usr/share/icons/hicolor/16x16/apps')],
['/usr/share/icons/hicolor/16x16/apps/some-icon.png'],
'child found for /usr/share/icons/hicolor/16x16/apps');
is($obj->mount_point('/usr/share/icons/hicolor/16x16/apps', IMPLICIT), IMPLICIT,
'correct state could be set for /usr/share/icons/hicolor/16x16/apps');
is_deeply([$obj->sub_directories('/usr/share/icons/hicolor/16x16/apps')], [],
'I* state of parent correctly removed child for .../16x16/apps');
is($obj->mount_point('/usr/share/icons/hicolor/16x16/apps'), IMPLICIT,
'got correct state for entry of /usr/share/icons/hicolor/16x16/apps');
is($obj->mount_point('/usr/share/icons/hicolor/16x16'), UNDEFINED,
'got correct state for entry of /usr/share/icons/hicolor/16x16');
is($obj->mount_point('/usr/share/icons/hicolor'), UNDEFINED,
t/05-mounts.t view on Meta::CPAN
is($obj->mount_point('/usr/share/not-set'), UNDEFINED,
'got correct state for /usr/share/not-set');
#########################################################################
# testing a standard merge:
$obj->merge_mount_points(100, 30, 4, 3);
is_deeply([$obj->sub_directories('/usr/share/icons/hicolor')], [],
'merge worked for /usr/share/icons/hicolor');
is($obj->mount_point('/usr/share/icons/hicolor/8x8/apps/some-icon.png'),
IMPLICIT,
'got correct state for entry of /usr/share/icons/hicolor/.../some-icon.png');
is($obj->mount_point('/usr/share/icons/hicolor/8x8/apps'), IMPLICIT,
'got correct new state for entry of /usr/share/icons/hicolor/8x8/apps');
is($obj->mount_point('/usr/share/icons/hicolor/8x8'), IMPLICIT,
'got correct new state for entry of /usr/share/icons/hicolor/8x8');
is($obj->mount_point('/usr/share/icons/hicolor'), IMPLICIT,
'got correct new state for entry of /usr/share/icons/hicolor');
is($obj->mount_point('/usr/share/icons'), UNDEFINED,
'got correct state for entry of /usr/share/icons');
is($obj->mount_point('/usr/share'), NO_MERGE,
'got correct state for entry of /usr/share');
t/mockup-files/dpkg.status view on Meta::CPAN
Suggests: glibc-doc, debconf | debconf-2.0, libc-l10n, locales, libnss-nis, libnss-nisplus
Package: libcairo-gobject2
Status: install ok installed
Architecture: amd64
Depends: libcairo2 (= 1.16.0-7), libglib2.0-0 (>= 2.14.0)
Package: libcairo2
Status: install ok installed
Architecture: amd64
Depends: libc6 (>= 2.35), libfontconfig1 (>= 2.12.6), libfreetype6 (>= 2.9.1), libpixman-1-0 (>= 0.30.0), libpng16-16 (>= 1.6.2-1), libx11-6, libxcb-render0, libxcb-shm0, libxcb1 (>= 1.6), libxext6, libxrender1, zlib1g (>= 1:1.1.4)
Package: libcap-ng0
Status: install ok installed
Architecture: amd64
Depends: libc6 (>= 2.33)
Package: libcap2
Status: install ok installed
Architecture: amd64
Depends: libc6 (>= 2.34)
t/mockup-files/dpkg.status view on Meta::CPAN
Depends: libc6 (>= 2.33), libexpat1 (>= 2.0.1), libfreetype6 (>= 2.9.1), fontconfig-config (>= 2.14.1-4)
Package: libfontenc1
Status: install ok installed
Architecture: amd64
Depends: libc6 (>= 2.14), zlib1g (>= 1:1.1.4)
Package: libfreetype6
Status: install ok installed
Architecture: amd64
Depends: libbrotli1 (>= 0.6.0), libc6 (>= 2.33), libpng16-16 (>= 1.6.2-1), zlib1g (>= 1:1.1.4)
Package: libfribidi0
Status: install ok installed
Architecture: amd64
Depends: libc6 (>= 2.3.4)
Package: libgbm1
Status: install ok installed
Architecture: amd64
Depends: libc6 (>= 2.34), libdrm2 (>= 2.4.75), libexpat1 (>= 2.0.1), libwayland-server0 (>= 1.15.0)
t/mockup-files/dpkg.status view on Meta::CPAN
Package: libgcrypt20
Status: install ok installed
Architecture: amd64
Depends: libc6 (>= 2.34), libgpg-error0 (>= 1.27)
Suggests: rng-tools
Package: libgdk-pixbuf-2.0-0
Status: install ok installed
Architecture: amd64
Depends: libgdk-pixbuf2.0-common (>= 2.42.10+dfsg-1), shared-mime-info, libc6 (>= 2.34), libglib2.0-0 (>= 2.59.0), libjpeg62-turbo (>= 1.3.1), libpng16-16 (>= 1.6.2-1), libtiff6 (>= 4.0.3)
Recommends: libgdk-pixbuf2.0-bin
Package: libgdk-pixbuf2.0-common
Status: install ok installed
Architecture: all
Package: libgl1
Status: install ok installed
Architecture: amd64
Depends: libc6 (>= 2.34), libglvnd0 (= 1.6.0-1), libglx0 (= 1.6.0-1)
t/mockup-files/dpkg.status view on Meta::CPAN
Architecture: amd64
Depends: libc6 (>= 2.14)
Package: libgs-common
Status: install ok installed
Architecture: all
Package: libgs10
Status: install ok installed
Architecture: amd64
Depends: libgs10-common (= 10.0.0~dfsg-9), poppler-data, libc6 (>= 2.34), libcups2 (>= 2.3~b6), libfontconfig1 (>= 2.12.6), libfreetype6 (>= 2.10.1), libidn12 (>= 1.13), libijs-0.35 (>= 0.35), libjbig2dec0 (>= 0.16+20190905), libjpeg62-turbo (>= 1.3....
Package: libgs10-common
Status: install ok installed
Architecture: all
Depends: fonts-urw-base35 (>= 20200910), libgs-common
Recommends: fonts-droid-fallback
Package: libgspell-1-2
Status: install ok installed
Architecture: amd64
t/mockup-files/dpkg.status view on Meta::CPAN
Package: libgtk-3-common
Status: install ok installed
Architecture: all
Depends: dconf-gsettings-backend | gsettings-backend
Recommends: libgtk-3-0
Package: libgxps2
Status: install ok installed
Architecture: amd64
Depends: libarchive13 (>= 3.0.4), libc6 (>= 2.35), libcairo2 (>= 1.10.0), libfreetype6 (>= 2.2.1), libglib2.0-0 (>= 2.37.3), libjpeg62-turbo (>= 1.3.1), liblcms2-2 (>= 2.2+git20110628), libpng16-16 (>= 1.6.2-1), libtiff6 (>= 4.0.3)
Package: libhandy-1-0
Status: install ok installed
Architecture: amd64
Depends: libatk1.0-0 (>= 1.12.4), libc6 (>= 2.29), libcairo2 (>= 1.14.0), libfribidi0 (>= 0.19.2), libgdk-pixbuf-2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.59.0), libgtk-3-0 (>= 3.23.1), libpango-1.0-0 (>= 1.14.0)
Package: libharfbuzz0b
Status: install ok installed
Architecture: amd64
Depends: libc6 (>= 2.34), libfreetype6 (>= 2.11.0), libglib2.0-0 (>= 2.31.8), libgraphite2-3 (>= 1.2.2)
t/mockup-files/dpkg.status view on Meta::CPAN
Package: libpcre2-8-0
Status: install ok installed
Architecture: amd64
Depends: libc6 (>= 2.34)
Package: libpixman-1-0
Status: install ok installed
Architecture: amd64
Depends: libc6 (>= 2.29)
Package: libpng16-16
Status: install ok installed
Architecture: amd64
Depends: libc6 (>= 2.29), zlib1g (>= 1:1.2.11.dfsg)
Package: libpoppler-glib8
Status: install ok installed
Architecture: amd64
Depends: libpoppler126 (= 22.12.0-2+b1), libc6 (>= 2.34), libcairo2 (>= 1.12.0), libfreetype6 (>= 2.2.1), libglib2.0-0 (>= 2.67.1), libstdc++6 (>= 11)
Package: libpoppler126
Status: install ok installed
Architecture: amd64
Depends: libc6 (>= 2.35), libfontconfig1 (>= 2.12.6), libfreetype6 (>= 2.2.1), libjpeg62-turbo (>= 1.3.1), liblcms2-2 (>= 2.7), libnspr4 (>= 2:4.9-2~), libnss3 (>= 2:3.16), libopenjp2-7 (>= 2.0.0), libpng16-16 (>= 1.6.2-1), libstdc++6 (>= 11), libtif...
Recommends: poppler-data
Package: libproc2-0
Status: install ok installed
Architecture: amd64
Depends: libc6 (>= 2.34), libsystemd0 (>= 209)
Package: libpulse0
Status: install ok installed
Architecture: amd64
( run in 1.414 second using v1.01-cache-2.11-cpan-df04353d9ac )