1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-03 17:05:54 +03:00

34 Commits

Author SHA1 Message Date
Jelmer Vernooij
86d77746db r21910: Clean up some unused functions.
(This used to be commit 36cd3406db06e3101cfede2f3935879cb11eeb93)
2007-10-10 14:49:38 -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
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
000a094318 r21700: Run mktestsetup as an external program. This guarantees that it can be used for other selftest implementations (in particular the perl one I've been working on).
(This used to be commit aa29907327a91a64c769b1f2712f553e13964418)
2007-10-10 14:49:15 -05:00
Andrew Bartlett
32cdb5aa31 r21692: Test with LDAP, but without the non-block testing. This is not
compatible with the TLS layer at the moment.

https://bugzilla.samba.org/show_bug.cgi?id=4431

Andrew Bartlett
(This used to be commit 1e401286f94897f83d89d1a87027e988eb6deac5)
2007-10-10 14:49:13 -05:00
Andrew Bartlett
112e520073 r21687: Always test LDAP and LDAPS
(This used to be commit e830b815962da575aea9f9dc6bfee8eda8ec43c9)
2007-10-10 14:49:11 -05:00
Jelmer Vernooij
1ec8f79bae r21680: Reenable CLDAP test
(This used to be commit c6dfc90daf9c7ce0fe9a4d4ac7c1c278a694ef9f)
2007-10-10 14:49:09 -05:00
Jelmer Vernooij
a4a9772e2c r21677: Run some of the other ldap tests, too
(This used to be commit b8f43e1eb1f626690df61e75ce1a06a94d19cf64)
2007-10-10 14:49:09 -05:00
Stefan Metzmacher
a9a13949d8 r21466: run the LDAP-UPTODATEVECTOR test in make test
metze
(This used to be commit 74ded55787d6dee55e87bd55a4f152fa2e8dbeab)
2007-10-10 14:48:40 -05:00
Jelmer Vernooij
37a13964ef r21029: - Remove now unused failure checking code
- Use --list option for smbtorture for local and nbt tests as well
(This used to be commit 053d5a40bc96b9503220f17f59677a0df6677a1e)
2007-10-10 14:44:22 -05:00
Jelmer Vernooij
48bb9bc6cd r21017: Actually run tests during test phase rather than when generating the recipe.
(This used to be commit b975ce3a471d29fb2c0691c65993f9dfeb066d79)
2007-10-10 14:44:20 -05:00
Andrew Tridgell
768af9b576 r18577: reduce the number of tests run in 'make quicktest' again, so it
completes in a minute on my laptop (the benchmark I usually use).

Simo, I removed th ldb tests, as ldb is pretty well tested by lots of
the other tests, and its a pretty slow test. We could instead add a
"ldb-testquick.sh" which does only minimal testing. The full tests
will of course be run with 'make test' and in the build farm.
(This used to be commit 3cee6a7863bba61c92f94087df5c6442f02a2da7)
2007-10-10 14:18:50 -05:00
Andrew Bartlett
9e854f2f86 r17169: Test LDAP with testnonblock.
Andrew Bartlett
(This used to be commit 9d866a030ea75b9589c3332725d23ba5f0e9669d)
2007-10-10 14:10:15 -05:00
Andrew Bartlett
4515708b81 r13605: Use $BASEDN to ensure this works outside of the 'make test' rig.
Andrew Bartlett
(This used to be commit b0e7a58cc9e513240c117ad5464c613c7b62410d)
2007-10-10 13:51:58 -05:00
Simo Sorce
289a5994a9 r13355: check controls are correctly exported
(This used to be commit 07fa55db32dcb93bfb4406baca0cfba31d3bc189)
2007-10-10 13:51:48 -05:00
Simo Sorce
3721bca79d r13354: Add tests to check that controls work properly
Fix asq module, add a second_stage_init to register with rootdse
Fix asq control ldap parsing routines (this was nasty to find out)
(This used to be commit 933a80397d137f7d5b79c82a068d62bb6928ef47)
2007-10-10 13:51:48 -05:00
Andrew Tridgell
92da5aa6b8 r10752: make sure we set the exist status correctly for the tdb tests
(This used to be commit e83635941c1829d8cb8c0784b7f7303c85654199)
2007-10-10 13:39:26 -05:00
Andrew Tridgell
d6de10b409 r10404: make sure we use the right smb.conf in the ldap testing
(This used to be commit aa30f8faa5924c29c81193646205b08922cdd43d)
2007-10-10 13:38:41 -05:00
Andrew Tridgell
b19ad7281e r9493: our test scripts need to use testok at the end or the errors don't annumulate between scripts
this is why the GetOptions bug wasn't caught by 'make test'
(This used to be commit 20a14b9b35c928a592cf03ebedbc6c89f756af28)
2007-10-10 13:34:21 -05:00
Andrew Tridgell
5bf803ff82 r9346: allow test_ldap.sh to be called when $CONFFILE is not set
(This used to be commit 3ad02091f621e3ff51aa082ca7a47b9da238aa40)
2007-10-10 13:33:26 -05:00
Andrew Bartlett
493fd92b20 r8772: Include the ldap ejs test in the standard 'make test'
Andrew Bartlett
(This used to be commit 4ade880dcf3aa78f5934345e587cd54851378261)
2007-10-10 13:30:03 -05:00
Andrew Tridgell
1735037d5f r8525: added two more test targets:
- 'make quicktest' for running only quick tests. Finishes in 20
   seconds or so.

 - 'make valgrindtest' runs smbd under valgrind in a xterm window and
   runs the quick tests. Also disables tls as that slows down valgrind
   too much to be usable
(This used to be commit af36bc401154d278dbe272628110634f62fdba25)
2007-10-10 13:29:35 -05:00
Andrew Tridgell
93e2baaf76 r8040: run ldb test suite as part of samba 'make test'
(This used to be commit 3671459d9a4b4409904adff57548dd35da6afd42)
2007-10-10 13:19:01 -05:00
Andrew Tridgell
033def25af r7906: some portability fixes for ldap testing on solaris (solaris grep doesn't handle ^)
(This used to be commit b196502ffbe24c8dcdce17dfcea79cd98e7ad3cb)
2007-10-10 13:18:48 -05:00
Andrew Tridgell
48e731000c r7774: put $CONFIGURATION in one more place
(This used to be commit 5e35c7a5512363a6f6028beb387dd4c9d94965c8)
2007-10-10 13:18:34 -05:00
Andrew Tridgell
44e7892131 r7772: actually give the auth options to ldbsearch ....
(This used to be commit 29edfb93829f1b940b741d001551e70e4380c830)
2007-10-10 13:18:34 -05:00
Andrew Tridgell
720c8a8831 r7771: - added ldaps and NTLMSSP testing to ldap tests
- added testing of extended search operations
(This used to be commit 2dc511b09cf1c912de140c07db64c9b151c3d23f)
2007-10-10 13:18:34 -05:00
Andrew Tridgell
134a3075dd r7760: make client tools get the right config file in 'make test'
(This used to be commit 13fc167211272f5dba3540202f5842573178b740)
2007-10-10 13:18:32 -05:00
Andrew Tridgell
7dcb8c26de r7721: solve a problem with null arguments to testit()
(This used to be commit 73a21737cea295c09255997e5830c68ad390a4de)
2007-10-10 13:18:26 -05:00
Andrew Tridgell
c04d826182 r7678: fixed typo
(This used to be commit df29f25140192b64b55012d0a3c36095fbbfb82d)
2007-10-10 13:18:21 -05:00
Andrew Tridgell
08e23b36cb r7671: added ldap testing to the set of standard tests
(This used to be commit dcdf44024aa93e7eca54247d9058904c6950fae7)
2007-10-10 13:18:20 -05:00
Andrew Tridgell
3a3947cd86 r7495: used --maximum-runtime=300 for each smbtorture call, to prevent it
running too long
(This used to be commit 3d70755abfb7764379d648e9bc1697ae9289d02b)
2007-10-10 13:18:00 -05:00
Andrew Tridgell
e87dd1091a r6877: added CLDAP testing to test_ldap.sh
(This used to be commit b64936b9a9123da0335a67865fb356dde9753714)
2007-10-10 13:16:53 -05:00
Andrew Tridgell
060ea52989 r6549: a simple ldap test script
(This used to be commit e2f5d36e47cab2e9bc199b743ab6d5a040e6e175)
2007-10-10 13:16:25 -05:00