Günther Deschner
9884bf7d57
s4-smbtorture: allow to call single tests from a testcase in a testsuite
...
directly on the commandline.
Guenther
2010-06-03 18:29:46 +02:00
Jelmer Vernooij
4fb98b6856
torture: Simplify torture suite running, call restricted test suite runner.
2010-04-10 22:38:32 +02:00
Jelmer Vernooij
6b442f43bc
smbtorture: Remove unused shell feature.
2010-04-10 22:38:32 +02:00
Jelmer Vernooij
24f364517b
smbtorture: Support --load-list argument.
2010-04-10 22:38:32 +02:00
Kamen Mazdrashki
8126c78c76
s4/torture: Suppress Valgrind warnings
...
This patch suppresses two Valgrind warnings of type
"xxx bytes in yy blocks are indirectly lost in loss record"
2010-04-09 02:45:08 +03:00
Jelmer Vernooij
31094b0e8c
smbtorture: Report number of available tests in a testsuite using subunit.
2010-03-31 02:57:47 +02:00
Steven Danneman
5323fe99c3
s4/torture: Parameterize output in LOCK tests based off server support
...
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.
2010-01-10 16:12:44 -08:00
Tim Prouty
f717a79eff
s4 torture: Add a new torture:hide_on_access_denied parameter
...
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-07 16:54:17 -08:00
Zachary Loafman
a3df55b26f
s4 torture: Make RAW-SEARCH pass against win7
...
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03 20:46:25 -08:00
Zachary Loafman
2dc5bd19d4
s4 torture: Parameterize WRITE_AND_CLOSE support
...
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03 20:21:22 -08:00
Zachary Loafman
5882282dea
s4 torture: Allow READ to be parameterized, add more readx tests
...
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03 20:21:22 -08:00
Zachary Loafman
60d9828ade
s4-torture: Allow the legacy DENY_FCB/DENY_DOS share modes to be ignored
...
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03 19:07:54 -08:00
Tim Prouty
b14da4f7c5
s4 torture: Add a few more windows target types
2009-12-03 18:54:52 -08:00
Tim Prouty
af8b7857ca
s4 torture: Allow some implementations to break from level1 to none with two breaks
2009-12-03 18:54:52 -08:00
Steven Danneman
438b7c41ae
s4/torture: Add target functionality parameters to SMBv1 BRL tests
...
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-02 17:28:51 -08:00
Tim Prouty
5a934fd8da
Revert "s4 torture: Allow onefs to be checked like samba3 and samba4"
...
This reverts commit 98f595036e
.
No longer necessary
2009-12-01 11:12:51 -08:00
Tim Prouty
98f595036e
s4 torture: Allow onefs to be checked like samba3 and samba4
...
This is needed for the new RAW-SFILEINFO-END-OF-FILE test to
differentiate what appears to be a windows bug.
2009-11-25 08:45:15 -08:00
Aravind Srinivasan
15d93a5d8e
s4/torture: Port SMBv1 Change Notify tests to SMBv2
...
* 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-17 17:06:26 -08:00
Steven Danneman
c14b0cea48
torture/smb2: make SMB2 BRL tests pass against W2K8R2
...
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-11-17 17:06:26 -08:00
Matthias Dieter Wallnöfer
24bca52c0b
s4:smbtorture - Add "const" before "value"
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-10-22 10:02:27 +11:00
Andrew Tridgell
84d0047377
s4-torture: ran minimal_includes.pl over source4/torture
...
This reduces compile time somewhat.
2009-10-20 16:04:46 +11:00
Andrew Tridgell
ffa8c45372
s4-torture: catch bad command line options
...
It is annoying when you mistype a command line option and aren't told.
2009-10-15 20:03:00 +11:00
Steven Danneman
26b7734841
s4/torture: Add server target of OneFS
...
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-10-06 19:43:15 -07:00
Stefan Metzmacher
ad17cf1772
RAW-LOCK: fix the run against w2k3, w2k8, win7rc and samba3/4
...
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-07-06 15:37:48 +02:00
Jelmer Vernooij
478503694a
smbtorture: Output subunit by default.
2009-06-13 16:16:01 +02:00
Jelmer Vernooij
afe7949313
smbtorture: Remove unused 'quiet' output format.
2009-06-13 16:16:01 +02:00
Zack Kirsch
4e1a4cbe1f
s4 torture: Smbtorture additions for Windows BRL
...
- Adds a few new BRL tests to RAW-LOCK
- Adds a "win7" target to allow torture to handle protocol changes in
windows 7
2009-02-11 12:23:52 -08:00
Jelmer Vernooij
91f245ab5b
Fix segfault when there are no tests registered.
2008-12-22 18:53:19 +01:00
Jelmer Vernooij
b45caa44e1
Fix the build.
2008-11-02 23:58:49 +01:00
Jelmer Vernooij
5920667452
Split out torture results from torture context.
2008-11-01 00:24:55 +01:00
Jelmer Vernooij
6b5d0b32b6
Move subunit ui ops out of smbtorture to the torture library.
2008-10-23 21:30:41 +02:00
Jelmer Vernooij
87ec1d2532
Make sure prototypes are always included, make some functions static and
...
remove some unused functions.
2008-10-20 18:59:51 +02:00
Jelmer Vernooij
9565999755
Fix include paths to new location of libutil.
2008-10-11 21:31:42 +02:00
Stefan Metzmacher
460356c976
smbtorture: add --extra-user option
...
This can we used to pass additional credentials to torture tests
(it can be used multiple times.
metze
(This used to be commit 4d80dbfac2
)
2008-07-26 20:11:09 +02:00
Simo Sorce
2daf2897d5
Use a custom init function for samba4 that sets a samba4
...
specific debug function.
By default do not debug, this is the most appropriate action for a library
as we cannot assume what stderr is use for in the main app.
The main app is responsible to set ev_debug_stderr if they so desire.
(This used to be commit e566a2f308
)
2008-06-14 13:00:53 -04:00
Jelmer Vernooij
936b973acb
Use new dynconfig.h location.
...
(This used to be commit c3f556915f
)
2008-05-27 14:36:28 +02:00
Jelmer Vernooij
72251a1b7a
Include test case name when reporting with subunit. This should make it possible to having a test fail against some test cases and success against other ones.
...
(This used to be commit 0af138a85b
)
2008-05-23 16:19:00 +02:00
Jelmer Vernooij
7b45a4d7fa
Merge branch 'v4-0-test' into v4-0-gmake3
...
Conflicts:
source/auth/config.mk
source/auth/gensec/config.mk
source/torture/smbtorture.c
(This used to be commit edfd02e59b
)
2008-05-10 18:08:00 +02:00
Jelmer Vernooij
1e973565b6
Move subunit infrastructure code into lib/torture.
...
(This used to be commit 5b44d8121d
)
2008-04-27 14:02:46 +01:00
Jelmer Vernooij
cc9c4aaa8d
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
Conflicts:
source/Makefile
source/auth/config.mk
source/auth/gensec/config.mk
source/build/m4/public.m4
source/build/make/python.mk
source/build/make/rules.mk
source/build/smb_build/header.pm
source/build/smb_build/main.pl
source/build/smb_build/makefile.pm
source/dsdb/config.mk
source/dsdb/samdb/ldb_modules/config.mk
source/kdc/config.mk
source/lib/events/config.mk
source/lib/events/events.c
source/lib/ldb/config.mk
source/lib/nss_wrapper/config.mk
source/lib/policy/config.mk
source/lib/util/config.mk
source/libcli/smb2/config.mk
source/libnet/config.mk
source/librpc/config.mk
source/nbt_server/config.mk
source/ntptr/ntptr_base.c
source/ntvfs/posix/config.mk
source/ntvfs/sysdep/config.mk
source/param/config.mk
source/rpc_server/config.mk
source/rpc_server/service_rpc.c
source/scripting/ejs/config.mk
source/scripting/python/config.mk
source/smb_server/config.mk
source/smbd/server.c
source/torture/config.mk
source/torture/smb2/config.mk
source/wrepl_server/config.mk
(This used to be commit 13bbd42068
)
2008-04-25 10:04:20 +01:00
Jelmer Vernooij
1efbd5fbf6
Remove event context tracking from the credentials struct.
...
(This used to be commit 4d7fc946b2
)
2008-04-17 01:03:18 +02:00
Simo Sorce
4f51b0246d
Fix problems with event context not being the parent.
...
(This used to be commit 957c4d893a
)
2008-04-14 12:45:51 -04:00
Jelmer Vernooij
2bf39edc9d
Push SOVERSION and VERSION out of perl code.
...
(This used to be commit 0ba8ac6a14
)
2008-03-08 15:28:12 +01:00
Jelmer Vernooij
0020793515
Fix static module list generation for ldb.
...
(This used to be commit 92c1c0e913
)
2008-02-20 03:40:44 +01:00
Jelmer Vernooij
0500b87092
r26540: Revert my previous commit after concerns raised by Andrew.
...
(This used to be commit 6ac86f8be7
)
2007-12-21 05:52:06 +01:00
Jelmer Vernooij
3e75f222bc
r26539: Remove unnecessary statics.
...
(This used to be commit e53e79eebe
)
2007-12-21 05:52:05 +01:00
Kai Blin
43ac3d9b44
r26453: Janitorial: Don't use a static char[] in smb_readline_replacement.
...
Fix up callers to free the memory returned, as that is needed if we use the
original readline function as well.
(This used to be commit c81ead1c38
)
2007-12-21 05:50:18 +01:00
Jelmer Vernooij
d891c0c74a
r26429: Avoid use of global_smb_iconv_convenience.
...
(This used to be commit d37136b7ab
)
2007-12-21 05:49:56 +01:00
Jelmer Vernooij
b65dba2245
r26355: Eliminate global_loadparm in more places.
...
(This used to be commit 5d589a0d94
)
2007-12-21 05:49:01 +01:00
Jelmer Vernooij
6901b3c64a
r26278: Tallocify convenience table for iconv handles.
...
(This used to be commit ad64b3baa4
)
2007-12-21 05:48:04 +01:00
Jelmer Vernooij
ecea5ce245
r26260: Store loadparm context in gensec context.
...
(This used to be commit b9e3a4862e
)
2007-12-21 05:47:34 +01:00
Jelmer Vernooij
779f452a72
r26240: We now actually use torture_context pointers for more than just allocation.
...
Fix a few places where we were passing talloc contexts that were not
torture contexts.
(This used to be commit 9d12fc7dc5
)
2007-12-21 05:47:21 +01:00
Jelmer Vernooij
bbdfbf8d9d
r26238: Add a loadparm context parameter to torture_context, remove more uses of global_loadparm.
...
(This used to be commit a33a553054
)
2007-12-21 05:47:20 +01:00
Jelmer Vernooij
7ab6f359f4
r25929: Add some help strings.
...
(This used to be commit ef364df37f
)
2007-12-21 05:45:06 +01:00
Jelmer Vernooij
2151cde580
r25554: Convert last instances of BOOL, True and False to the standard types.
...
(This used to be commit 566aa14139
)
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
ae74eea43d
r25527: Deal with no tests being registered.
...
(This used to be commit 2d36f6d3db
)
2007-10-10 15:07:47 -05:00
Stefan Metzmacher
54bc4556b9
r25513: don't hide warnings in subunit mode
...
metze
(This used to be commit 9efa06537a
)
2007-10-10 15:07:45 -05:00
Stefan Metzmacher
e047f72e34
r25512: reformat code...
...
metze
(This used to be commit cd5699b7bd
)
2007-10-10 15:07:45 -05:00
Jelmer Vernooij
60a1046c5c
r25430: Add the loadparm context to all parametric options.
...
(This used to be commit fd697d77c9
)
2007-10-10 15:07:31 -05:00
Jelmer Vernooij
3048e9ad65
r25392: Add loadparm context as argument in a couple more places.
...
(This used to be commit c62f51cc28
)
2007-10-10 15:07:24 -05:00
Jelmer Vernooij
7ac97bbbdb
r25361: Specify share correctly for RPC-SAMBA3-SHARESEC, allow overriding share from command-line in smbtorture.
...
(This used to be commit b3f2eafa04
)
2007-10-10 15:07:18 -05:00
Jelmer Vernooij
ffeee68e4b
r25026: Move param/param.h out of includes.h
...
(This used to be commit abe8349f9b
)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
6cf69fee18
r24994: Fix some C++ warnings.
...
(This used to be commit 925abf74fa
)
2007-10-10 15:05:26 -05:00
Stefan Metzmacher
614d7d0728
r24907: now that we support bindings without a transport
...
just setup torture:binding even if we get an unc
as parameter
metze
(This used to be commit 5af6d77c21
)
2007-10-10 15:03:35 -05:00
Jelmer Vernooij
dcb925bba7
r24897: Do some sanity checking on --basedir.
...
(This used to be commit 32dbaa142a
)
2007-10-10 15:03:32 -05:00
Jelmer Vernooij
b77fabc274
r24891: Fix smbtorture to exit non-zero if a test suite wasn't found.
...
(This used to be commit 44139acf30
)
2007-10-10 15:03:30 -05:00
Jelmer Vernooij
275a8c9183
r24851: Add --load-module argument to smbtorture.
...
(This used to be commit 76a713b678
)
2007-10-10 15:03:19 -05:00
Jelmer Vernooij
7ee37fdb1e
r24757: Try parsing a UNC location before a DCE/RPC binding string as the latter now
...
accepts strings not prefixed with a transport.
(This used to be commit d131d40ae3
)
2007-10-10 15:03:04 -05:00
Jelmer Vernooij
0e6773525f
r24741: More use of the torture API.
...
(This used to be commit de05c3651a
)
2007-10-10 15:03:02 -05:00
Jelmer Vernooij
2fefa818a9
r24728: Use more stock torture functions.
...
(This used to be commit da3a7ee407
)
2007-10-10 15:02:58 -05:00
Jelmer Vernooij
d981c69a18
r24670: Use torture functions for settings.
...
(This used to be commit a690667630
)
2007-10-10 15:02:36 -05:00
Andrew Tridgell
0479a2f1cb
r23792: convert Samba4 to GPLv3
...
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 fcf38a38ac
)
2007-10-10 14:59:12 -05:00
Jelmer Vernooij
72d88d158a
r21707: Finally merge my (long-living) perlselftest branch.
...
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 38f867880b
)
2007-10-10 14:49:15 -05:00
Jelmer Vernooij
ecf2c1effb
r21222: Merge a couple of pidl fixes:
...
* 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 37c0da541e
)
2007-10-10 14:44:48 -05:00
Jelmer Vernooij
cf09c00c4e
r21055: Fix executable bit.
...
(This used to be commit 7512270ffa
)
2007-10-10 14:44:26 -05:00
Jelmer Vernooij
d3400402d5
r21040: Remove subunit runner (now written in perl in my perlselftest branch)
...
(This used to be commit afe0d170b0
)
2007-10-10 14:44:23 -05:00
Jelmer Vernooij
5c847a00a7
r21028: Generate list of tests rather than maintaining it manually.
...
(This used to be commit 7de4727ceb
)
2007-10-10 14:44:21 -05:00
Jelmer Vernooij
70dcbd1f0f
r20757: Strip recipe functionality (should be one layer up)
...
(This used to be commit a3f7b18473
)
2007-10-10 14:40:45 -05:00
Jelmer Vernooij
f00d4a5e92
r19878: Announce testsuites when using subunit.
...
(This used to be commit daaa021645
)
2007-10-10 14:28:30 -05:00
Stefan Metzmacher
b48a01b4a5
r19875: set torture:host and torture:share also when we are given a binding string
...
metze
(This used to be commit 8202f98123
)
2007-10-10 14:28:29 -05:00
Jelmer Vernooij
9d7856122e
r19680: Allow specifying basedir for test data.
...
Create temporary directories in base directory.
(This used to be commit f111feb1d2
)
2007-10-10 14:25:30 -05:00
Andrew Tridgell
08fdf06c49
r19565: the scripts do work :)
...
(This used to be commit 59c30478a1
)
2007-10-10 14:24:52 -05:00
Andrew Tridgell
85e7ad8259
r19564: testing build farm scripts, apologies for the noise
...
(jelmer didn't see some breakage emails lately, I want to ensure its
working)
(This used to be commit a675118a66
)
2007-10-10 14:24:52 -05:00
Andrew Tridgell
67a76a6e45
r19563: - make --num-progs a valid smbtorture option again. It's commonly
...
used.
- mark -t as an integer option
(This used to be commit 6602b605f6
)
2007-10-10 14:24:52 -05:00
Jelmer Vernooij
78aa439426
r19556: Remove unused option.
...
(This used to be commit 827af86549
)
2007-10-10 14:24:50 -05:00
Jelmer Vernooij
8d90810433
r19554: Remove short option for --shell, as it overlaps with the option used for
...
configuration files.
(This used to be commit c2e58aa3e6
)
2007-10-10 14:24:49 -05:00
Andrew Tridgell
7997a945bb
r19548: this talloc_free() is definately wrong.
...
(This used to be commit b412a83905
)
2007-10-10 14:24:48 -05:00
Jelmer Vernooij
d8cd73563e
r19537: Report correct test names when tests failed.
...
(This used to be commit 7b93b3c8be
)
2007-10-10 14:24:45 -05:00
Jelmer Vernooij
a1a05eaa4e
r19535: Fix warnings.
...
(This used to be commit 7443f4847d
)
2007-10-10 14:24:45 -05:00
Jelmer Vernooij
56c9e61d10
r19513: Add support for recipes (using '@')
...
(This used to be commit dbe5e8dd8c
)
2007-10-10 14:24:43 -05:00
Jelmer Vernooij
af3c5b46d3
r19512: Add --shell option to smbtorture (first work towards support for 'recipes')
...
(This used to be commit 087a8e80a9
)
2007-10-10 14:24:43 -05:00
Jelmer Vernooij
108de297a7
r19510: Make smbtorture's `nprocs' parameter a parametric option.
...
(This used to be commit f5d6b3ca29
)
2007-10-10 14:24:42 -05:00
Jelmer Vernooij
a39f239cb2
r19392: Use torture_setting_* rather than lp_parm_* where possible.
...
(This used to be commit b28860978f
)
2007-10-10 14:21:24 -05:00
Jelmer Vernooij
1d3663c230
r19387: Exit with 0 if failures were expected
...
(This used to be commit b4fc06aeaf
)
2007-10-10 14:21:23 -05:00
Jelmer Vernooij
4517b7af0e
r19381: Print out the specific tests that failed after a smbtorture run.
...
Support listing known failures as a list of wildcards in the file
`KNOWN_FAILURES'.
(This used to be commit 23f66efd56
)
2007-10-10 14:21:22 -05:00
Jelmer Vernooij
ac698cc283
r19378: Add another type of test result 'error'
...
(This used to be commit 77d13056bf
)
2007-10-10 14:21:20 -05:00
Jelmer Vernooij
1e818c463a
r19377: Simplify report functions.
...
(This used to be commit 0061f3c47e
)
2007-10-10 14:21:20 -05:00
Stefan Metzmacher
87e8218d09
r19369: - we need to set the target:samba3 before calling torture_init()
...
otherwise BASE-DELETE will run all tests
- call ldb_global_init() directly after torture_init()
this isn't strictly needed but looks better
metze
(This used to be commit 0c26c2aefd
)
2007-10-10 14:21:18 -05:00
Jelmer Vernooij
b58deeea69
r19350: Properly list LOCAL-TALLOC under the "LOCAL" header.
...
Support directories for subcategories in tests.
Several small other fixes.
(This used to be commit bde00d9706
)
2007-10-10 14:21:14 -05:00
Jelmer Vernooij
52e3f69a36
r19343: Add support for external scripts/binaries that write results using the
...
'subunit' protocol. This allows us to easily plug EJS scripts or binaries that
can't depend on -ltorture into smbtorture. The protocol is very simple:
- write "comments" to stderr
Example output on stdout:
test: foo
success: foo
test: bar
success: bar
test: blah
failure: blah [
dummy.c:30: Expression 1 != 2 failed!
]
test: blie
skip: blie [
Iconv support not built in
]
I've already converted the talloc testsuite.
(This used to be commit e1742c14a2
)
2007-10-10 14:21:13 -05:00