mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
a6f31f13ec
Because we now always build the source3 code, we can link directly against a private libnetapi and libsmbclient to test the behaviour of these important APIs. We use a private libnetapi_net_init(), and by using this interface rather than the public one, we can ensure that the correct smb.conf is loaded (as smbtorture4 is a Samba4 semantics binary). The #include of the source3 includes.h is required to do the manual lp_load(). Andrew Bartlett
12 lines
286 B
Python
12 lines
286 B
Python
#!/usr/bin/env python
|
|
|
|
bld.SAMBA_MODULE('TORTURE_LIBNETAPI',
|
|
source='libnetapi.c libnetapi_user.c libnetapi_group.c libnetapi_server.c',
|
|
autoproto='proto.h',
|
|
subsystem='smbtorture',
|
|
init_function='torture_libnetapi_init',
|
|
deps='POPT_CREDENTIALS netapi',
|
|
internal_module=True,
|
|
)
|
|
|