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

243 Commits

Author SHA1 Message Date
Andrew Bartlett
61e5856403 r22883: Indentation.
(This used to be commit 7548da913d)
2007-10-10 14:52:28 -05:00
Andrew Tridgell
bb2571cb90 r22833: use EVENT_FD_AUTOCLOSE in our event test suite
(This used to be commit 9109d43595)
2007-10-10 14:52:22 -05:00
Stefan Metzmacher
628ff1bea3 r22579: disable progress printing in the build-farm
metze
(This used to be commit 93089ad5e8)
2007-10-10 14:51:47 -05:00
Stefan Metzmacher
5b1a01a9c0 r22546: use the same error codes in both share backends
metze
(This used to be commit e0fae01e4c)
2007-10-10 14:51:41 -05:00
Stefan Metzmacher
9a66e0f7fb r22545: fix formating and a compiler warning
metze
(This used to be commit 5e627cc7c0)
2007-10-10 14:51:41 -05:00
Stefan Metzmacher
65881651c6 r22407: this dependecies should be private
metze
(This used to be commit 7ad60e62fd)
2007-10-10 14:51:15 -05:00
Jelmer Vernooij
0fe8434b3b r22336: Add some more share tests.
(This used to be commit dfc88ad698)
2007-10-10 14:51:05 -05:00
Jelmer Vernooij
f40244af7b r22328: Add initial testsuite for share code.
(This used to be commit 3d079732a9)
2007-10-10 14:51:03 -05:00
Jelmer Vernooij
2c247996a9 r22286: Import branch that converted the Samba4 test target code to perl and makes the code a bit clearer.
(This used to be commit e3ba5ced04)
2007-10-10 14:50:56 -05:00
Stefan Metzmacher
aea41afb52 r22216: move strptime testsuite into it's own file
so we can include it for the configure test

as it seems that strptime() is really broken on some hosts
in the build farm, re should use the replacement code
when we detect this in the configure test

metze
(This used to be commit 08a5e97606)
2007-10-10 14:50:38 -05:00
Andrew Bartlett
7e92a071c5 r22176: Make the LOCAL-MESSAGING test pass again. Messaging sockets are in
the 'pid directory' now...

Andrew Bartlett
(This used to be commit 224e7d4cc7)
2007-10-10 14:49:57 -05:00
Jelmer Vernooij
2fca3f9082 r21909: Merge some of my recent improvements to the test infrastructure:
- Allow tests to specify what environment they need to run in (dc and none are thecurrent supported ones).

- Move more Samba4-specific code out of the common code
(This used to be commit dbe9de1028)
2007-10-10 14:49:37 -05:00
Andrew Bartlett
9b921af12e r21791: This test is still just as valid without as much CPU time wasted.
Andrew Bartlett
(This used to be commit 3549785700)
2007-10-10 14:49:27 -05:00
Jelmer Vernooij
1d75e907e2 r21694: Some more testing updates.
(This used to be commit 9247626b1c)
2007-10-10 14:49:13 -05:00
Jelmer Vernooij
0474005d07 r21691: Add testsuite for lib/charset
(This used to be commit a418489395)
2007-10-10 14:49:13 -05:00
Jelmer Vernooij
bf08493a78 r21688: Add simple tests for genrand
(This used to be commit 90f23f0de8)
2007-10-10 14:49:12 -05:00
Jelmer Vernooij
1cc7b6e739 r21671: Add initial simple tests for socket wrapper
(This used to be commit 872e2ad541)
2007-10-10 14:49:07 -05:00
Jelmer Vernooij
1afda7bdde r21656: Move tests a bit closer to the things they test, should make syncing with samba3 easier.
(This used to be commit 4d755fb5d7)
2007-10-10 14:49:05 -05:00
Jelmer Vernooij
04fed31e1a r21653: Add two more tdr tests.
(This used to be commit cc40e3acd9)
2007-10-10 14:49:04 -05:00
Volker Lendecke
5ccf0bd16a r21421: Fix a memleak. This made tdb look considerably worse than necessary.
Volker
(This used to be commit 573ba38722)
2007-10-10 14:48:30 -05:00
Simo Sorce
d0feaf0c03 r21418: Return the ratio as well
(This used to be commit 56ed4499d6)
2007-10-10 14:48:29 -05:00
Jelmer Vernooij
b7a46675fb r21386: Run all NDR tests in the buildfarm, import some functions from Samba3's IDL.
(This used to be commit 15a4b81ba0)
2007-10-10 14:48:24 -05:00
Andrew Tridgell
80445f7596 r21213: the build farm seems to show that FreeBSD 6.2 has two different error
codes for "Invalid argument". This change should help track that down
(This used to be commit 608aac7804)
2007-10-10 14:44:46 -05:00
Andrew Tridgell
e5b00e3637 r21211: fixed 3 places that assumed that torture_fail() didn't call
return. Having a lowercase macro that returns from a function is
probably a bad idea - it looks too much like a C function but doesn't
behave like one.
(This used to be commit e680656419)
2007-10-10 14:44:45 -05:00
Andrew Tridgell
8ffc4c430c r20990: check for errors from event_loop_once()
(This used to be commit 6af4557b13)
2007-10-10 14:44:18 -05:00
Jelmer Vernooij
ff7f8b57f1 r20962: Fix lcov
(This used to be commit 3d3d3031c8)
2007-10-10 14:44:03 -05:00
Jelmer Vernooij
0bafe55264 r20955: Add tests
(This used to be commit 965d0d9289)
2007-10-10 14:44:01 -05:00
Andrew Tridgell
cf8eef4ad8 r20930: use sigaction() instead of signal()
add support for sa_flags argument to event_add_signal(). These are
passed to sigaction(). Special handling is provided for SA_RESETHAND
(which tells the event system to remove the handler after the signal)
and SA_SIGINFO which allows the siginfo structure to be received per
signal
(This used to be commit 1bb10b6cf7)
2007-10-10 14:43:55 -05:00
Jelmer Vernooij
6967a73f36 r20823: Remove newlines in calls to torture_fail().
(This used to be commit 37c0cfe83b)
2007-10-10 14:43:36 -05:00
Volker Lendecke
726f93c1f6 r20652: Attempt to fix the build
(This used to be commit 29d04fadf3)
2007-10-10 14:37:26 -05:00
Andrew Tridgell
1c211a2e43 r20650: revert a bunch of code I didn't mean to commit yet
(This used to be commit b3e2d49087)
2007-10-10 14:37:26 -05:00
Andrew Tridgell
f6274959ba r20647: add cluster code
(This used to be commit 5870830b99)
2007-10-10 14:37:24 -05:00
Andrew Tridgell
1cd4339b9a r20646: first preparations for cluster enablement. This changes "
uint32_t server_id
to
  struct server_id server_id;

