diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-05-10 22:12:52 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-06-21 11:29:35 +1000 |
commit | a6f31f13ec6c7eb65f2d3fc39038453bb14aa17b (patch) | |
tree | f73c4654e15845cf6385a2c27b673f8b02a204c1 /source4/torture/torture.c | |
parent | 577034b3cd18c518140b91ade6b94487734ed92a (diff) | |
download | samba-a6f31f13ec6c7eb65f2d3fc39038453bb14aa17b.tar.gz samba-a6f31f13ec6c7eb65f2d3fc39038453bb14aa17b.tar.bz2 samba-a6f31f13ec6c7eb65f2d3fc39038453bb14aa17b.zip |
s4-torture Enable libnetapi and libsmbclient tests using combined build
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
Diffstat (limited to 'source4/torture/torture.c')
-rw-r--r-- | source4/torture/torture.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c index 3dae9f5863..9b1719ed7d 100644 --- a/source4/torture/torture.c +++ b/source4/torture/torture.c @@ -43,20 +43,6 @@ bool torture_register_suite(struct torture_suite *suite) return torture_suite_add_suite(torture_root, suite); } -#ifndef ENABLE_LIBNETAPI -NTSTATUS torture_libnetapi_init(void) -{ - return NT_STATUS_OK; -} -#endif - -#ifndef ENABLE_LIBSMBCLIENT -NTSTATUS torture_libsmbclient_init(void) -{ - return NT_STATUS_OK; -} -#endif - _PUBLIC_ int torture_init(void) { #define _MODULE_PROTO(init) extern NTSTATUS init(void); |