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

188 Commits

Author SHA1 Message Date
Stefan Metzmacher
65881651c6 r22407: this dependecies should be private
metze
(This used to be commit 7ad60e62fd4fb1317cc86ef430d35d2c54fd20c2)
2007-10-10 14:51:15 -05:00
Jelmer Vernooij
0fe8434b3b r22336: Add some more share tests.
(This used to be commit dfc88ad698644fe90f0275c457e7b84ddde302a4)
2007-10-10 14:51:05 -05:00
Jelmer Vernooij
f40244af7b r22328: Add initial testsuite for share code.
(This used to be commit 3d079732a9cf15fcc3638db5f77bb45d7580d251)
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 e3ba5ced0440e736f0f140e12a8c728f79a20bb2)
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 08a5e9760643b9fbf00fdcf7163de7cf50e841e6)
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 224e7d4cc7f7fd4c4656185ec688ecc727a6489e)
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 dbe9de10287c902f4a5ea5d431dea4a79f9b170b)
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 3549785700cb412fae0e58c530faa40683952d55)
2007-10-10 14:49:27 -05:00
Jelmer Vernooij
1d75e907e2 r21694: Some more testing updates.
(This used to be commit 9247626b1c5f1eec0cedd6be221aafc41d9a26ab)
2007-10-10 14:49:13 -05:00
Jelmer Vernooij
0474005d07 r21691: Add testsuite for lib/charset
(This used to be commit a4184893959bb25541704938ee621e5c575b817d)
2007-10-10 14:49:13 -05:00
Jelmer Vernooij
bf08493a78 r21688: Add simple tests for genrand
(This used to be commit 90f23f0de86bb63ad65556ff2dab8b066236f300)
2007-10-10 14:49:12 -05:00
Jelmer Vernooij
1cc7b6e739 r21671: Add initial simple tests for socket wrapper
(This used to be commit 872e2ad541478597191ca9e31872d5c8e2bbb832)
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 4d755fb5d7adedd1dd8bad917b921324411bfd59)
2007-10-10 14:49:05 -05:00
Jelmer Vernooij
04fed31e1a r21653: Add two more tdr tests.
(This used to be commit cc40e3acd95aecea481a65e936d311b815c6e9ae)
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 573ba38722e338fb4158dfda181308a1a736c5c0)
2007-10-10 14:48:30 -05:00
Simo Sorce
d0feaf0c03 r21418: Return the ratio as well
(This used to be commit 56ed4499d69adf57a41632ba12cbfef383a35ab2)
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 15a4b81ba0b5eeb25126a0b1a7bea7d3bf921ab2)
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 608aac7804754fed1c68b847676d7a71a586e4bb)
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 e680656419f00fd8b4ddb996fd247bada0f0a51d)
2007-10-10 14:44:45 -05:00
Andrew Tridgell
8ffc4c430c r20990: check for errors from event_loop_once()
(This used to be commit 6af4557b1306e7e6a23c697cef3467d0f0458531)
2007-10-10 14:44:18 -05:00
Jelmer Vernooij
ff7f8b57f1 r20962: Fix lcov
(This used to be commit 3d3d3031c80b56c824ab8a0f3616d564f092a110)
2007-10-10 14:44:03 -05:00
Jelmer Vernooij
0bafe55264 r20955: Add tests
(This used to be commit 965d0d9289eceed1b9b88ad3f87046ac47202237)
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 1bb10b6cf7d717ad21834e73a4ca4b22b5fb6f0a)
2007-10-10 14:43:55 -05:00
Jelmer Vernooij
6967a73f36 r20823: Remove newlines in calls to torture_fail().
(This used to be commit 37c0cfe83bd9b9f799c880e3b5052a49631a113e)
2007-10-10 14:43:36 -05:00
Volker Lendecke
726f93c1f6 r20652: Attempt to fix the build
(This used to be commit 29d04fadf3db8cb1a6eb2d8ca33f0106cafaaab2)
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 b3e2d4908781781a487eaeb683d22eb967e5597d)
2007-10-10 14:37:26 -05:00
Andrew Tridgell
f6274959ba r20647: add cluster code
(This used to be commit 5870830b99a8d76bda1ff5af3fcf8dda9aba50ec)
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 2365abaa991d57d68c6ebe9be608e01c907102eb)
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 934f18283dbc7958944931a93a854526bcd54884)
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 a580c871d3784602a9cce32d33419e63c8236e63)
2007-10-10 14:28:22 -05:00
Jelmer Vernooij
c81f2930a2 r19676: Fix some more dependencies.
(This used to be commit 8768bec81f57131a0c9754e8121b345c0be4a5d0)
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 643a38bc30a0df1582035b8d264e0dbbc2d2e152)
2007-10-10 14:25:25 -05:00
Andrew Tridgell
9014fe198d r19550: the sense of this test was wrong
(This used to be commit 4dcc26d0a67ec4a611e789b299a1db7ecf297e66)
2007-10-10 14:24:49 -05:00
Simo Sorce
5028a9266d r19536: Make output understandable (newlines)
(This used to be commit 6960dd2075ed75c844c4a17e215991db2fb72c0d)
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 7a01235067a4800b07b8919a6a475954bfb0b04c)
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 8913d60c72a67b041b08d569c9bd048953106c85)
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 bb8cdd7626ced37bb030c3474390275c433c88e0)
2007-10-10 14:21:31 -05:00
Andrew Tridgell
d6db8e6cb8 r19404: fixed the LOCAL-ICONV test
(This used to be commit 0b3e83814bdf015064d7dd1f26cf9ec3ddadc7f4)
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 b28860978fe29c5b10abfb8c59d7182864e21dd6)
2007-10-10 14:21:24 -05:00
Jelmer Vernooij
1e818c463a r19377: Simplify report functions.
(This used to be commit 0061f3c47e95f07461837c4051cf129b18961b56)
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 48d316e7594dfc29b8e6a710e32bb5a6a036b7cf)
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 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
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 0eb6097305776325c75081356309115f445a7218)
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 10f8260455a55530f5701a136af8fa8b05ca8532)
2007-10-10 14:21:03 -05:00
Stefan Metzmacher
bc619e7328 r19035: add LOCAL-REPLACE test
metze
(This used to be commit e95a1ab2cd568ef5492dfae130cb2e937ac15194)
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 46aa8a5e8914184575fa6b9ec9edced8dd615eab)
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 174014d956cb1d246bd07218ea289418195a73fb)
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 2744a0b385f58aaf0b45f33bec0d0a16c09709d7)
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 77e6a09e6b1a313db2bf289ac954fe4393b569fe)
2007-10-10 14:18:24 -05:00