1# 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 4# 5# We expect the following symbols to be exported: 6# 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 18# 19# This test also has the nice side-effect of showing any unresolved symbols 20# in the library. 21# 22 23load_lib util-defs.exp 24load_lib compile.exp 25 26simple_compile "nss_winbind_syms" "-ldl" 27 28set output [util_start "$srcdir/$subdir/nss_winbind_syms" \ 29 "nsswitch/libnss_winbind.so"] 30 31verbose $output 32 33if { [regexp "FAIL:" $output] } { 34 fail "run nss_winbind_syms" 35 return 36} 37 38pass "nss_winbind_syms" 39 40# Clean up 41 42file delete "$srcdir/$subdir/nss_winbind_syms" 43