1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

301 Commits

Author SHA1 Message Date
Andrew Bartlett
5f2f653dcb r21745: indent
(This used to be commit 7841b29906)
2007-10-10 14:49:22 -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 38f867880b)
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 37c0da541e)
2007-10-10 14:44:48 -05:00
Jelmer Vernooij
f7fb1e442d r21066: Fix the build (uninitialised variable).
(This used to be commit 54b6378760)
2007-10-10 14:44:26 -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
78aa439426 r19556: Remove unused option.
(This used to be commit 827af86549)
2007-10-10 14:24:50 -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
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
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
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
aeee137f80 r18994: - torture_register_suite should be public
- some whitespace cleanups

metze
(This used to be commit 49755f2224)
2007-10-10 14:20:27 -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
James Peach
0168e973d8 r16557: Silently succeed when torture_register_suite is passed NULL.
(This used to be commit dbcb190aa0)
2007-10-10 14:09:34 -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
a3545383fb r16331: Split out registering of multi fn tests, fix typo in name of pac suite.
(This used to be commit 9e8574ac6c)
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
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
Volker Lendecke
c1cbe6e0b0 r16149: This is a very Samba3 specific test: It tests whether 'hide unreadable' and
'hide unwriteable files' actually do what they are supposed to do.

Volker
(This used to be commit 7bf02a5e0f)
2007-10-10 14:09:01 -05:00
Stefan Metzmacher
d494c66ca7 r15957: - add a test that fetches the schema from an windows LDAP server,
and stores it into structures.
- this prints out some useful information on the screen about
  attributes (will be extended for objectClasses too)
- the plan is to create hide the relation of structures behind an interface
  we can later use this interface in a lot of places:
  - our schema module for ldb
  - the ndr_print code for DsGetNCChanges, to translate the uint32 attribute
    and objectClass id's into names, display attribute values depending on the
    attribute syntax
  - ...

metze
(This used to be commit 1908f0cd62)
2007-10-10 14:08:45 -05:00
Jelmer Vernooij
aecb20a264 r15892: Remove the COM management code - DCOM should be
based on Mono and its' COM support and utilize Samba's DCE/RPC + ORPC code
instead of having our own COM implementation in Samba, which is too much
work to implement and harder to code (C).

This only removes some of the code that I started working on to implement
the bits of COM I thought were needed to support DCOM from just Samba. This
code has never functioned properly, contains a couple of nasty hacks and
there should be no reason to pick it up again later, the processes are all
documented in the DCOM whitepaper.

This does NOT remove the marshalling code for the ORPC code or the torture
code that tested some of the ORPC code.
(This used to be commit 11df14219b)
2007-10-10 14:08:37 -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
Stefan Metzmacher
20532d7c49 r15816: add SMB2-LOCK torture test, which demonstrates what possible valid and invalid
requests you can do with it

metze
(This used to be commit adef1372c1)
2007-10-10 14:08:27 -05:00
Jelmer Vernooij
3ebaf4ca29 r15594: Remove another unused include
(This used to be commit 0c07898871)
2007-10-10 14:06:02 -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
Andrew Tridgell
72343b9615 r15014: added a simple batch oplock benchmark
Jeremy, Samba3 currently fails this test with a 2.6.16-rc6 kernel and
kernel oplocks enabled. With kernel oplock off it passes, though its a
bit slow
(This used to be commit 99df202460)
2007-10-10 14:04:01 -05:00
Stefan Metzmacher
9845c8c475 r14817: rename some tests
tridge: is SCAN-EAMAX ok?

