AFS
view release on metacpan or search on metacpan
src/PTS/t/PTS.t view on Meta::CPAN
# -*-cperl-*-
use strict;
use lib qw(../../inc ../inc);
use blib;
use Test::More;
BEGIN {
use AFS::FS;
if (AFS::FS::isafs('./')) { plan tests => 48; }
else { plan skip_all => 'Working directory is not in AFS file system ...'; }
use_ok('AFS::PTS');
}
use AFS::Cell 'localcell';
my $cell = localcell;
my $pts = AFS::PTS->new(2, $cell);
is(ref($pts), 'AFS::PTS', 'pts->new(2,cell)');
$pts = AFS::PTS->new(1);
is(ref($pts), 'AFS::PTS', 'pts->new(1)');
$pts = AFS::PTS->new;
is(ref($pts), 'AFS::PTS', 'pts->new()');
undef $pts;
is(leak_test($cell), 1210, 'pts leak_test');
$pts = AFS::PTS->new;
can_ok('AFS::PTS', qw(ascii2ptsaccess));
can_ok('AFS::PTS', qw(ptsaccess2ascii));
can_ok('AFS::PTS', qw(convert_numeric_names));
can_ok('AFS::PTS', qw(adduser));
can_ok('AFS::PTS', qw(chid));
can_ok('AFS::PTS', qw(chown));
can_ok('AFS::PTS', qw(creategroup));
can_ok('AFS::PTS', qw(createuser));
can_ok('AFS::PTS', qw(delete));
can_ok('AFS::PTS', qw(dumpentry));
can_ok('AFS::PTS', qw(getcps));
can_ok('AFS::PTS', qw(id));
can_ok('AFS::PTS', qw(ismember));
can_ok('AFS::PTS', qw(listentry));
can_ok('AFS::PTS', qw(listmax));
can_ok('AFS::PTS', qw(members));
can_ok('AFS::PTS', qw(name));
can_ok('AFS::PTS', qw(owned));
( run in 1.006 second using v1.01-cache-2.11-cpan-39bf76dae61 )