2 # @(#) Test nss functions are exported from the pam_winbind.so library
3 # @(#) Test there are no external dependencies in the pam_winbind.so library
5 # We expect the following symbols to be exported:
11 # This test also has the nice side-effect of showing any unresolved symbols
15 load_lib util-defs.exp
17 # Compile pam_winbind_syms.c
19 set output [target_compile "$srcdir/$subdir/pam_winbind_syms.c" \
20 "$srcdir/$subdir/pam_winbind_syms" executable \
21 {"libs=-ldl -lpam" "additional_flags=-g"}]
24 perror "compile pam_winbind_syms.c"
31 set output [util_start "$srcdir/$subdir/pam_winbind_syms" \
34 if {[regexp "FAIL:" $output]} {
35 fail "run pam_winbind_syms"
40 pass "pam_winbind_syms"
44 file delete "$srcdir/$subdir/pam_winbind_syms"