which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
(This used to be commit 2365abaa99)
2007-10-10 14:37:23 -05:00
Andrew Tridgell
b213b70c08 r20539: - split the common timer related events code into events_timed.c
- make it easier to plug in a new events backend

- add simpler 'select' and 'epoll' backends

This is part of the effort to add good AIO support. The events_aio.c
backend is done, but sometimes dies with a SEGV, which is why it isn't
enabled yet.
(This used to be commit 934f18283d)
2007-10-10 14:36:50 -05:00
Simo Sorce
4889eb9f7a r19831: Big ldb_dn optimization and interfaces enhancement patch
This patch changes a lot of the code in ldb_dn.c, and also
removes and add a number of manipulation functions around.

The aim is to avoid validating a dn if not necessary as the
validation code is necessarily slow. This is mainly to speed up
internal operations where input is not user generated and so we
can assume the DNs need no validation. The code is designed to
keep the data as a string if possible.

The code is not yet 100% perfect, but pass all the tests so far.
A memleak is certainly present, I'll work on that next.

Simo.
(This used to be commit a580c871d3)
2007-10-10 14:28:22 -05:00
Jelmer Vernooij
c81f2930a2 r19676: Fix some more dependencies.
(This used to be commit 8768bec81f)
2007-10-10 14:25:29 -05:00
Stefan Metzmacher
fe2a5a8abf r19645: don't pass NULL as mem_ctx...
metze
(This used to be commit 643a38bc30)
2007-10-10 14:25:25 -05:00
Andrew Tridgell
9014fe198d r19550: the sense of this test was wrong
(This used to be commit 4dcc26d0a6)
2007-10-10 14:24:49 -05:00
Simo Sorce
5028a9266d r19536: Make output understandable (newlines)
(This used to be commit 6960dd2075)
2007-10-10 14:24:45 -05:00
Jelmer Vernooij
4fa24df98d r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
works again now, by specifying --enable-dso to configure.
(This used to be commit 7a01235067)
2007-10-10 14:24:41 -05:00
Jelmer Vernooij
bc596cf917 r19495: Stop linking binaries twice (once before installation, once during build).
Make TORTURE-TALLOC and TORTURE-REPLACE builtin again rather than
separate binaries.
(This used to be commit 8913d60c72)
2007-10-10 14:24:39 -05:00
Andrew Tridgell
ce37cdb593 r19437: don't run the LOCAL-ICONV test on systems that don't have CP850
support
(This used to be commit bb8cdd7626)
2007-10-10 14:21:31 -05:00
Andrew Tridgell
d6db8e6cb8 r19404: fixed the LOCAL-ICONV test
(This used to be commit 0b3e83814b)
2007-10-10 14:21:26 -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
1e818c463a r19377: Simplify report functions.
(This used to be commit 0061f3c47e)
2007-10-10 14:21:20 -05:00
Jelmer Vernooij
8acb0575c7 r19373: Merge changes from subunit branch: Convert libreplace testsuite to a
standalone program that speaks subunit.
(This used to be commit 48d316e759)
2007-10-10 14:21:19 -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
Andrew Tridgell
3433468e12 r19294: a little speed tester for ldb/tdb
I wrote this to see if using a ldb for idmap store (the equivalent of
winbindd_idmap.tdb) makes sense. It's a long lived database that
administrators may wish to edit, so ldb makes sense, but at the moment
ldb is too slow. This test will help us speed it up.
(This used to be commit 10f8260455)
2007-10-10 14:21:03 -05:00
Stefan Metzmacher
bc619e7328 r19035: add LOCAL-REPLACE test
metze
(This used to be commit e95a1ab2cd)
2007-10-10 14:20:30 -05:00
Andrew Tridgell
785822590c r18516: I'm surprised that compilers allowed this at all
(This used to be commit 46aa8a5e89)
2007-10-10 14:18:41 -05:00
Andrew Bartlett
a133601192 r18498: While passing stack values into torture_tcase_add_test is bad, values
assigned into a static initialiser must be constant.

