14 $testuid $testgid @testxgids
19 -u $testuser -g $othergroup
20 $testuid $othergid @testxgids $othergid
22 -u $testuser -z -g $othergroup
23 $testuid $othergid $othergid
25 -u $testuser -G $numgid -g $othergroup
26 $testuid $numgid @testxgids $numgid $othergid
28 -u $testuser -z -G $numgid -g $othergroup
29 $testuid $numgid $numgid $othergid
31 -u $testuser -g $testgroup -G $testgid
32 $testuid $testgid @testxgids
34 -u $testuser -z -g $testgroup -G $testgid
35 $testuid $testgid @testxgids
37 -u $testuser -g $othergroup -g $testgroup -G $testgid
38 $testuid $othergid @testxgids $othergid
40 -u $testuser -z -g $othergroup -g $testgroup -G $testgid
41 $testuid $othergid $othergid
43 -u $testuser -G $numgid -g $othergroup -g $testgroup -G $testgid
44 $testuid $numgid @testxgids $numgid $othergid
46 -u $testuser -z -G $numgid -g $othergroup -g $testgroup -G $testgid
47 $testuid $numgid $numgid $othergid
56 $orguid $othergid $othergid @orgxgids
59 $orguid $othergid $othergid
61 -G $numgid -g $othergroup
62 $orguid $numgid $numgid $othergid @orgxgids
64 -z -G $numgid -g $othergroup
65 $orguid $numgid $numgid $othergid
67 -g $orggroup -G $orggid
68 $orguid $orggid @orgxgids
70 -z -g $orggroup -G $orggid
71 $orguid $orggid $orggid
73 -g $othergroup -g $orggroup -G $orggid
74 $orguid $othergid $othergid @orgxgids
76 -z -g $othergroup -g $orggroup -G $orggid
77 $orguid $othergid $othergid $orggid
79 -G $numgid -g $othergroup -g $orggroup -G $orggid
80 $orguid $numgid $numgid $othergid @orgxgids
82 -z -G $numgid -g $othergroup -g $orggroup -G $orggid
83 $orguid $numgid $numgid $othergid
92 $id =~ s/^uid=(\d+)// or return $orgid;
94 $id =~ s/^\([^\)]+\)//; $id =~ s/^\s+// or return $orgid;
95 $id =~ s/^gid=(\d+)// or return $orgid;
97 $id =~ s/^\([^\)]+\)//; $id =~ s/^\s+// or return $orgid;
98 $id =~ s/^groups=// or return $orgid;
99 for $part (split(/,/,$id)) {
100 $part =~ s/^(\d+)// or return $orgid;
102 $part =~ s/^\([^\)]+\)//; $part eq '' or return $orgid;
108 $org =~ m/^uid=\d+\(([^\)]+)\) gid=\d+\(([^\)]+)\) / or die "$org ?";
109 $orguser= $1; $orggroup= $2;
111 $org =~ m/^\d+ \d+ / or die $org;
112 ($orguid,$orggid,$orgxgids)= split(/ /,$org);
114 @tests= split(/\n/,$tests);
115 for ($i=0; $i<$#tests; $i+=3) {
116 $tests[$i+2] =~ m/\S/ and die "$tests[$i+2] $i";
117 $out= `./really-test $tests[$i] id`;
118 $newout= parseid($out);
119 next if $newout eq $tests[$i+1];
120 die "$newout ~= $tests[$i+1] ($tests[$i]) $i";