smb2_tcon: only announce SMB2_SHARE_CAP_CLUSTER if rpcd_witness can run
[Samba.git] / testsuite / nsswitch / nss_winbind_syms.exp
blobab84cc5c757348c25b0fe07375f1603f85421058
2 # @(#) Test nss functions are exported from the libnss_winbind.so library
3 # @(#) Test there are no external dependencies in the libnss_winbind.so library
5 # We expect the following symbols to be exported:
7 # _nss_winbind_getgrent_r
8 # _nss_winbind_endgrent
9 # _nss_winbind_endpwent
10 # _nss_winbind_getgrgid_r
11 # _nss_winbind_getgrnam_r
12 # _nss_winbind_getpwent_r
13 # _nss_winbind_getpwnam_r
14 # _nss_winbind_getpwuid_r
15 # _nss_winbind_setgrent
16 # _nss_winbind_setpwent
17 # _nss_winbind_initgroups
19 # This test also has the nice side-effect of showing any unresolved symbols
20 # in the library.
23 load_lib util-defs.exp
24 load_lib compile.exp
26 simple_compile "nss_winbind_syms" "-ldl"
28 set output [util_start "$srcdir/$subdir/nss_winbind_syms" \
29 "nsswitch/libnss_winbind.so"]
31 verbose $output
33 if { [regexp "FAIL:" $output] } {
34 fail "run nss_winbind_syms"
35 return
38 pass "nss_winbind_syms"
40 # Clean up
42 file delete "$srcdir/$subdir/nss_winbind_syms"