1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

174 Commits

Author SHA1 Message Date
Jelmer Vernooij
ecea5ce245 r26260: Store loadparm context in gensec context.
(This used to be commit b9e3a4862e267be39d603fed8207a237c3d72081)
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 9d12fc7dc5abc82c8ad189420db1f85a89c71e4f)
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 a33a5530545086b81a3b205aa109dff11c546926)
2007-12-21 05:47:20 +01:00
Jelmer Vernooij
7ab6f359f4 r25929: Add some help strings.
(This used to be commit ef364df37f2f00c238903bec4c8a035c05bdf366)
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 566aa14139510788548a874e9213d91317f83ca9)
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
ae74eea43d r25527: Deal with no tests being registered.
(This used to be commit 2d36f6d3dbdad097933078bc9c689ff66d9a8a47)
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 9efa06537a998e5519e17022a01c9df435dc8b3d)
2007-10-10 15:07:45 -05:00
Stefan Metzmacher
e047f72e34 r25512: reformat code...
metze
(This used to be commit cd5699b7bdb57c2c6408a9df3c1ab2cfa32f0a58)
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 fd697d77c9fe67a00939a1f04b35c451316fff58)
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 c62f51cc28a37959128e78a1f34cfd4c6d3ba069)
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 b3f2eafa0489fe533c93f2b224bbd999cf069aa1)
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 abe8349f9b4387961ff3665d8c589d61cd2edf31)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
6cf69fee18 r24994: Fix some C++ warnings.
(This used to be commit 925abf74fa1ed5ae726bae8781ec549302786b39)
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 5af6d77c2143ba1b85cbea8f2d2028ebcff398da)
2007-10-10 15:03:35 -05:00
Jelmer Vernooij
dcb925bba7 r24897: Do some sanity checking on --basedir.
(This used to be commit 32dbaa142a2514d011a91ba0a0026934305e295f)
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 44139acf3045149de5bbbbdfd6e0304fc9e0b8dd)
2007-10-10 15:03:30 -05:00
Jelmer Vernooij
275a8c9183 r24851: Add --load-module argument to smbtorture.
(This used to be commit 76a713b6786e22b810937289b3e7cc6700a0b49d)
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 d131d40ae3df3ca8f4ddec2cd0f16210ffe64367)
2007-10-10 15:03:04 -05:00
Jelmer Vernooij
0e6773525f r24741: More use of the torture API.
(This used to be commit de05c3651a6e9e6611b296873526afd9292327c1)
2007-10-10 15:03:02 -05:00
Jelmer Vernooij
2fefa818a9 r24728: Use more stock torture functions.
(This used to be commit da3a7ee407a2b41bd01f45072cad12bf29250b33)
2007-10-10 15:02:58 -05:00
Jelmer Vernooij
d981c69a18 r24670: Use torture functions for settings.
(This used to be commit a6906676309f3b1bec1a69427e7ffd0a768061b8)
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 fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
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 38f867880beb40c691e9713f854426031310629c)
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 37c0da541e3962164d5af3e3c9560803a733f3b7)
2007-10-10 14:44:48 -05:00
Jelmer Vernooij
cf09c00c4e r21055: Fix executable bit.
(This used to be commit 7512270ffae4e72d70f6ca347f09708f1bf915ad)
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 afe0d170b08deb712b91ee73cc00a444e989b480)
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 7de4727ceb5935dd5fca49db0331c4509f735362)
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 a3f7b184735fb6467bec03eeff53a72003a78097)
2007-10-10 14:40:45 -05:00
Jelmer Vernooij
f00d4a5e92 r19878: Announce testsuites when using subunit.
(This used to be commit daaa0216456bf76116985451c87e5252c70f0dec)
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 8202f98123a13727b5cda3b4ca6f1040a41908ca)
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 f111feb1d2b82a9ec3a8b6fbcdbe297bf11edc42)
2007-10-10 14:25:30 -05:00
Andrew Tridgell
08fdf06c49 r19565: the scripts do work :)
(This used to be commit 59c30478a19ba466d16de21062bed5a4f525f344)
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 a675118a66993ff4868f2fad0c8f887feb93581b)
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 6602b605f6565c592500900e0f797f216f9910ff)
2007-10-10 14:24:52 -05:00
Jelmer Vernooij
78aa439426 r19556: Remove unused option.
(This used to be commit 827af8654940243c21eb12e9f1934a13272a6b00)
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 c2e58aa3e67ad6a03464ada5ae0e1437f3863b64)
2007-10-10 14:24:49 -05:00
Andrew Tridgell
7997a945bb r19548: this talloc_free() is definately wrong.
(This used to be commit b412a8390588fcbb655252fcc4cccbf3b3b84b5c)
2007-10-10 14:24:48 -05:00
Jelmer Vernooij
d8cd73563e r19537: Report correct test names when tests failed.
(This used to be commit 7b93b3c8be3d2a253b0737be893e7eb1b7c94dba)
2007-10-10 14:24:45 -05:00
Jelmer Vernooij
a1a05eaa4e r19535: Fix warnings.
(This used to be commit 7443f4847df6614797c937dd8d45bf7b37464a20)
2007-10-10 14:24:45 -05:00
Jelmer Vernooij
56c9e61d10 r19513: Add support for recipes (using '@')
(This used to be commit dbe5e8dd8c0986e5ab55a072957048f633838157)
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 087a8e80a9e912b330178b8c647b83381635f8e9)
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 f5d6b3ca29788d171d53822a26295ae895a5ed8f)
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 b28860978fe29c5b10abfb8c59d7182864e21dd6)
2007-10-10 14:21:24 -05:00
Jelmer Vernooij
1d3663c230 r19387: Exit with 0 if failures were expected
(This used to be commit b4fc06aeafa3ed8460759409a72b4de43a534d62)
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 23f66efd564d1ad549fc0cd60348f54808f5cafa)
2007-10-10 14:21:22 -05:00
Jelmer Vernooij
ac698cc283 r19378: Add another type of test result 'error'
(This used to be commit 77d13056bf437de77bfc94e21e9c945928e7f521)
2007-10-10 14:21:20 -05:00
Jelmer Vernooij
1e818c463a r19377: Simplify report functions.
(This used to be commit 0061f3c47e95f07461837c4051cf129b18961b56)
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 0c26c2aefdb603c5ffc87e9c0db0e9b2b34ec0ab)
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 bde00d97068d559b025ab131ff698a82430d14b3)
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 e1742c14a247fabba969f8698108e73997d3f420)
2007-10-10 14:21:13 -05:00