Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / tests / boslistusers.pl
1 #!/usr/bin/env perl
2 use OpenAFS::CMU_copyright;
3 use OpenAFS::util qw(:DEFAULT %AFS_Help);
4 use OpenAFS::afsconf;
5 use OpenAFS::fs;
6 use OpenAFS::pts;
7 use OpenAFS::vos;
8 use OpenAFS::bos;
9
10 my ($host, @hosts, $this, $cell, $cnt);
11 $host = `hostname`;
12 chomp $host;
13 &AFS_Init();
14
15 @hosts = &AFS_bos_listusers(localhost,);
16 while ($this = shift(@hosts)) {
17 if ($this ne "admin") {
18 if (($this ne "testuser1")) {
19 exit (1);
20 }
21 }
22 }
23 exit(0);
24
25
26