1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-09 20:23:51 +03:00
Commit Graph

409 Commits

Author SHA1 Message Date
Jelmer Vernooij
01befd5211 r21709: Add a list of tests that should be skipped rather than ad-hoc test skipping in various places. 2007-10-10 14:49:16 -05:00
Jelmer Vernooij
38f867880b 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.
2007-10-10 14:49:15 -05:00
Jelmer Vernooij
e4cf8f1dea r21701: Fix ejs tests. 2007-10-10 14:49:15 -05:00
Jelmer Vernooij
aa29907327 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). 2007-10-10 14:49:15 -05:00
Andrew Bartlett
e5b9bdf037 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
2007-10-10 14:49:14 -05:00
Andrew Bartlett
1e401286f9 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
2007-10-10 14:49:13 -05:00
Andrew Bartlett
c399b20b44 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
2007-10-10 14:49:12 -05:00
Andrew Bartlett
e830b81596 r21687: Always test LDAP and LDAPS 2007-10-10 14:49:11 -05:00
Andrew Bartlett
4aa928dac3 r21686: Do enable TLS, as we have solved the key setup problems, and we need
to get the TLS code covered.

Andrew Bartlett
2007-10-10 14:49:11 -05:00
Jelmer Vernooij
0ae6d18ebe r21685: Add some unit tests for the registry utility functions. 2007-10-10 14:49:11 -05:00
Jelmer Vernooij
c6dfc90daf r21680: Reenable CLDAP test 2007-10-10 14:49:09 -05:00
Jelmer Vernooij
4929c07261 r21679: Disable upgrade test for now, I can't get it to work. 2007-10-10 14:49:09 -05:00
Jelmer Vernooij
b8f43e1eb1 r21677: Run some of the other ldap tests, too 2007-10-10 14:49:09 -05:00
Jelmer Vernooij
06eb2faebb r21676: Run more NET tests 2007-10-10 14:49:08 -05:00
Jelmer Vernooij
778a150f35 r21675: Run some more of the NET tests. 2007-10-10 14:49:08 -05:00
Jelmer Vernooij
ef794f03d5 r21673: Fix Samba 3 data read tests. I can't figure out why the upgrade one is broken, so that one is still disabled. 2007-10-10 14:49:08 -05:00
Andrew Bartlett
d214cb1ccf 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
2007-10-10 14:49:04 -05:00
Andrew Tridgell
73da5e368b r21571: added RPC-HANDLES test to make test 2007-10-10 14:48:58 -05:00
Andrew Bartlett
c547bce3d3 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
2007-10-10 14:48:56 -05:00
Andrew Tridgell
d8875c286d 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
2007-10-10 14:48:54 -05:00
Brad Henry
c71dee3402 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.
2007-10-10 14:48:52 -05:00
Brad Henry
2982d9e90c r21522: Stop passing the VM config file path to wintest_2k3_dc.sh on the command line.
Forgot this one in the last commit.
2007-10-10 14:48:50 -05:00
Brad Henry
7496a28b43 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.
2007-10-10 14:48:50 -05:00
Brad Henry
7facfe9247 r21498: Putting the second parameter in quotes so that we accept spaces in the config file path. 2007-10-10 14:48:45 -05:00
Brad Henry
06bf94781e r21495: Pass the VM .vmx file path to wintest_2k3_dc.sh on the command line. 2007-10-10 14:48:44 -05:00
Brad Henry
de9687404e 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.
2007-10-10 14:48:44 -05:00
Brad Henry
a0d1c690de 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!
2007-10-10 14:48:40 -05:00
Brad Henry
76c6c5b8de 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.
2007-10-10 14:48:40 -05:00
Stefan Metzmacher
74ded55787 r21466: run the LDAP-UPTODATEVECTOR test in make test
metze
2007-10-10 14:48:40 -05:00
Andrew Bartlett
1c466c6d6f r21071: Move some of the key path variables into the mk-keyblobs.sh script.
Andrew Bartlett
2007-10-10 14:44:27 -05:00
Andrew Bartlett
ec511c592b 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
2007-10-10 14:44:27 -05:00
Andrew Bartlett
bd564da6b9 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
2007-10-10 14:44:27 -05:00
Jelmer Vernooij
54b6378760 r21066: Fix the build (uninitialised variable). 2007-10-10 14:44:26 -05:00
Andrew Bartlett
92cea0b790 r21043: Work towards allowing Fedora DS to backend Samba4 in 'make test'.
Andrew Bartlett
2007-10-10 14:44:24 -05:00
Jelmer Vernooij
65cb965f11 r21032: Skip two more tests 2007-10-10 14:44:22 -05:00
Jelmer Vernooij
7b160f18b2 r21031: Skip some tests that were not listed previously. 2007-10-10 14:44:22 -05:00
Jelmer Vernooij
2c6cc617f9 r21030: whoops, fix incorrect regex 2007-10-10 14:44:22 -05:00
Jelmer Vernooij
053d5a40bc r21029: - Remove now unused failure checking code
- Use --list option for smbtorture for local and nbt tests as well
2007-10-10 14:44:22 -05:00
Jelmer Vernooij
7de4727ceb r21028: Generate list of tests rather than maintaining it manually. 2007-10-10 14:44:21 -05:00
Jelmer Vernooij
b975ce3a47 r21017: Actually run tests during test phase rather than when generating the recipe. 2007-10-10 14:44:20 -05:00
Andrew Bartlett
413df7114e r20997: Add in more certificate and key blobs, to enable PKINIT.
To automaticly test this, we need to decide if we should ship kinit
(and possibly and hxtool).

Andrew Bartlett
2007-10-10 14:44:19 -05:00
Jelmer Vernooij
9da63e362c r20967: Allow pidl tests to work with gcov 2007-10-10 14:44:04 -05:00
Jelmer Vernooij
0f34c67fff r20963: remove unused functions, run LOCAL-TDR by default 2007-10-10 14:44:04 -05:00
Jelmer Vernooij
3cc299dbbe r20830: merge mgmt work 2007-10-10 14:43:37 -05:00
Jelmer Vernooij
e4691447c4 r20822: Fix total failure counting. 2007-10-10 14:43:36 -05:00
Jelmer Vernooij
842637f78b r20756: Update to use generated recipes. 2007-10-10 14:40:45 -05:00
Jelmer Vernooij
bbe00636a9 r20755: Add progress indicator to test runner 2007-10-10 14:40:44 -05:00
Jelmer Vernooij
f288ca5f68 r20754: Simplify code for calculating total number of failed tests. 2007-10-10 14:40:44 -05:00
Jelmer Vernooij
d31d16e4eb r20750: Use files in script/tests to build a recipe rather than running the tests immediately. 2007-10-10 14:40:42 -05:00
Jelmer Vernooij
2794af5726 r20748: Add file I forgot to commit 2007-10-10 14:40:36 -05:00