Wishing sweet dreams on the jet-lagged tridge :-)

Andrew Bartlett
(This used to be commit 174014d956)
2007-10-10 14:18:39 -05:00
Andrew Tridgell
870cae2736 r18497: fixed crash bug in irpc test - the torture_tcase_add_test() call
is passed a stack pointer from values[], which is not valid when the
torture suite is run.

Jelmer, need to be careful when converting test code not to use stack
values from the torture_XXX() call in the test suite
(This used to be commit 2744a0b385)
2007-10-10 14:18:38 -05:00
Andrew Tridgell
10b54fdb52 r18406: disable local iconv test as well when iconv:native=false
(This used to be commit 77e6a09e6b)
2007-10-10 14:18:24 -05:00
Stefan Metzmacher
4cd7e5a245 r17742: make the casts explicit and remove compiler warnings
metze
(This used to be commit b2cc485058)
2007-10-10 14:16:35 -05:00
Stefan Metzmacher
a2eca9174c r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on the
configure check for the interfaces.

should fix the build on some old sun boxes

metze
(This used to be commit f20e251bfd)
2007-10-10 14:15:39 -05:00
Stefan Metzmacher
1935ef0d54 r17539: add HMAC-MD5 test code based on the example values from rfc 2104, 2202
metze
(This used to be commit 200b1a5c81)
2007-10-10 14:15:35 -05:00
Stefan Metzmacher
b165e48b3e r17494: add tests for the example values from rfc 1320 (MD4)
metze
(This used to be commit 5609ab2116)
2007-10-10 14:15:29 -05:00
Stefan Metzmacher
559158a3c9 r17492: add a test with the example values from rfc1321 (MD5)
metze
(This used to be commit bb1e4954f9)
2007-10-10 14:15:28 -05:00
Stefan Metzmacher
a573ae9978 r17491: I forgot to commit this...fix make test...sorry:-)
metze
(This used to be commit 408e507f0f)
2007-10-10 14:15:28 -05:00
Stefan Metzmacher
0d235919fb r17488: - add SHA1 and HMACSHA1 functions, based on rfc 2104,2202,3174
- and add torture tests also based on the rfc's

