summaryrefslogtreecommitdiff
path: root/source4/torture/torture.c
Commit message (Collapse)AuthorAgeFilesLines
* s4: torture: Change torture_register_suite() to add a TALLOC_CTX *.Jeremy Allison2017-05-051-2/+2
| | | | | | | | Change callers to use the passed in TALLOC_CTX * instead of talloc_autofree_context(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* s4: torture: Pass the new talloc context into torture_init().Jeremy Allison2017-05-051-4/+4
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* lib: modules: Change XXX_init interface from XXX_init(void) to ↵Jeremy Allison2017-04-221-3/+3
| | | | | | | | | | | | | | | | | | | | XXX_init(TALLOC_CTX *) Not currently used - no logic changes inside. This will make it possible to pass down a long-lived talloc context from the loading function for modules to use instead of having them internally all use talloc_autofree_context() which is a hidden global. Updated all known module interface numbers, and added a WHATSNEW. Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Apr 22 01:17:00 CEST 2017 on sn-devel-144
* Revert making public of the samba-module library.Jelmer Vernooij2011-12-031-5/+5
| | | | | | | | | | | | | | | This library was tiny - containing just two public functions than were themselves trivial. The amount of overhead this causes isn't really worth the benefits of sharing the code with other projects like OpenChange. In addition, this code isn't really generically useful anyway, as it can only load from the module path set for Samba at configure time. Adding a new library was breaking the API/ABI anyway, so OpenChange had to be updated to cope with the new situation one way or another. I've added a simpler (compatible) routine for loading modules to OpenChange, which is less than 100 lines of code. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 3 08:36:33 CET 2011 on sn-devel-104
* lib/util Rename samba_modules_load -> samba_module_init_fns_for_subsystemAndrew Bartlett2011-10-281-1/+1
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename samba_init_module_fns_run -> samba_module_init_fns_runAndrew Bartlett2011-10-281-2/+2
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename samba_init_module_fn -> samba_module_init_fnAndrew Bartlett2011-10-281-2/+2
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Split samba-modules library into public and private partsAndrew Bartlett2011-10-281-1/+1
| | | | | | | This will allow OpenChange to get at the symbols it needs, without exposing any more of this as a public API than we must. Andrew Bartlett
* lib/util Rename load_samba_modules -> samba_modules_loadAndrew Bartlett2011-10-281-1/+1
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename run_init_functions -> samba_init_module_fns_runAndrew Bartlett2011-10-281-2/+2
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename init_module_fn to samba_init_module_fnAndrew Bartlett2011-10-281-2/+2
| | | | | | This prepares for making the samba_module.h header public again, for OpenChange. I am keen to avoid too much API namespace pollution if we can.
* lib/util: consolidate module loading into common codeAndrew Bartlett2011-10-061-0/+1
| | | | | | This creates a samba-modules private libary that handles the details. Andrew Bartlett
* s4-torture Enable libnetapi and libsmbclient tests using combined buildAndrew Bartlett2011-06-211-14/+0
| | | | | | | | | | | | | | | 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
* s4-modules Remove lp_ctx from init functions that no longer need itAndrew Bartlett2011-06-061-1/+1
| | | | | | | | Now that we don't allow the smb.conf to change the modules dir, many functions that simply load modules or initialise a subsytem that may load modules no longer need an lp_ctx. Andrew Bartlett
* s4-modules: get rid of the remaining static prototypes for modulesAndrew Tridgell2010-11-011-17/+2
| | | | the waf build now generates the prototype declarations for us
* s4 torture: Add tests for dfs referrals handling in SMB/trans2 requestsMatthieu Patou2010-05-181-0/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-smbtorture: add rather simple libsmbclient torture testsuite.Günther Deschner2010-01-141-0/+8
| | | | Guenther
* s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell2009-10-201-2/+0
| | | | This reduces compile time somewhat.
* s4/drs(tort): TORTURE_DRS torture module - initial implementationKamen Mazdrashki2009-10-161-0/+1
| | | | | | Drsuapi tests module registers two suites: - DRS-RPC - tests to be executed against remote machine - DRS-UNIT - unit test for internal testing
* s4:torture Add test for the NTP signd serverAndrew Bartlett2009-08-111-1/+2
| | | | | | | | This is used by at patch to the NTP project to supply authenticated time as required by MS-SNTP. (ie, to keep windows clients in time sync in the domain) Andrew Bartlett
* s4:torture Make Samba4 build on hosts with an older libnetapiAndrew Bartlett2009-06-041-3/+1
| | | | | | | For example, Samba4 would not build (for the last week) on Fedora 10, with samba-common 3.2.11 installed. Andrew Bartlett
* s4-smbtorture: fix the build w/o libnetapi.Günther Deschner2009-05-291-0/+8
| | | | | | | | | | This is surely the wrong fix, but I could not figure out why the samba4 build system adds the init function although the m4 macro had switched off the torture libnetapi subsystem when the headers and libs were not found. Can one of the samba4 build gurus please have a look ? Guenther
* s4-smbtorture: add very basic LIBNETAPI testsuite.Günther Deschner2009-05-291-0/+1
| | | | Guenther
* Rename the top-level LDB test to LOCAL-LDB, so it gets picked up by theJelmer Vernooij2009-04-241-1/+0
| | | | script that determines the tests to run.
* Fix missing symbols issues when building with shared libraries.Jelmer Vernooij2008-12-221-1/+1
|
* s4:torture: add ldb testsAndrew Bartlett2008-12-171-0/+1
| | | | | | | | These tests are for both the new extended DN functionality (and were vital in finding bugs during implementation) and for the normal DN parsing and comparison routines. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-201-0/+1
| | | | remove some unused functions.
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* Fix torture module initializion.Jelmer Vernooij2008-05-101-1/+1
| | | | (This used to be commit d5bf4e9065303b54421a6f35b213a22f062d27d4)
* Revert "Remove copy of torture file."Jelmer Vernooij2008-05-101-0/+71
| | | | | This reverts commit 89bfca2da2b614e979a20c9a293b798ed7ae15ae. (This used to be commit c6c4349c44cb6479fa7aa129931ff9ac88068ba6)
* Remove copy of torture file.Jelmer Vernooij2008-05-101-71/+0
| | | | (This used to be commit 89bfca2da2b614e979a20c9a293b798ed7ae15ae)
* Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3Jelmer Vernooij2008-04-081-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: source/auth/credentials/config.mk source/auth/gensec/config.mk source/build/smb_build/makefile.pm source/heimdal_build/config.mk source/lib/events/config.mk source/lib/nss_wrapper/config.mk source/lib/policy/config.mk source/lib/registry/config.mk source/lib/socket_wrapper/config.mk source/lib/tdb/config.mk source/lib/tls/config.mk source/lib/util/config.mk source/libcli/config.mk source/libcli/ldap/config.mk source/libnet/config.mk source/librpc/config.mk source/param/config.mk source/rpc_server/config.mk source/scripting/ejs/config.mk source/smbd/process_model.mk (This used to be commit 760378e0294dd0cd4523a83448328478632d7e3d)
| * Install public header files again and include required prototypes.Jelmer Vernooij2008-04-021-1/+1
| | | | | | | | (This used to be commit 47ffbbf67435904754469544390b67d34c958343)
* | Fix the build.Jelmer Vernooij2008-03-081-8/+12
| | | | | | | | (This used to be commit f2e49744717eb46bbfafeea9e2eb412a38a142e7)
* | Push SOVERSION and VERSION out of perl code.Jelmer Vernooij2008-03-081-1/+8
|/ | | | (This used to be commit 0ba8ac6a14c62ff9edfe9f0bf43b8a7406b85291)
* r26690: torture: Move torture_context_init() to the ui.c, where all ↵Jelmer Vernooij2008-01-071-17/+1
| | | | | | functions related to it are. (This used to be commit 5f6cc640758448df9c8ad4eba1ffa12ce0c3f732)
* r26580: Include sentinel in build.h, in case the list is empty.Jelmer Vernooij2007-12-241-1/+1
| | | | (This used to be commit f1997dabed584bdc864c4b7235c29603c312ef46)
* r26576: Allow the static module loading code to be used for the Python modules.Jelmer Vernooij2007-12-241-1/+1
| | | | | Simplify the way module initialization functions are handled. (This used to be commit ba8be2dfc0de4434c798663336b81f7f95cde520)
* r26355: Eliminate global_loadparm in more places.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit 5d589a0d94bd76a9b4c9fc748854e8098ea43c4d)
* r25446: Merge some changes I made on the way home from SFO:Jelmer Vernooij2007-10-101-1/+1
| | | | | | | | 2007-09-29 More higher-level passing around of lp_ctx. 2007-09-29 Fix warning. 2007-09-29 Pass loadparm contexts on a higher level. 2007-09-29 Avoid using global loadparm context. (This used to be commit 3468952e771ab31f90b6c374ade01c5550810f42)
* r25026: Move param/param.h out of includes.hJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
* r24852: Fix initializationJelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 1e56698f1bac30a1d6b7558df41e85db3d2571db)
* r24851: Add --load-module argument to smbtorture.Jelmer Vernooij2007-10-101-4/+4
| | | | (This used to be commit 76a713b6786e22b810937289b3e7cc6700a0b49d)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r22969: fix some more places where we could end up with more than one eventAndrew Tridgell2007-10-101-2/+5
| | | | | | context. We now have an event context on the torture_context, and we can also get one from the cli_credentials structure (This used to be commit c0f65eb6562e13530337c23e3447a6aa6eb8fc17)
* r21745: indentAndrew Bartlett2007-10-101-1/+1
| | | | (This used to be commit 7841b299061ec8f4f6a14720dbe4fa7108313848)
* r21707: Finally merge my (long-living) perlselftest branch.Jelmer Vernooij2007-10-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | This changes the main selftest code to be in perl rather than in shell script. The selftest script is now no longer a black box but a regular executable that takes --help. This adds the following features: * "make test TESTS=foo" will run only the tests that match the regex "foo" * ability to deal with expected failures. the suite will not warn about tests that fail and are known to fail, but will warn about other failing tests and tests that are succeeding tests but incorrectly marked as failing. * ability to print a summary with all failures at the end of the run It also opens up the way to the following features, which I hope to implement later: * "environments", for example having a complete domains with DCs and domain members in a testenvironment * only set up smbd if necessary (not when running LOCAL tests, for example) * different mktestsetup scripts per target. except for the mktestsetup script, we can use the same infrastructure for samba 3 or windows. (This used to be commit 38f867880beb40c691e9713f854426031310629c)
* r21222: Merge a couple of pidl fixes:Jelmer Vernooij2007-10-101-1/+0
| | | | | | | | | * Pidl will now warn when trying to use pointers as integers in expressions. * "subcontext()" is now marked as deprecated. The alternatives, transmit_as() / represent_as() should be available soon. * More tests. * Remove some unused code in smbtorture. (This used to be commit 37c0da541e3962164d5af3e3c9560803a733f3b7)
* r21066: Fix the build (uninitialised variable).Jelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit 54b63787606f392e094fe28c2536999c34f76f44)
* r21055: Fix executable bit.Jelmer Vernooij2007-10-101-5/+0
| | | | (This used to be commit 7512270ffae4e72d70f6ca347f09708f1bf915ad)