| Line | |
|---|
| 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 |
|
|---|
| 23 | load_lib util-defs.exp
|
|---|
| 24 | load_lib compile.exp
|
|---|
| 25 |
|
|---|
| 26 | simple_compile "nss_winbind_syms" "-ldl"
|
|---|
| 27 |
|
|---|
| 28 | set output [util_start "$srcdir/$subdir/nss_winbind_syms" \
|
|---|
| 29 | "nsswitch/libnss_winbind.so"]
|
|---|
| 30 |
|
|---|
| 31 | verbose $output
|
|---|
| 32 |
|
|---|
| 33 | if { [regexp "FAIL:" $output] } {
|
|---|
| 34 | fail "run nss_winbind_syms"
|
|---|
| 35 | return
|
|---|
| 36 | }
|
|---|
| 37 |
|
|---|
| 38 | pass "nss_winbind_syms"
|
|---|
| 39 |
|
|---|
| 40 | # Clean up
|
|---|
| 41 |
|
|---|
| 42 | file delete "$srcdir/$subdir/nss_winbind_syms"
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.