metze
(This used to be commit d48930a02f)
2007-10-10 14:15:28 -05:00
Andrew Bartlett
dfe5c6a271 r16966: Fix compile warnings.
Andrew Bartlett
(This used to be commit 7b8240e8fd)
2007-10-10 14:10:04 -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
6b749f225e r16526: Add torture_setup_server() with test.
(This used to be commit 6a1ed8ad75)
2007-10-10 14:09:32 -05:00
Jelmer Vernooij
3fc105b106 r16524: Fix double evaluation.
(This used to be commit 93f7adfb14)
2007-10-10 14:09:32 -05:00
Jelmer Vernooij
c692456f24 r16518: Split up torture_util.c in smb and non-smb specific parts.
Add torture_temp_dir() function, with test.
(This used to be commit c9d287dc0e)
2007-10-10 14:09:31 -05:00
Andrew Bartlett
cb93d28e7c 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
(This used to be commit 1009d55c8c)
2007-10-10 14:09:30 -05:00
Jelmer Vernooij
845df42a19 r16333: Move more code out of the core smbtorture. It now no longer
contains protocol-specific code.
(This used to be commit 819d3b4576)
2007-10-10 14:09:11 -05:00
Jelmer Vernooij
835d8ed2f6 r16332: Fix two small bugs found by the buildfarm.
(This used to be commit 3decb34bb6)
2007-10-10 14:09:11 -05:00
Jelmer Vernooij
0f62c11199 r16329: Convert to new UI API.
(This used to be commit c7d1d86853)
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
324583b28f r16316: Convert to new torture UI API.
(This used to be commit ff87504c41)
2007-10-10 14:09:10 -05:00
Jelmer Vernooij
69270cfff6 r16315: Convert to new API.
(This used to be commit 0e52a831ed)
2007-10-10 14:09:09 -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
123e50735a r16184: Convert to UI API. The async test was previously broken (fails
with NT_STATUS_NO_MEMORY) and still does.
(This used to be commit 5c2e136ef9)
2007-10-10 14:09:05 -05:00
Jelmer Vernooij
b617c831a4 r16171: Convert to UI API
(This used to be commit 075dfb4c52)
2007-10-10 14:09:04 -05:00
Jelmer Vernooij
1cb88c8c98 r16170: Convert to UI API
(This used to be commit 7dad6f9c0a)
2007-10-10 14:09:04 -05:00
Jelmer Vernooij
d3c0cfb8a2 r16169: Convert to UI API
(This used to be commit 6306a3cc17)
2007-10-10 14:09:04 -05:00
Jelmer Vernooij
978dee520e r16164: Convert to UI API
(This used to be commit 5cd95ec885)
2007-10-10 14:09:03 -05:00
Jelmer Vernooij
6845e402e1 r16163: Convert to UI API
(This used to be commit 067c58f0d9)
2007-10-10 14:09:03 -05:00
Jelmer Vernooij
c714fdaa22 r16162: Convert to UI API
(This used to be commit 78db534f65)
2007-10-10 14:09:02 -05:00
Stefan Metzmacher
20389549f1 r15862: add a LOCAL-EVENT torture test
- it currently tests the standard events code
- with epoll enabled and disabled

metze
(This used to be commit ce5fd2293d)
2007-10-10 14:08:34 -05:00
Jelmer Vernooij
495652fe24 r15821: Fix static library build.
(This used to be commit d9d8f93af1)
2007-10-10 14:08:28 -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
Jelmer Vernooij
9ee60bc671 r15605: Yet another dependencies fix
(This used to be commit eef495a8ef)
2007-10-10 14:06:59 -05:00
Jelmer Vernooij
172a83d724 r15573: Fix build of systems that have iconv headers in non-standard locations
Split of system/locale.h header from system/iconv.h

Previously, iconv wasn't being used on these systems
(This used to be commit aa6d66fda6)
2007-10-10 14:05:58 -05:00
Andrew Bartlett
c2cc10c786 r15356: Remove unused 'flags' argument from socket_send() and friends.
This is in preperation for making TLS a socket library.

Andrew Bartlett
(This used to be commit a312812b92)
2007-10-10 14:05:25 -05:00
Jelmer Vernooij
f7c86b912d r15331: Integrate LIBSMB and LIBCLI into new LIBCLI_SMB
(This used to be commit 4ec89bce87)
2007-10-10 14:05:18 -05:00
Jelmer Vernooij
e002300f23 r15328: Move some functions around, remove dependencies.
Remove some autogenerated headers (which had prototypes now autogenerated by pidl)
Remove ndr_security.h from a few places - it's no longer necessary
(This used to be commit c19c2b51d3)
2007-10-10 14:05:17 -05:00
Jelmer Vernooij
69b51f702a r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6)
2007-10-10 14:04:18 -05:00
Andrew Tridgell
c8610144f7 r15049: for really efficient oplock handling with thousands of open files we
will need a separate messaging endpoint per open file. To make this
efficient extend the messaging layer to have a new registration
function for temporary message types that maps via an idtree.

I have updated the LOCAL-MESSAGING test to use the new function.
(This used to be commit 4b976851d8)
2007-10-10 14:04:03 -05:00
Stefan Metzmacher
1af925f394 r14860: create libcli/security/security.h
metze
(This used to be commit 9ec706238c)
2007-10-10 13:59:44 -05:00
Jelmer Vernooij
e70eae2b4c r14721: Fix a couple of warnings.
(This used to be commit 426ac78108)
2007-10-10 13:59:13 -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
d64ccc0176 r14599: Pass ACLs down the registry layer.
(This used to be commit 6cdefd8945)
2007-10-10 13:58:59 -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
Jelmer Vernooij
d09b70c98b r14527: Fix build problems.
(This used to be commit 863ca4014d)
2007-10-10 13:57:37 -05:00
Jelmer Vernooij
5c79bbadd5 r14497: Fix build with shared libraries
(This used to be commit c74fc55831)
2007-10-10 13:57:34 -05:00
Jelmer Vernooij
8528016978 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca51)
2007-10-10 13:57:27 -05:00