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

906 Commits

Author SHA1 Message Date
Andrew Bartlett
d500181515 r21741: Like starting smbd, ensure we have acutally started slapd, and it is
listening, before we continue.

Andrew Bartlett
(This used to be commit 171540e06a3eb42320238ad81bc9993e86137dc7)
2007-10-10 14:49:21 -05:00
Andrew Bartlett
41a72a506f r21739: Make it easy to change the log level for the slapd processes, and have
the logs go to a file.

Andrew Bartlett
(This used to be commit 9aaa19319718a5a8fcc1df066cbce67eaa3431d8)
2007-10-10 14:49:21 -05:00
Andrew Tridgell
b0b31f52f7 r21735: skip the smbclient test until jelmer can take a look at it. The
current test makes no sense with the new test system. For example, it
does "mkdir bla" then "cd bla" then "cd ..", but it now does these as
separate smbclient commands, which makes no sense at all. It even
seems to try to run them in parallel???

The test fails (segfault, plus lots of errors), but gets reported as a
success
(This used to be commit 9e3bbdee50a5372fa79c493c1cf1c378f1068467)
2007-10-10 14:49:20 -05:00
Jelmer Vernooij
eaa02e4b54 r21733: Merge testenv back into core selftest.pl
(This used to be commit 4b78ed3a606b6697512f1e4e9b9c6c93816e71f8)
2007-10-10 14:49:20 -05:00
Jelmer Vernooij
8fdbf34ea7 r21732: Use smbtorture for enumerating tests.
(This used to be commit f6aa921521ab6b091823643b7df30d2f5af620ab)
2007-10-10 14:49:20 -05:00
Jelmer Vernooij
f91f57b749 r21730: Reintroduce summary for testenv, remove old (no longer used) file.
(This used to be commit 0140aa5fd9e634620d42b8c4cdd4f43c6b681102)
2007-10-10 14:49:19 -05:00
Andrew Bartlett
904c03abc4 r21728: Perhaps we don't need this on recent OpenLDAP servers. This overlay
is depricated.

Andrew Bartlett
(This used to be commit 32e39b377ac3b3592c226428728c4238f6c9f8f0)
2007-10-10 14:49:19 -05:00
Andrew Bartlett
0fa6e86b57 r21721: Push the 'Success! Your new directory server instance was created'
message to stderr.

Andrew Bartlett
(This used to be commit 0b8b3f66716a8602438d9e9268c25ea14c2f564f)
2007-10-10 14:49:18 -05:00
Andrew Bartlett
6376a474c7 r21720: Try to make 'TEST_LDAP=yes make test' work again. These recent
changes seem to have been lost in the merge, and some variables were
not yet exported.

Andrew Bartlett
(This used to be commit ee9d9fb6c0bd3d4d01dea771025536ff83057072)
2007-10-10 14:49:18 -05:00
Jelmer Vernooij
ac9bb2e4fb r21716: Report status in a way the build farm recognizes.
(This used to be commit 8d775e87b58d3f6d87338197728530c94b8c841b)
2007-10-10 14:49:17 -05:00
Jelmer Vernooij
70e6a8bfec r21713: Redirect stderr output to stdout.
(This used to be commit a5000b286d6ffb847edf47404f82ff93173208c4)
2007-10-10 14:49:17 -05:00
Jelmer Vernooij
15d4047d06 r21712: Run tdb stress test.
(This used to be commit e480beb9569421da103aafb440eb687daa2359f3)
2007-10-10 14:49:16 -05:00
Jelmer Vernooij
804ac30704 r21709: Add a list of tests that should be skipped rather than ad-hoc test skipping in various places.
(This used to be commit 01befd52111b8c183d78f9e0d80065fe0825b87c)
2007-10-10 14:49:16 -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
d18afd6aee r21701: Fix ejs tests.
(This used to be commit e4cf8f1dea9063b9b83e629ea0e7a116bf4fc5f7)
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
6bca66d7d1 r21696: Run the RPC-COUNTCALLS test to try and walk some of the NDR layer for
routines for which we don't have any tests.

Andrew Bartlett
(This used to be commit e5b9bdf03729a913f3c6cc7709abcbdf50899562)
2007-10-10 14:49:14 -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
eb3d3fb27a r21689: Try to walk a bit more of the param/loadparm.c functions, as well as
validating that we have a correct configuration before we even start
testing.

Andrew Bartlett
(This used to be commit c399b20b44d396dea69ed81b7d80982611ed25e4)
2007-10-10 14:49:12 -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
Andrew Bartlett
737d24c9fc r21686: Do enable TLS, as we have solved the key setup problems, and we need
to get the TLS code covered.

