summaryrefslogtreecommitdiff
path: root/source4/torture/smbtorture.c
Commit message (Collapse)AuthorAgeFilesLines
* s4: popt: Change from talloc_autofree_context() to NULL context.Jeremy Allison2017-05-111-0/+3
| | | | | | | Call popt_free_cmdline_credentials() on successful exit from torture. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4: torture: Pass the new talloc context into torture_init().Jeremy Allison2017-05-051-1/+1
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* s4: torture: Add a TALLOC_CTX * to torture_parse_target().Jeremy Allison2017-05-051-4/+7
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* s4: torture: Create a top level talloc contxt.Jeremy Allison2017-05-051-6/+31
| | | | | | | Use it to replace some talloc_autofree_contexts. 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-1/+1
| | | | | | | | | | | | | | | | | | | | 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
* s4:torture: avoid const warnings in smbtorture.cStefan Metzmacher2014-04-021-4/+8
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:torture: avoid argv related const warningsStefan Metzmacher2014-04-021-2/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:torture: use dcerpc_binding_get_string_option("host") in smbtorture.cStefan Metzmacher2014-02-131-2/+5
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s4:torture: handle binding_struct->host == NULL in torture_parse_target()Stefan Metzmacher2014-02-111-1/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* torture: Add a new w2k12 targetVolker Lendecke2013-09-051-0/+2
| | | | | | | | W2k12 seems to do the 2-step break to none, try running raw.oplock.batch12 against it. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Add a herald with version string to smbtortureRichard Sharpe2013-02-131-0/+2
| | | | | | | | Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Richard Sharpe <sharpe@samba.org> Autobuild-Date(master): Wed Feb 13 08:03:21 CET 2013 on sn-devel-104
* libtorture: factor out simple ui backendGregor Beck2012-09-211-64/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* torture: added samba4-ntvfs targetAndrew Tridgell2012-02-281-0/+3
| | | | | | | | | this will be used for the samba4 server with the ntvfs backend Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Feb 28 13:34:44 CET 2012 on sn-devel-104
* Revert making public of the samba-module library.Jelmer Vernooij2011-12-031-2/+2
| | | | | | | | | | | | | | | 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_init_module_fn -> samba_module_init_fnAndrew Bartlett2011-10-281-1/+1
| | | | | | | 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 init_module_fn to samba_init_module_fnAndrew Bartlett2011-10-281-1/+1
| | | | | | 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 loadingAndrew Bartlett2011-10-061-1/+1
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Oct 6 08:52:30 CEST 2011 on sn-devel-104
* 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-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:smbtorture do not leave output directory aroundChristian Ambach2011-02-211-13/+10
| | | | | | | | | | | | | | | | | | | calling smbtorture with no or invalid arguments left the temporary output directory around this patches removes the dead-end exit from usage and makes the logic go on until the final cleanup state is reached output directory will still be left around when test times out or testcases itself force an exit also make sure that the directory itself is deleted, not just the objects in it Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Feb 21 11:35:30 CET 2011 on sn-devel-104
* smbtorture: Default to listing all tests if no prefix was specified.Jelmer Vernooij2010-12-111-2/+6
|
* smbtorture: Implement --list argument.Jelmer Vernooij2010-12-111-10/+45
|
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-111-7/+7
| | | | | | | | This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
* smbtorture: Rename --list to --list-suites, add stub --list.Jelmer Vernooij2010-12-101-10/+11
|
* s4:smbtorture Create a new random output directory each time, and delete itAndrew Bartlett2010-10-111-2/+14
| | | | | | | | This ensures we don't delete an exiting directory. Andrew Bartlett Signed-off-by: Matthieu Patou <mat@matws.net>
* samba: share readline wrappers among all buildsystems.Günther Deschner2010-10-011-1/+1
| | | | Guenther
* smbtorture: Report times.Jelmer Vernooij2010-09-221-0/+2
|
* torture: Remove active_testname variable.Jelmer Vernooij2010-09-211-3/+0
|
* torture: Fix running individual tests.Jelmer Vernooij2010-09-211-2/+2
|
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-53/+53
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* smbtorture: Fix loading of --load-list.Jelmer Vernooij2010-06-251-10/+12
|
* smbtorture: Fixx off-by-one command line parsing.James Peach2010-06-211-17/+17
| | | | | If we are not in shell mode we require both the target and test name arguments. Make sure we process these from the correct index.
* smbtorture: Add "target" command to interactive shell.James Peach2010-06-211-15/+22
| | | | | | Add a "target" command to set the target server to test. Refactor the command line argument processing a little so that you can run --shell without any additional arguments.
* smbtorture: Move interactive shell into a separate file.James Peach2010-06-211-59/+18
|
* smbtorture: Print global options for interactive "list" command.James Peach2010-06-211-1/+3
|
* smbtorture: Add history support to shell mode.James Peach2010-06-211-1/+8
|
* smbtorture: Add list command to smbtorture shell.James Peach2010-06-211-36/+94
|
* s4 torture: RAW-SEARCH: break out some of the old search levelsAravind Srinivasan2010-06-151-0/+2
| | | | | | | | | | | * Added two new parameters: raw_search_search and raw_ea_size which can be enabled/disabled based on whether the server supports RAW_SEARCH_SEARCH and/or RAW_SEARCH_EA_SIZE levels * Skip unsupported levels from the server and give a warning rather than failing. Signed-off-by: Tim Prouty <tprouty@samba.org>
* s4-smbtorture: allow to call single tests from a testcase in a testsuiteGünther Deschner2010-06-031-0/+10
| | | | | | directly on the commandline. Guenther
* torture: Simplify torture suite running, call restricted test suite runner.Jelmer Vernooij2010-04-101-43/+29
|
* smbtorture: Remove unused shell feature.Jelmer Vernooij2010-04-101-51/+1
|
* smbtorture: Support --load-list argument.Jelmer Vernooij2010-04-101-16/+30
|
* s4/torture: Suppress Valgrind warningsKamen Mazdrashki2010-04-091-1/+2
| | | | | This patch suppresses two Valgrind warnings of type "xxx bytes in yy blocks are indirectly lost in loss record"
* smbtorture: Report number of available tests in a testsuite using subunit.Jelmer Vernooij2010-03-311-1/+7
|
* s4/torture: Parameterize output in LOCK tests based off server supportSteven Danneman2010-01-101-0/+3
| | | | | | | | | | | Two new torture parameters: * smbexit_pdu_support: if the Server supports the Exit command * range_not_locked_on_file_close: whether the server returns the NT_STATUS_RANGE_NOT_LOCKED error when a file is closed which has a pending lock request. Windows returns this error, though per the spec, this error should only be returned to an unlock request.
* s4 torture: Add a new torture:hide_on_access_denied parameterTim Prouty2009-12-071-0/+3
| | | | | | | | | | It appears some newer versions of windows return NT_STATUS_OBJECT_NAME_NOT_FOUND on a createfile when access is denied rather than NT_STATUS_ACCESS_DENIED. I'm not sure how this translates to directory enumeration yet, but for now make this a parameter that can be checked in the various torture tests. This also gets RAW-ACLS and SMB2-CREATE passing against win7.
* s4 torture: Make RAW-SEARCH pass against win7Zachary Loafman2009-12-031-0/+9
| | | | Signed-off-by: Tim Prouty <tprouty@samba.org>
* s4 torture: Parameterize WRITE_AND_CLOSE supportZachary Loafman2009-12-031-0/+1
| | | | Signed-off-by: Tim Prouty <tprouty@samba.org>
* s4 torture: Allow READ to be parameterized, add more readx testsZachary Loafman2009-12-031-0/+1
| | | | Signed-off-by: Tim Prouty <tprouty@samba.org>