1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-28 03:33:13 +03:00
Commit Graph

35 Commits

Author SHA1 Message Date
Kai Blin
e59c2eaf68 r26588: Janitorial: Rename torture_*_add_*test to torture_*_add_*test_const.
Also rename the corresponding wrap_ functions.
2007-12-26 11:57:05 -06:00
Jelmer Vernooij
a33a553054 r26238: Add a loadparm context parameter to torture_context, remove more uses of global_loadparm. 2007-12-21 05:47:20 +01:00
Stefan Metzmacher
6223c7fddc r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)
lib/messaging/
lib/registry/
lib/ldb-samba/
librpc/rpc/
auth/auth_winbind.c
auth/gensec/
auth/kerberos/
dsdb/repl/
dsdb/samdb/
dsdb/schema/
torture/
cluster/ctdb/
kdc/
ntvfs/ipc/
torture/rap/
ntvfs/
utils/getntacl.c
ntptr/
smb_server/
libcli/wrepl/
wrepl_server/
libcli/cldap/
libcli/dgram/
libcli/ldap/
libcli/raw/
libcli/nbt/
libnet/
winbind/
rpc_server/

metze
2007-12-21 05:45:02 +01:00
Jelmer Vernooij
76a713b678 r24851: Add --load-module argument to smbtorture. 2007-10-10 15:03:19 -05:00
Jelmer Vernooij
da3a7ee407 r24728: Use more stock torture functions. 2007-10-10 15:02:58 -05:00
Jelmer Vernooij
7a1eec6358 r24667: Finally merge the registry improvements that Wilco Baan Hofman and I have
been working on for at least half a year now. Contains the following
improvements:

 * proper layering (finally!) for the registry library. Distinction is
   now made between 'real' backends (local, remote, wine, etc) and
   the low-level hive backends (regf, creg, ldb, ...) that are only used
   by the local registry backend
 * tests for all important hive and registry operations
 * re-enable RPC-WINREG tests (still needs more work though, as
							   some return values aren't checked yet)
 * write support for REGF files
 * dir backend now supports setting/reading values, creating keys
 * support for storing security descriptors
 * remove CREG backend as it was incomplete, didn't match the data model
   and wasn't used at all anyway
 * support for parsing ADM files as used by the policy editor (see lib/policy)
 * support for parsing PREG files (format used by .POL files)
 * new streaming interface for registry diffs (improves speed and memory usage
	for regdiff/regpatch significantly)

   ... and fixes a large number of bugs in the registry code
2007-10-10 15:02:34 -05:00
Jelmer Vernooij
4e30410124 r24333: Add convenience function for checking the contents of a file in tests. 2007-10-10 15:01:38 -05:00
Andrew Tridgell
fcf38a38ac 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.
2007-10-10 14:59:12 -05:00
Andrew Tridgell
c0f65eb656 r22969: fix some more places where we could end up with more than one event
context. We now have an event context on the torture_context, and we
can also get one from the cli_credentials structure
2007-10-10 14:52:34 -05:00
James Peach
7f56da2d1f r21710: Add client support for the UNIX_INFO2 info level in the QueryFile,
QueryPath and FindFirst calls. Add a new torture test to verify the
server side.
2007-10-10 14:49:16 -05:00
Jelmer Vernooij
38f867880b 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.
2007-10-10 14:49:15 -05:00
Jelmer Vernooij
7512270ffa r21055: Fix executable bit. 2007-10-10 14:44:26 -05:00
Jelmer Vernooij
afe0d170b0 r21040: Remove subunit runner (now written in perl in my perlselftest branch) 2007-10-10 14:44:23 -05:00
Jelmer Vernooij
b4fc06aeaf r19387: Exit with 0 if failures were expected 2007-10-10 14:21:23 -05:00
Jelmer Vernooij
23f66efd56 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'.
2007-10-10 14:21:22 -05:00
Jelmer Vernooij
77d13056bf r19378: Add another type of test result 'error' 2007-10-10 14:21:20 -05:00
Jelmer Vernooij
0061f3c47e r19377: Simplify report functions. 2007-10-10 14:21:20 -05:00
Jelmer Vernooij
88c589940d r19376: Remove unused helper function. 2007-10-10 14:21:19 -05:00
Jelmer Vernooij
bde00d9706 r19350: Properly list LOCAL-TALLOC under the "LOCAL" header.
Support directories for subcategories in tests.
Several small other fixes.
2007-10-10 14:21:14 -05:00
Jelmer Vernooij
e1742c14a2 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.
2007-10-10 14:21:13 -05:00
Jelmer Vernooij
0eb6097305 r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
output in the testsuite rather than just True or False for a
set of tests.

The aim is to use this for:
 * known failure lists (run all tests and detect tests that
						started working or started failing). This
   would allow us to get rid of the RPC-SAMBA3-* tests
 * nicer torture output
 * simplification of the testsuite system
 * compatibility with other unit testing systems
 * easier usage of smbtorture (being able to run one test
						and automatically set up the environment for that)

This is still a work-in-progress; expect more updates over the next couple of
days.
2007-10-10 14:21:12 -05:00
Jelmer Vernooij
f9a9884c0d r16529: Fix type. 2007-10-10 14:09:33 -05:00
Jelmer Vernooij
3763ed3092 r16527: Add target argument for smbtorture.
Remove duplicate unc path separator conversion.
Add prefix for tempdirs.
2007-10-10 14:09:33 -05:00
Jelmer Vernooij
93f7adfb14 r16524: Fix double evaluation. 2007-10-10 14:09:32 -05:00
Andrew Bartlett
1009d55c8c r16489: Because the torture/ui.h file isn't automaticly generated, the
prototypes in it need to use the PRINTF_ATTRIBUTE() macro, rather than
_PRINTF_ATTRIBUTE() (which becomes PRINTF_ATTRIBUTE() only in proto
files, but not C files).

This found a number of missing descriptions in the LOCAL-SOCKET test.

Andrew Bartlett
2007-10-10 14:09:30 -05:00
Jelmer Vernooij
7e811adf59 r16328: Wrap all existing tests in simple single-function testsuites. 2007-10-10 14:09:10 -05:00
Jelmer Vernooij
6da39533d7 r16321: Add suite_start/suite_finish hooks, support --format=quiet 2007-10-10 14:09:10 -05:00
Jelmer Vernooij
0e52a831ed r16315: Convert to new API. 2007-10-10 14:09:09 -05:00
Jelmer Vernooij
0445b1a56a r16304: Improve testing UI API. This now allows registering the full
test suite tree, looks a bit more like other unit testing API's,
fixes some memory responsibility issues, introduces testcases,
and removes the need for tests to call torture_ok().
2007-10-10 14:09:09 -05:00
Jelmer Vernooij
8ef13a50b9 r16174: Couple of fixes to the UI code - make 'torture_ok()' optional, be more verbose by default. 2007-10-10 14:09:05 -05:00
Jelmer Vernooij
584cd50d2b r16165: Add some more helper utilities 2007-10-10 14:09:03 -05:00
Jelmer Vernooij
18fab7a22c r16160: Fix double semicolon in ui.h
Support output in perl's Test::Harness format (smbtorture output
can now be parsed by the 'prove' utility which generates statistics
about how much tests failed, succeeded, skipped, etc)
2007-10-10 14:09:02 -05:00
Jelmer Vernooij
f0a4547b76 r15818: Improve UI utilities: allow format strings and add some convenience macros. 2007-10-10 14:08:27 -05:00
Jelmer Vernooij
9d6eefad3a r14723: Keep statistics 2007-10-10 13:59:14 -05:00
Jelmer Vernooij
a15a8d87b5 r14718: Add initial work on a standardized UI for smbtorture 2007-10-10 13:59:13 -05:00