blob: fcd98670b83620bc6559cc5aad28054f5b1657e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#
# @(#) Test the getent command returns domain/local users and groups
#
load_lib util-defs.exp
load_lib "$srcdir/config/env.exp"
load_lib "$srcdir/config/default-nt-names.exp"
#
# Test getent passwd
#
set output [util_start "getent" "passwd" ""]
# Test output for domain users
foreach {user} $domain_users {
if {![regexp "$user" $output]} {
fail "getent passwd $user"
} else {
pass "getent passwd $user"
}
}
#
# Test getent group
#
set output [util_start "getent" "group" ""]
foreach {group} $domain_groups {
if {![regexp "$group" $output]} {
fail "getent group $group"
} else {
pass "getent group $group"
}
}
|