|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T g
Length: 810 (0x32a) Types: TextFile Names: »groups.t«
└─⟦4f9d7c866⟧ Bits:30007245 EUUGD6: Sikkerheds distributionen └─⟦b5330643c⟧ »./cops/perl-4.019/perl.tar.Z« └─⟦2b9a58213⟧ └─⟦this⟧ »perl-4.019/t/op/groups.t«
#!./perl if (! -x '/usr/ucb/groups') { print "1..0\n"; exit 0; } print "1..2\n"; $pwgid = $( + 0; ($pwgnam) = getgrgid($pwgid); @basegroup{$pwgid,$pwgnam} = (1,1); $seen{$pwgid}++; for (split(' ', $()) { next if $seen{$_}++; ($group) = getgrgid($_); if (defined $group) { push(@gr, $group); } else { push(@gr, $_); } } $gr1 = join(' ', sort @gr); $gr2 = join(' ', grep(!$basegroup{$_}, sort split(' ',`/usr/ucb/groups`))); if ($gr1 eq $gr2) { print "ok 1\n"; } else { print "#gr1 is <$gr1>\n"; print "#gr2 is <$gr2>\n"; print "not ok 1\n"; } # multiple 0's indicate GROUPSTYPE is currently long but should be short if ($pwgid == 0 || $seen{0} < 2) { print "ok 2\n"; } else { print "not ok 2 (groupstype should be type short, not long)\n"; }