metze
(This used to be commit d8529ec2ee)
2007-10-10 13:59:23 -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
Jelmer Vernooij
d09b70c98b r14527: Fix build problems.
(This used to be commit 863ca4014d)
2007-10-10 13:57:37 -05:00
Jelmer Vernooij
2584a532e0 r14525: Sort list of torture tests alphabetically
(This used to be commit 48941ecc87)
2007-10-10 13:57:37 -05:00
Jelmer Vernooij
c67fd3f0e8 r14524: Make TORTURE_NET a separate module
Add new header for torture utility functions, so torture.h doesn't
need to depend on the SMB libraries
(This used to be commit ab162bcafc)
2007-10-10 13:57:36 -05:00
Jelmer Vernooij
52b410401a r14520: Split up smbtorture binary into a core (torture.c) and UI frontend (smbtorture.c)
(This used to be commit 7f9c11e7b1)
2007-10-10 13:57:36 -05:00
Jelmer Vernooij
df891410f1 r14519: Put base registration in a seperate file, as well as some
of the base tests that were currently in torture.c
(This used to be commit 4e7c3c7e1f)
2007-10-10 13:57:36 -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
Stefan Metzmacher
72017b0183 r14437: fix warnings
metze
(This used to be commit 2017c2573e)
2007-10-10 13:57:24 -05:00
Jelmer Vernooij
eefe30b7d8 r14379: Build torture/rpc/ as a seperate smbtorture module. Move helper
functions for rpc out of torture/torture.c
(This used to be commit 1d2d970f3b)
2007-10-10 13:57:16 -05:00
Jelmer Vernooij
3f16241a1d r14363: Remove credentials.h from the global includes.
(This used to be commit 98c4c30513)
2007-10-10 13:57:14 -05:00
Jelmer Vernooij
42e919b3b0 r14347: Add registration function to allow registering smbtorture test(suites)
Fix mechanism for breaking lines when printing test names.
(This used to be commit c1061f5fe4)
2007-10-10 13:57:13 -05:00
Stefan Metzmacher
a1b295ed48 r14256: - rename smb_file -> smb_handle
- move it into the in/out substructs again
- allow file.path only on smb_fileinfo/smb_setfileinfo

metze
(This used to be commit be6d5298a2)
2007-10-10 13:57:06 -05:00
Stefan Metzmacher
307e43bb56 r14173: change smb interface structures to always use
a union smb_file, to abtract
- const char *path fot qpathinfo and setpathinfo
- uint16_t fnum for SMB
- smb2_handle handle for SMB2

the idea is to later add a struct ntvfs_handle *ntvfs
so that the ntvfs subsystem don't need to know the difference between SMB and SMB2

metze
(This used to be commit 2ef3f59709)
2007-10-10 13:56:57 -05:00
Stefan Metzmacher
e6023d44bc r14140: block SIGPIPE in smbtorture
hopefully this fixed the problems with BASE-NEGNOWAIT

metze
(This used to be commit 45441954d0)
2007-10-10 13:56:54 -05:00
Stefan Metzmacher
a9fd2d7f42 r14040: report errors better
metze
(This used to be commit 10cd4dbac9)
2007-10-10 13:52:38 -05:00
Stefan Metzmacher
959c419182 r14039: as samba4 drops the connection on multiple negprot requests
make the BASE-NEGNOWAIT tests more robust.

was it correct that the important thing to test in this
test is that the 2nd connection works fine?

metze
(This used to be commit f941e74864)
2007-10-10 13:52:37 -05:00
Jelmer Vernooij
4ac2be9958 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
(This used to be commit 1228358767)
2007-10-10 13:52:24 -05:00
Jelmer Vernooij
ba564a901e r13903: Don't generate prototypes for modules and binaries in include/proto.h by
default.
(This used to be commit c80a8f1102)
2007-10-10 13:52:21 -05:00
Andrew Tridgell
ec16146601 r13853: fixed the BASE-NEGNOWAIT test to not fail with a sigpipe if the server
drops the connection on multiple negprots
(This used to be commit 34b2855a62)
2007-10-10 13:52:16 -05:00
Jelmer Vernooij
5d0aa16dfc r13839: Use registration mechanism for backends as well (in the same sense
my previous patch added it for modules). This is the next step towards
LDB backends and modules as run-time loadable .so files.
(This used to be commit fb2f70de4f)
2007-10-10 13:52:14 -05:00