summaryrefslogtreecommitdiff
path: root/source4/torture/smbtorture.c
AgeCommit message (Collapse)AuthorFilesLines
2011-10-28lib/util Rename samba_init_module_fn -> samba_module_init_fnAndrew Bartlett1-1/+1
This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
2011-10-28lib/util Split samba-modules library into public and private partsAndrew Bartlett1-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
2011-10-28lib/util Rename init_module_fn to samba_init_module_fnAndrew Bartlett1-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.
2011-10-06lib/util: consolidate module loadingAndrew Bartlett1-1/+1
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Oct 6 08:52:30 CEST 2011 on sn-devel-104
2011-10-06lib/util: consolidate module loading into common codeAndrew Bartlett1-0/+1
This creates a samba-modules private libary that handles the details. Andrew Bartlett
2011-06-06s4-modules Remove lp_ctx from init functions that no longer need itAndrew Bartlett1-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
2011-02-21s4:smbtorture do not leave output directory aroundChristian Ambach1-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
2010-12-11smbtorture: Default to listing all tests if no prefix was specified.Jelmer Vernooij1-2/+6
2010-12-11smbtorture: Implement --list argument.Jelmer Vernooij1-10/+45
2010-12-11s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij1-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
2010-12-10smbtorture: Rename --list to --list-suites, add stub --list.Jelmer Vernooij1-10/+11
2010-10-11s4:smbtorture Create a new random output directory each time, and delete itAndrew Bartlett1-2/+14
This ensures we don't delete an exiting directory. Andrew Bartlett Signed-off-by: Matthieu Patou <mat@matws.net>
2010-10-01samba: share readline wrappers among all buildsystems.Günther Deschner1-1/+1
Guenther
2010-09-22smbtorture: Report times.Jelmer Vernooij1-0/+2
2010-09-21torture: Remove active_testname variable.Jelmer Vernooij1-3/+0
2010-09-21torture: Fix running individual tests.Jelmer Vernooij1-2/+2
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-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>
2010-06-25smbtorture: Fix loading of --load-list.Jelmer Vernooij1-10/+12
2010-06-21smbtorture: Fixx off-by-one command line parsing.James Peach1-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.
2010-06-21smbtorture: Add "target" command to interactive shell.James Peach1-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.
2010-06-21smbtorture: Move interactive shell into a separate file.James Peach1-59/+18
2010-06-21smbtorture: Print global options for interactive "list" command.James Peach1-1/+3
2010-06-21smbtorture: Add history support to shell mode.James Peach1-1/+8
2010-06-21smbtorture: Add list command to smbtorture shell.James Peach1-36/+94
2010-06-15s4 torture: RAW-SEARCH: break out some of the old search levelsAravind Srinivasan1-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>
2010-06-03s4-smbtorture: allow to call single tests from a testcase in a testsuiteGünther Deschner1-0/+10
directly on the commandline. Guenther
2010-04-10torture: Simplify torture suite running, call restricted test suite runner.Jelmer Vernooij1-43/+29
2010-04-10smbtorture: Remove unused shell feature.Jelmer Vernooij1-51/+1
2010-04-10smbtorture: Support --load-list argument.Jelmer Vernooij1-16/+30
2010-04-09s4/torture: Suppress Valgrind warningsKamen Mazdrashki1-1/+2
This patch suppresses two Valgrind warnings of type "xxx bytes in yy blocks are indirectly lost in loss record"
2010-03-31smbtorture: Report number of available tests in a testsuite using subunit.Jelmer Vernooij1-1/+7
2010-01-10s4/torture: Parameterize output in LOCK tests based off server supportSteven Danneman1-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.
2009-12-07s4 torture: Add a new torture:hide_on_access_denied parameterTim Prouty1-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.
2009-12-03s4 torture: Make RAW-SEARCH pass against win7Zachary Loafman1-0/+9
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03s4 torture: Parameterize WRITE_AND_CLOSE supportZachary Loafman1-0/+1
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03s4 torture: Allow READ to be parameterized, add more readx testsZachary Loafman1-0/+1
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03s4-torture: Allow the legacy DENY_FCB/DENY_DOS share modes to be ignoredZachary Loafman1-0/+2
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03s4 torture: Add a few more windows target typesTim Prouty1-0/+4
2009-12-03s4 torture: Allow some implementations to break from level1 to none with two ↵Tim Prouty1-0/+2
breaks
2009-12-02s4/torture: Add target functionality parameters to SMBv1 BRL testsSteven Danneman1-1/+6
Abstract the server requirements to pass some BRL tests. * The new default for >64bit lock tests, is that the server should return STATUS_INVALID_LOCK_RANGE. * Add parameter for targets that don't implement DENY_DOS
2009-12-01Revert "s4 torture: Allow onefs to be checked like samba3 and samba4"Tim Prouty1-1/+0
This reverts commit 98f595036e196dd61340fef0faf63ca762a25307. No longer necessary
2009-11-25s4 torture: Allow onefs to be checked like samba3 and samba4Tim Prouty1-0/+1
This is needed for the new RAW-SFILEINFO-END-OF-FILE test to differentiate what appears to be a windows bug.
2009-11-17s4/torture: Port SMBv1 Change Notify tests to SMBv2Aravind Srinivasan1-0/+2
* Ported all tests from raw/notify.c to smb2/notify.c * Parameterized the max_buffer_size so it can be set on a per-target basis. * Fixed CHECK macros to use torture_result * Created a SMB2-NOTIFY test suite
2009-11-17torture/smb2: make SMB2 BRL tests pass against W2K8R2Steven Danneman1-0/+2
The BRL tests previously based their results off several bugs in the W2K8 byte range lock code. I've fixed up the tests to pass against Win7 which has fixed these bugs, and assume that the Win7 behavior is the default. I have inverted the test behavior for >63-bit lock requests. The tests previously expected NT_STATUS_OK as their default in this case. I've changed that default to expect STATUS_INVALID_LOCK_RANGE. This may requires some changing of make test to compensate. I've also removed a few test scenarios from VALID-REQUEST in preparation of replacing them with separate tests ported from RAW-LOCK.
2009-10-22s4:smbtorture - Add "const" before "value"Matthias Dieter Wallnöfer1-1/+1
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-10-20s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell1-4/+0
This reduces compile time somewhat.
2009-10-15s4-torture: catch bad command line optionsAndrew Tridgell1-0/+3
It is annoying when you mistype a command line option and aren't told.
2009-10-06s4/torture: Add server target of OneFSSteven Danneman1-2/+5
I've added a "--target=onefs" which lists expected deviation in the OneFS SMB server implementation compared to a Windows machine. I've added this in a generic way using a list of module specific parameters. This list currently only contains the absence of SACL support but will be added to as additional server differences are defined. I'd liked to use this abstraction for defining the differences between a WinXP and Win7 server as well.
2009-07-06RAW-LOCK: fix the run against w2k3, w2k8, win7rc and samba3/4Stefan Metzmacher1-0/+2
We now allow --target=w2k8. The strange thing is that w2k8 and win7rc only do half of the timeout that was given by the client. metze
2009-06-13smbtorture: Output subunit by default.Jelmer Vernooij1-1/+1