1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

51 Commits

Author SHA1 Message Date
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
Jelmer Vernooij
8773e743c5 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.
(This used to be commit 0eb6097305)
2007-10-10 14:21:12 -05:00
Stefan Metzmacher
5addf852d2 r18421: support --target=samba3, I thought that was already supported
metze
(This used to be commit 47ccea11f3)
2007-10-10 14:18:26 -05:00
Andrew Tridgell
a8421e8107 r18343: fixed setlinebuf() prototype, added test for it, and use it in two
places to avoid a #ifdef
(This used to be commit 095b805774)
2007-10-10 14:18:13 -05:00
Jelmer Vernooij
873749f218 r18168: Use {NULL} rather than POPT_TABLEEND, which is not always available.
(This used to be commit 8b622c5ded)
2007-10-10 14:17:45 -05:00
Stefan Metzmacher
722d20f4dd r17958: as talloc_init() enabled null tracking, we should avoid to use it
in smbtorture, and in the LOCAL-TALLOC we should reset the null tracking

also make bin/smbtorture //url/foo LOCAL-TALLOC LOCAL-TALLOC possible

metze
(This used to be commit d1dd3df5e4)
2007-10-10 14:16:57 -05:00
Jelmer Vernooij
0329d755a7 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
(This used to be commit f7afa1cb77)
2007-10-10 14:16:54 -05:00
Jelmer Vernooij
1afab0e36f r16527: Add target argument for smbtorture.
Remove duplicate unc path separator conversion.
Add prefix for tempdirs.
(This used to be commit 3763ed3092)
2007-10-10 14:09:33 -05:00
Jelmer Vernooij
e4684e6632 r16330: Show number of succeeded, failed and skipped tests and success rate at the
end of a smbtorture run.
(This used to be commit 745f3d544b)
2007-10-10 14:09:10 -05:00
Jelmer Vernooij
920c1ca95c r16328: Wrap all existing tests in simple single-function testsuites.
(This used to be commit 7e811adf59)
2007-10-10 14:09:10 -05:00
Jelmer Vernooij
5b7ee5e7d6 r16321: Add suite_start/suite_finish hooks, support --format=quiet
(This used to be commit 6da39533d7)
2007-10-10 14:09:10 -05:00
Jelmer Vernooij
582d46ec42 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().
(This used to be commit 0445b1a56a)
2007-10-10 14:09:09 -05:00
Jelmer Vernooij
02aee3000d r16174: Couple of fixes to the UI code - make 'torture_ok()' optional, be more verbose by default.
(This used to be commit 8ef13a50b9)
2007-10-10 14:09:05 -05:00
Jelmer Vernooij
572930b1af 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)
(This used to be commit 18fab7a22c)
2007-10-10 14:09:02 -05:00
Jelmer Vernooij
482a9f046f r16152: Support multiple output formats for those tests using the ui and add support for subunit output.
(This used to be commit 4e720b0191)
2007-10-10 14:09:01 -05:00
Jelmer Vernooij
066ecf0c6f r15908: Mention ncalrpc in smbtorture help output
Update smbtorture manpage with binding string format explanation
(This used to be commit 37f6dc130e)
2007-10-10 14:08:39 -05:00
Jelmer Vernooij
4099637512 r15819: Use updated API in smbtorture, use UI tools in registry tests.
(This used to be commit 4c452090fb)
2007-10-10 14:08:27 -05:00
Rafal Szczesniak
9604b161ad r15456: Inspired by a short discussion with abartlet on IRC.
- create "async" parameter for smbtorture to categorise async tests
  potentially hard for windows servers
- create "num-async" parameter to specify the number of simultaneous
  async requests to be made
- move RPC-ASYNCBIND test from "dangerous" to "async" (I should probably
  do the same for many others async tests...)

It's an interesting way to determine resources availability on windows
servers...

rafal
(This used to be commit 0d008fbea0)
2007-10-10 14:05:37 -05:00
James Peach
4d81335115 r15131: Tidy help output. When printing the list of tests, group them by prefix
to make it easier to see what tests are available.
(This used to be commit f15010ccb3)
2007-10-10 14:04:10 -05:00
Stefan Metzmacher
35ee247487 r14967: load shared module torture test after we know where to search...
metze
(This used to be commit b2f4553154)
2007-10-10 14:00:47 -05:00
Stefan Metzmacher
01f19c0d1b r14818: give an error on an unknown test
so we catch typos in the make test scripts

metze
(This used to be commit fa73030deb)
2007-10-10 13:59:23 -05:00
Jelmer Vernooij
51c08bc26b r14725: Reduce amount of headers, add simple ui implementation (not used yet though)
(This used to be commit 141830116b)
2007-10-10 13:59:14 -05:00
Jelmer Vernooij
909b111f58 r14720: Add torture_context argument to all torture tests
(This used to be commit 3c7a5ce291)
2007-10-10 13:59:13 -05:00
Jelmer Vernooij
35349a58df r14542: Remove librpc, libndr and libnbt from includes.h
(This used to be commit 51b4270513)
2007-10-10 13:58:42 -05:00