Andrew Bartlett
(This used to be commit 4aa928dac3797664c498094f171ef111f10ab30a)
2007-10-10 14:49:11 -05:00
Jelmer Vernooij
d693c2707b r21685: Add some unit tests for the registry utility functions.
(This used to be commit 0ae6d18ebe382a378ff1dc65069c629d8060ac2b)
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
e8fe61e7ae r21679: Disable upgrade test for now, I can't get it to work.
(This used to be commit 4929c07261443887608a845de16f1fb786efb7ba)
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
Jelmer Vernooij
2de3bbbdb0 r21676: Run more NET tests
(This used to be commit 06eb2faebb331e9385f39b27e82e399d34b8b938)
2007-10-10 14:49:08 -05:00
Jelmer Vernooij
a42b35a4c5 r21675: Run some more of the NET tests.
(This used to be commit 778a150f35152ae435632434561fb205d25bc604)
2007-10-10 14:49:08 -05:00
Jelmer Vernooij
99fb785ea1 r21673: Fix Samba 3 data read tests. I can't figure out why the upgrade one is broken, so that one is still disabled.
(This used to be commit ef794f03d50022a77303c77045a04d9407d07cbc)
2007-10-10 14:49:08 -05:00
Andrew Bartlett
b9df742fb4 r21649: Update self test scripts to start Fedora DS. This requires current
Fedora DS CVS, plus changes to split up 00core.ldif.

Now we 'just' need to work to make the tests pass...

Andrew Bartlett
(This used to be commit d214cb1ccf1b30cd5cb81f98382626c609b23fa3)
2007-10-10 14:49:04 -05:00
Andrew Tridgell
084978b6b4 r21618: an attempt to fix the problem with lcov and yacc generated C code
(This used to be commit e9d17b5ba0846fbe47b5e4001f5f6394884961d1)
2007-10-10 14:49:03 -05:00
Andrew Tridgell
3d61a1bbdd r21571: added RPC-HANDLES test to make test
(This used to be commit 73da5e368ba2307051320cd8cb70b3bd8bd04089)
2007-10-10 14:48:58 -05:00
Andrew Bartlett
ad3b40d258 r21554: Use a snippet from tridge's junkcode to cause us to wait for smbd to
exit.

If we kill smbd right away, we can interrupt the gcov data file
writeout.  Instead, we now wait up to 20 seconds for the process to
exit, before sending it a kill -9.

Andrew Bartlett
(This used to be commit c547bce3d305f64d65961051e6462b8c83871f38)
2007-10-10 14:48:56 -05:00
Andrew Tridgell
60fd088c48 r21535: - fixed a crash in the RAW-ACLS test. When a dcerpc_pipe is created
using the pattern in the clilsa code, it didn't fill in the p->binding
structure. This affects nearly all users of dcerpc_pipe_open_smb(), so
the simplest fix is to ensure that dcerpc_pipe_open_smb() initialises
the binding if its not already there.

- re-enable the RAW-ACLS test
(This used to be commit d8875c286d2be49c01703d8fd58bbc1842054bd9)
2007-10-10 14:48:54 -05:00
Brad Henry
c7e06e88ae r21528: This file gets called by testit(), so it shouldn't call testit().
NET tests against Windows weren't getting run, testit() here just created a recipe.
(This used to be commit c71dee34025b152d1af209b06023e30d2539fbc0)
2007-10-10 14:48:52 -05:00
Brad Henry
59d5e6a1b0 r21522: Stop passing the VM config file path to wintest_2k3_dc.sh on the command line.
Forgot this one in the last commit.
(This used to be commit 2982d9e90c26a78fb4a38ecaa65c192f5f764bf3)
2007-10-10 14:48:50 -05:00
Brad Henry
74e23c7e7a r21521: Add missing quotes around shell variables which could have spaces.
Stop passing the VM config file path to wintest_2k3_dc.sh on the command line as it is now properly passed through the environment.

Windows tests, including the DC tests found in test_w2k3.sh should work properly with 'make wintest' and a configured VMware environment.
These tests are executed on build-farm host bnhtest.
(This used to be commit 7496a28b4388535a426ca753bc9000670f6e42e1)
2007-10-10 14:48:50 -05:00
Brad Henry
f3ec806997 r21498: Putting the second parameter in quotes so that we accept spaces in the config file path.
(This used to be commit 7facfe9247e98421e998092482f52db05228ace6)
2007-10-10 14:48:45 -05:00
Brad Henry
81adf162a8 r21495: Pass the VM .vmx file path to wintest_2k3_dc.sh on the command line.
(This used to be commit 06bf94781e688c57f625161722e0a25af5a8d2e3)
2007-10-10 14:48:44 -05:00
Brad Henry
48b0dabdba r21494: Fix 'make wintest' to support command-line changes to 'vm-get-ip.pl' and the revertsnapshot() shell function.
Restructure existing tests to work with the recent build farm changes.
Added windows DC testing to 'make wintest'.
Some improvements and generalization to the way errors are handled.
(This used to be commit de9687404e802d7e7629c9d03f496d3c5bd30397)
2007-10-10 14:48:44 -05:00
Brad Henry
7819f9b668 r21475: Updated vm_get_ip.pl to read the name of the environment variable containing the VM path from the command line.
wintest_2k3_dc.sh is a new script which will run a group of tests against a Windows 2003 DC.
The group of tests to run should be passed in on the command line.
These tests were taken from the source/script/tests/test_win2k3.sh script.

tests_win2k3_dc.sh is a new script intended to be called by 'make wintest_dc' (patch to source/main.mk forthcoming).
This is intended to provide the basis for Windows 2003 DC testing in the build farm.

In order to use these tests, you should have a DC setup as a VM in VMware server.

This process is not automated yet, but can be done by following a few steps:

1. Prepare a Windows 2003 VM in VMware Server by downloading and extracting:
		svn://svn.samba.org/home/svn/samba/branches/SOC/bnh/vm_setup.tar.gz
	and following the instructions in the README file.

2. Copying the following file onto the filesystem of the VM configured in step 1:
		svn://svn.samba.org/home/svn/samba/branches/SOC/bnh/dcpromo_2k3dc_newdomain.answerfile.txt
	and use it to promote the VM.
	For example: "dcpromo /answer:<path to answerfile>"

3. On the system you are testing from, set the environment variable WINTESTCONF, and SRCDIR.
	WINTESTCONF should point to the path of a test_win.conf file modified for your environment.
	There's a default copy in source/script/tests/win/test_win.conf.
	SRCDIR should point to the base of your Samba 4 source tree.

At that point, you should be able to run wintest_2k3_dc.sh by passing a group of tests at the command line.
For example: source/script/tests/win/wintest_2k3_dc.sh RPC-DRSUAPI

Sorry for the long-winded commit message!
(This used to be commit a0d1c690de2e58eddf5517eb974e09c2bba23605)
2007-10-10 14:48:40 -05:00
Brad Henry
23c36460e1 r21473: Added new parameters to test_win.conf that apply only to the DC tests.
Made the restore_snapshot() routine in wintest_functions.sh more robust.
This change would have broken the existing windows tests, if they weren't already broken.

Will fix those once the windows DC tests are committed and working in the build farm.
(This used to be commit 76c6c5b8de58618ac013f5b26a6aafc98e15f57c)
2007-10-10 14:48:40 -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
0515f728e6 r21433: Get rid of the COM support code - it's not used and unmaintained. We can
always bring it back if we need to. This code was getting in the way while
refactoring.

Add some tests for TDR.

Get rid of typedef in lib/registry/tdr_regf.idl and fix the
TDR code to be able to deal with it.
(This used to be commit 1ad0f99a439f0d52a735b391bf9900d50171aca5)
2007-10-10 14:48:33 -05:00
Andrew Bartlett
b9f11e3bc9 r21071: Move some of the key path variables into the mk-keyblobs.sh script.
Andrew Bartlett
(This used to be commit 1c466c6d6f02bf76f7f68e7dcd3d9a4c2a63179a)
2007-10-10 14:44:27 -05:00
Andrew Bartlett
ae174faf36 r21069: Try to split up the mktestsetup.sh script into parts to deal with each
LDAP implementation, and another to hold the key blobs.

Also fix the OpenLDAP test.

Andrew Bartlett
(This used to be commit ec511c592bbb7df513fe6f62e06e1fa984431550)
2007-10-10 14:44:27 -05:00
Andrew Bartlett
5e12e00249 r21068: Code to configure, start and stop Fedora DS.
We can't actually use it, as we are stuck inside our socket_wrapper
network, and can't talk to it.

Andrew Bartlett
(This used to be commit bd564da6b9b45c438ef81b42dc156116ed81cbe7)
2007-10-10 14:44:27 -05:00
Jelmer Vernooij
f7fb1e442d r21066: Fix the build (uninitialised variable).
(This used to be commit 54b63787606f392e094fe28c2536999c34f76f44)
2007-10-10 14:44:26 -05:00
Jelmer Vernooij
cf09c00c4e r21055: Fix executable bit.
(This used to be commit 7512270ffae4e72d70f6ca347f09708f1bf915ad)
2007-10-10 14:44:26 -05:00
Andrew Bartlett
9676f4ce4c r21043: Work towards allowing Fedora DS to backend Samba4 in 'make test'.
Andrew Bartlett
(This used to be commit 92cea0b79011e9b86ab7e782c83ad5964a5925bd)
2007-10-10 14:44:24 -05:00
Jelmer Vernooij
2096b36411 r21038: Move commands to distclean target
(This used to be commit 6713945fbab2df5b695c11df623f16d0abd1a772)
2007-10-10 14:44:23 -05:00