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

754 Commits

Author SHA1 Message Date
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 9e3bbdee50)
2007-10-10 14:49:20 -05:00
Jelmer Vernooij
eaa02e4b54 r21733: Merge testenv back into core selftest.pl
(This used to be commit 4b78ed3a60)
2007-10-10 14:49:20 -05:00
Jelmer Vernooij
8fdbf34ea7 r21732: Use smbtorture for enumerating tests.
(This used to be commit f6aa921521)
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 0140aa5fd9)
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 32e39b377a)
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 0b8b3f6671)
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 ee9d9fb6c0)
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 8d775e87b5)
2007-10-10 14:49:17 -05:00
Jelmer Vernooij
70e6a8bfec r21713: Redirect stderr output to stdout.
(This used to be commit a5000b286d)
2007-10-10 14:49:17 -05:00
Jelmer Vernooij
15d4047d06 r21712: Run tdb stress test.
(This used to be commit e480beb956)
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 01befd5211)
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 38f867880b)
2007-10-10 14:49:15 -05:00
Jelmer Vernooij
d18afd6aee r21701: Fix ejs tests.
(This used to be commit e4cf8f1dea)
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 aa29907327)
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 e5b9bdf037)
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 1e401286f9)
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 c399b20b44)
2007-10-10 14:49:12 -05:00
Andrew Bartlett
112e520073 r21687: Always test LDAP and LDAPS
(This used to be commit e830b81596)
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 4aa928dac3)
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 0ae6d18ebe)
2007-10-10 14:49:11 -05:00
Jelmer Vernooij
1ec8f79bae r21680: Reenable CLDAP test
(This used to be commit c6dfc90daf)
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 4929c07261)
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 b8f43e1eb1)
2007-10-10 14:49:09 -05:00
Jelmer Vernooij
2de3bbbdb0 r21676: Run more NET tests
(This used to be commit 06eb2faebb)
2007-10-10 14:49:08 -05:00
Jelmer Vernooij
a42b35a4c5 r21675: Run some more of the NET tests.
(This used to be commit 778a150f35)
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 ef794f03d5)
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 d214cb1ccf)
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 e9d17b5ba0)
2007-10-10 14:49:03 -05:00
Andrew Tridgell
3d61a1bbdd r21571: added RPC-HANDLES test to make test
(This used to be commit 73da5e368b)
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 c547bce3d3)
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 d8875c286d)
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 c71dee3402)
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 2982d9e90c)
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 7496a28b43)
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 7facfe9247)
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 06bf94781e)
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 de9687404e)
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 a0d1c690de)
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 76c6c5b8de)
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 74ded55787)
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 1ad0f99a43)
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 1c466c6d6f)
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 ec511c592b)
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 bd564da6b9)
2007-10-10 14:44:27 -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
Andrew Bartlett
9676f4ce4c r21043: Work towards allowing Fedora DS to backend Samba4 in 'make test'.
Andrew Bartlett
(This used to be commit 92cea0b790)
2007-10-10 14:44:24 -05:00
Jelmer Vernooij
2096b36411 r21038: Move commands to distclean target
(This used to be commit 6713945fba)
2007-10-10 14:44:23 -05:00
Jelmer Vernooij
96c3cb957b r21032: Skip two more tests
(This used to be commit 65cb965f11)
2007-10-10 14:44:22 -05:00
Jelmer Vernooij
6676d7cfc7 r21031: Skip some tests that were not listed previously.
(This used to be commit 7b160f18b2)
2007-10-10 14:44:22 -05:00
Jelmer Vernooij
32dd550d19 r21030: whoops, fix incorrect regex
(This used to be commit 2c6cc617f9)
2007-10-10 14:44:22 -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 053d5a40bc)
2007-10-10 14:44:22 -05:00
Jelmer Vernooij
5c847a00a7 r21028: Generate list of tests rather than maintaining it manually.
(This used to be commit 7de4727ceb)
2007-10-10 14:44:21 -05:00
Andrew Bartlett
a3c2bc4ba0 r21026: Add a helpful script to do the things we need to do to make a release
tarball.

Andrew Bartlett
(This used to be commit 5975229043)
2007-10-10 14:44:21 -05:00
Jelmer Vernooij
48bb9bc6cd r21017: Actually run tests during test phase rather than when generating the recipe.
(This used to be commit b975ce3a47)
2007-10-10 14:44:20 -05:00
Andrew Bartlett
0eea5a66b4 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
(This used to be commit 413df7114e)
2007-10-10 14:44:19 -05:00
Jelmer Vernooij
fe938ca91f r20967: Allow pidl tests to work with gcov
(This used to be commit 9da63e362c)
2007-10-10 14:44:04 -05:00
Jelmer Vernooij
c471abbcfe r20963: remove unused functions, run LOCAL-TDR by default
(This used to be commit 0f34c67fff)
2007-10-10 14:44:04 -05:00
Jelmer Vernooij
615895332a r20830: merge mgmt work
(This used to be commit 3cc299dbbe)
2007-10-10 14:43:37 -05:00
Jelmer Vernooij
6688846ee1 r20822: Fix total failure counting.
(This used to be commit e4691447c4)
2007-10-10 14:43:36 -05:00
Jelmer Vernooij
10e1a80b9e r20756: Update to use generated recipes.
(This used to be commit 842637f78b)
2007-10-10 14:40:45 -05:00
Jelmer Vernooij
0eb967cd41 r20755: Add progress indicator to test runner
(This used to be commit bbe00636a9)
2007-10-10 14:40:44 -05:00
Jelmer Vernooij
5ae1175460 r20754: Simplify code for calculating total number of failed tests.
(This used to be commit f288ca5f68)
2007-10-10 14:40:44 -05:00
Jelmer Vernooij
727748bee8 r20750: Use files in script/tests to build a recipe rather than running the tests immediately.
(This used to be commit d31d16e4eb)
2007-10-10 14:40:42 -05:00
Jelmer Vernooij
70dbcf6d69 r20748: Add file I forgot to commit
(This used to be commit 2794af5726)
2007-10-10 14:40:36 -05:00
Jelmer Vernooij
f60f9de6a8 r20747: Move cifsdd to blackbox section
(This used to be commit 96ac1c62ee)
2007-10-10 14:40:36 -05:00
Jelmer Vernooij
d9665a737b r20746: Don't report each individual test in test_smbclient as a single testsuite.
Create separate directory for blackbox tests.
(This used to be commit 7e6357f213)
2007-10-10 14:40:36 -05:00
Jelmer Vernooij
1d1315adcd r20739: Add more command-line options.
(This used to be commit 8ca927f888)
2007-10-10 14:40:35 -05:00
Jelmer Vernooij
1e29e06d80 r20737: Add option parsing.
(This used to be commit b1719ebf38)
2007-10-10 14:40:35 -05:00
Jelmer Vernooij
5f450fbd9a r20696: Print mktestsetup errors to stderr rather than to either stderr or stdout.
Instead, print variables for the setup created to mktestsetup's stdout.
(This used to be commit b7fd9645f5)
2007-10-10 14:40:24 -05:00
Jelmer Vernooij
c827955d80 r20693: Add reimplementation of selftest in perl. Once this has been tested
more properly, I hope to use this as a replacement for the existing
file.
(This used to be commit 1e013aba76)
2007-10-10 14:40:23 -05:00
Derrell Lipman
d0d846cd9b r20519: Web Application Framework
- No path given to web server means use old scripts (missed check-in)

- Build Web Application (qooxdoo stuff) from autogen.sh since python isn't
  available or is differently-configured on various build-farm machines

- Don't continually check in generated files

- Properly identify SWAT "Statistics" module as "Status and Statistics"
(This used to be commit 9d89b7663a)
2007-10-10 14:36:10 -05:00
Jelmer Vernooij
ce5581a85e r20509: Warn about the fact that no tests have been run rather than showing division by
zero errors.
(This used to be commit 62f55b3394)
2007-10-10 14:36:03 -05:00
Derrell Lipman
43470b5ec3 r20444: WEB Application framework / SWAT.
We're now at the stage where the web application framework should build and
install automatically.

Derrell
(This used to be commit 0201baef46)
2007-10-10 14:30:39 -05:00
Stefan Metzmacher
66afa10037 r20167: reenable the ejsnet tests
metze
(This used to be commit 1e4289fae4)
2007-10-10 14:29:17 -05:00
Rafal Szczesniak
32a0486739 r20164: Disable the test till tomorrow when I find out what caused
the crash.

rafal
(This used to be commit 5d7908038b)
2007-10-10 14:29:16 -05:00
Andrew Bartlett
d471e52d23 r20149: Remove the smb.conf distinction between PDC and BDC. Now the correct
way to setup a Samba4 DC is to set 'server role = domain controller'.

We use the fSMORoleOwner attribute in the base DN to determine the PDC.

This patch is quite large, as I have corrected a number of places that
assumed taht we are always the PDC, or that used the smb.conf
lp_server_role() to determine that.

Also included is a warning fix in the SAMR code, where the IDL has
seperated a couple of types for group display enumeration.

We also now use the ldb database to determine if we should run the
global catalog service.

In the near future, I will complete the DRSUAPI
DsGetDomainControllerInfo server-side on the same basis.

Andrew Bartlett
(This used to be commit 67d8365e83)
2007-10-10 14:29:15 -05:00
Jelmer Vernooij
f98b34d0f2 r19880: Eliminate duplicates in the output.
(This used to be commit 2a8c8e1f2d)
2007-10-10 14:28:30 -05:00
Jelmer Vernooij
4a127c679d r19877: Add simple script for summarizing subunit testresults.
(This used to be commit c38705ef42)
2007-10-10 14:28:30 -05:00
Jelmer Vernooij
60e7b4d995 r19863: Create -uninstalled.pc files. This should reenable compilation and running
of the pidl testsuite as part of the testsuite.
(This used to be commit db237ad52f)
2007-10-10 14:28:27 -05:00
Jelmer Vernooij
0b4bd70616 r19862: Fix list concatenation
(This used to be commit a26da5182e)
2007-10-10 14:28:27 -05:00
Jelmer Vernooij
1aec9389ed r19861: Add simple pkg-config replacement.
(This used to be commit a42220c356)
2007-10-10 14:28:26 -05:00
Stefan Metzmacher
a4957315d8 r19723: don't use [,],(,) in test names to make the build-farm output happy
metze
(This used to be commit 8a0a92e2dc)
2007-10-10 14:28:14 -05:00
Rafal Szczesniak
52f53078bf r19708: add a script for running net tests separately
rafal
(This used to be commit 0f913ef240)
2007-10-10 14:28:12 -05:00
Jelmer Vernooij
9d7856122e r19680: Allow specifying basedir for test data.
Create temporary directories in base directory.
(This used to be commit f111feb1d2)
2007-10-10 14:25:30 -05:00
Jelmer Vernooij
273d5f8666 r19671: Fix remaining unresolved symbols in shared library build.
Fix starting tests in shared library build.
(This used to be commit 3b65a0d6e4)
2007-10-10 14:25:27 -05:00
Andrew Bartlett
f722b07438 r19633: Merge to lorikeet-heimdal, removing krb5_rd_req_return_keyblock in favour of a more tasteful replacement.
Remove kerberos_verify.c, as we don't need that code any more.
Replace with code for using the new krb5_rd_req_ctx() borrowed from
Heimdal's accecpt_sec_context.c

Andrew Bartlett
(This used to be commit 13c9df1d4f)
2007-10-10 14:25:21 -05:00
Andrew Bartlett
8b91594e09 r19603: Make it easier to control the debug level of smbd.
Ensure that we don't accept kerberos logins without a PAC (to ensure
we actually produce a PAC in the KDC)

Andrew Bartlett
(This used to be commit 5fda92783f)
2007-10-10 14:25:02 -05:00
Andrew Bartlett
ac43520c5a r19590: Make it less noisy to run the session_key test outside 'make test',
for example against a remote host.

Andrew Bartlett
(This used to be commit 1c7cb1314b)
2007-10-10 14:24:58 -05:00
Andrew Bartlett
d1fd7fb79a r19589: Because we what we really wanted was coverage of seal and non-seal,
rather than validate or not, change $VALIDATE to bigendian in the
session_key test.

Andrew Bartlett
(This used to be commit 4f79f3b0c4)
2007-10-10 14:24:58 -05:00
Jelmer Vernooij
2eeb0e5f28 r19569: Require that all public header files have a destination path. Fix
places where this was currently not the case.
(This used to be commit 3894497a23)
2007-10-10 14:24:53 -05:00
Andrew Bartlett
f3405430db r19567: Make it easier to control the debug level in the test scripts, by not
specifying it on the smbd command line.

Andrew Bartlett
(This used to be commit 8b71f4b31f)
2007-10-10 14:24:53 -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 7a01235067)
2007-10-10 14:24:41 -05:00
Andrew Tridgell
863bd921f2 r19503: it only makes sense to run the LOCAL-ICONV test on 'known good'
platforms as it tests the system iconv with the built in iconv. Limit
the test to Linux to avoid spurious errors.
(This used to be commit 9e1a8475ca)
2007-10-10 14:24:40 -05:00
Brad Henry
c309e2e597 r19476: small typo.
(This used to be commit 51580208a7)
2007-10-10 14:21:39 -05:00
Brad Henry
11c6ecc8be r19475: fixed a couple of typos.
(This used to be commit f2df3a90f1)
2007-10-10 14:21:39 -05:00
Brad Henry
e0dfd66361 r19474: Move the Samba server / Windows client test to its own script.
(This used to be commit 908b483ed0)
2007-10-10 14:21:38 -05:00
Brad Henry
622928924f r19473: Add NET tests in their own script. Run the same set of tests that 'make test' does.
Comment those tests which don't pass.
(This used to be commit 7d382b175b)
2007-10-10 14:21:38 -05:00
Brad Henry
9c83f44fa1 r19472: Move rpc tests to their own scripts. Run the same tests as 'make test' does.
Comment those tests that don't pass.
(This used to be commit 046b38817a)
2007-10-10 14:21:38 -05:00
Brad Henry
2fa394a51a r19471: Move BASE and RAW tests to their own scripts. Run the same set of tests as 'make test' does, at least for those that pass.
Comment the tests that don't pass.
(This used to be commit 33760cfe94)
2007-10-10 14:21:37 -05:00
Brad Henry
ac83f285a1 r19470: Move common windows test functions into their own script wintest_functions.sh, and remove them from the main windows test script.
(This used to be commit 5871960928)
2007-10-10 14:21:37 -05:00
Derrell Lipman
68453d1da2 r19449: ldbbrowse: installation hopefully works now. "Developer" installations
('configure.developer' or 'configure --enable-developer') may still have
problems as I'm not sure I got all of the paths right for that.

With the changes Tridge has made to the Main Menu in swat, given a
non-developer installation, you should be able to get to ldbbrowse via:

  JSON/qooxdoo -> ldb browser

Derrell
(This used to be commit 2406af1079)
2007-10-10 14:21:33 -05:00
Stefan Metzmacher
7653fa22d9 r19443: reset trap when we have removed the test specifc files already
metze
(This used to be commit 15d24f355a)
2007-10-10 14:21:33 -05:00
Brad Henry
288b3850d8 r19432: This way of reverting snapshots is much better than the way I was doing them before.
(This used to be commit 42171cbf49)
2007-10-10 14:21:30 -05:00
Jelmer Vernooij
d9fd8b5256 r19388: Start running all LOCAL-* tests but list some of them as known failing.
(This used to be commit bfa0fbfe94)
2007-10-10 14:21:23 -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
Stefan Metzmacher
4177cf9926 r19344: run smbclient and cifsdd under valgrind and pass the correct configuration
to get useful backtraces in the build-farm

metze
(This used to be commit fa030e4598)
2007-10-10 14:21:13 -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 e1742c14a2)
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 0eb6097305)
2007-10-10 14:21:12 -05:00
Brad Henry
b39540b504 r19281: Generalize what we do for the RAW-QFILEINFO test call so that the same process
is used for other tests that operate on a share when run against windows.
(This used to be commit 3d0cadb303)
2007-10-10 14:21:02 -05:00
Brad Henry
3ff55aa73e r19280: Missed renaming a remove_qfileinfo_test() function call.
(This used to be commit 059d52167c)
2007-10-10 14:21:02 -05:00
Brad Henry
ebbdf24b03 r19279: These setup and cleanup functions are general enough for any test which needs
a share to operate on, not just the qfileinfo test, so now they are named
more appropriately.
(This used to be commit eb16d5324d)
2007-10-10 14:21:01 -05:00
Brad Henry
85ccd43f70 r19278: Change the delete_directory() expect function so that rmdir will
automatically remove any subdirs and files of the directory to be deleted.
(This used to be commit a41eefaaa7)
2007-10-10 14:21:01 -05:00
Brad Henry
2c594ee12b r19277: This commit adds support to run the smbtorture RPC-ASYNCBIND RPC-ATSVC
RPC-DSSETUP RPC-EPMAPPER RPC-INITSHUTDOWN RPC-LSA-GETUSER RPC-MULTIBIND RPC-ROT
RPC-SECRETS RPC-SRVSVC RPC-SVCCTL  RPC-WKSSVC tests against windows, either
by 'make wintest' or in the build farm.

I was surprised when RPC-EVENTLOG and RPC-LSA failed, so i'll investigate today.
(This used to be commit 542bddacc8)
2007-10-10 14:21:01 -05:00
Stefan Metzmacher
66f264bd7a r19229: let mkversion.sh handle bzr trees
metze
(This used to be commit 12c8067337)
2007-10-10 14:20:55 -05:00
Stefan Metzmacher
4c1d2f1011 r19180: with "export MAKE_TEST_KEEP_PCAP=yes" make test
doesn't delete the generated pcap files

metze
(This used to be commit e89ae157e8)
2007-10-10 14:20:50 -05:00
Stefan Metzmacher
b510a0bed9 r19150: add a usefull tool to test the gdb_backtrace script
just compile it with
cc -g -o gdb_backtrace_test gdb_backtrace_test.c

and run it in the same directory where your gdb_backtrace script is.

metze
(This used to be commit 56ae0171ba)
2007-10-10 14:20:44 -05:00
Stefan Metzmacher
9db9ce6087 r19149: ladebug needs to have the stoponattach flag set
to generate the current backtrace without waiting for a signal...

metze
(This used to be commit d86100289a)
2007-10-10 14:20:43 -05:00
Derrell Lipman
250399c923 r19142: ensure no race conditions during installation by having same name in source and swat directory; install new apps and services
(This used to be commit a2b996317f)
2007-10-10 14:20:42 -05:00
Stefan Metzmacher
40b9cb2dd9 r19128: - make the gdb_backtrace script more portable
- try /proc/${PID}/exe first
- fallback to the binary given on the commandline
- fallback searching the binary with 'which' from the
  commandline argument
- use 'ladebug' debugger on Tru64

metze
(This used to be commit f792a9532d)
2007-10-10 14:20:37 -05:00
Stefan Metzmacher
4b35dc53fe r19098: with
export MAKE_TEST_ENABLE_PCAP=yes

make test will use SOCKET_WRAPPER_PCAP_FILE support
and will run each test with a different file

the capture will be removed unless the test fails.

the TEST PCAP: line will show the location of the file

metze
(This used to be commit 5095783cdf)
2007-10-10 14:20:35 -05:00
Stefan Metzmacher
389e6549ba r19036: add LOCAL-REPLACE and reorder the testlist
metze
(This used to be commit c8070c38f2)
2007-10-10 14:20:31 -05:00
Andrew Bartlett
736e797983 r18979: With these extra indexes (also added for the normal case) and a
DB_CONFIG file, we now get reasonable enought performance to pass
'make test' against OpenLDAP.

We do have to double the maximum runtime for the torture client however.

Andrew Bartlett
(This used to be commit 5b3c8cc036)
2007-10-10 14:20:26 -05:00
Andrew Tridgell
c4ebedc7e1 r18917: having 255 virtual interfaces available in socket wrapper means we
stat() 240 files that don't exist on every broadcast. That's a bit
excessive!

reduce max virtual interfaces to 16
(This used to be commit 3c4100027c)
2007-10-10 14:20:21 -05:00
Brad Henry
11c3bfd474 r18884: client_test.exp getting changed to client_tests.exp was an intentional error that I inserted for testing earlier and forgot to take out before commiting.
The other error was a real bug. :)
(This used to be commit 0269f31015)
2007-10-10 14:20:18 -05:00
Brad Henry
7140b68532 r18883: Start including test_functions.sh.
test_win.sh has been rewritten to use the testit() function from test_functions.sh.
(This used to be commit d0ed99859f)
2007-10-10 14:20:18 -05:00
Andrew Bartlett
266ba2222b r18829: Print a nice welcome message when we enter the test environment.
Andrew Bartlett
(This used to be commit 77f1c15d92)
2007-10-10 14:19:15 -05:00
Andrew Bartlett
c220ef880d r18828: Export some more useful environment varibles, particularly for use in
'make testenv'

Andrew Bartlett
(This used to be commit 5215b834bd)
2007-10-10 14:19:15 -05:00
Andrew Tridgell
daf51dfe26 r18825: speed up the test_cifsdd.sh test by using a smaller file. It was
taking over half an hour on some systems
(This used to be commit 13ca7297dd)
2007-10-10 14:19:14 -05:00
Andrew Bartlett
77db3973c4 r18781: Move the usnCreated and usnChanged handling around again.
This moves these attributes from objectguid into an optional backend
(objectguid), used by ltdb.  For OpenLDAP, the entryUUID module
converts entryCSN into usnChanged.

This also changes the sequence number API, and uses 'time based'
sequence numbers, when an LDAP or similar backend is detected.

To assist this, we also store the last modified time in the TDB,
whenever we change a value.

Andrew Bartlett
(This used to be commit 72858f8594)
2007-10-10 14:19:11 -05:00
Andrew Bartlett
94bd704fba r18774: This allows an automated way to setup the test environment in a shell,
with all the helpful env variables set.

TEST_LDAP=yes script/tests/selftest.sh st/ xterm SOCKET_WRAPPER

Andrew Bartlett
(This used to be commit 1a48fa96bc)
2007-10-10 14:19:10 -05:00
Jelmer Vernooij
9523e42a26 r18750: Disable not updating the last-modifification-time of proto headers because this was confusing make.
(This used to be commit 4f5987e77f)
2007-10-10 14:19:07 -05:00
Jelmer Vernooij
324a779167 r18721: Fix base and samba3sam EJS tests to work without installation.
(This used to be commit d062e10166)
2007-10-10 14:19:04 -05:00
Andrew Tridgell
db6dcaae16 r18595: try an experiment of adding a RPC test into the windows testing
framework

Brad, I know this is a bit hackish. We really need a "testit" like
function like in test_functions.sh
(This used to be commit 7120fbffa5)
2007-10-10 14:18:54 -05:00
Andrew Tridgell
401f107e0c r18588: save one more character in the socket wrapper path - seems it still
was occasionally too long for IRIX 6.4
(This used to be commit f6b65fd631)
2007-10-10 14:18:53 -05:00
Andrew Tridgell
481ebe7fd6 r18582: disable synchronous ldb in the build farm. Some hosts have very slow
filesystems and the tests are taking more than 1.5 hours. We will
still be testing the sync code paths, as the ldb tests still run
synchronous, but doing all of our other tests synchronously just costs
too much time.
(This used to be commit ce2baf7385)
2007-10-10 14:18:51 -05:00
Andrew Tridgell
61939ce118 r18578: steve, I think you may have forgotten to commit test_cifsposix.sh ?
(This used to be commit fea75d2c97)
2007-10-10 14:18:50 -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 3cee6a7863)
2007-10-10 14:18:50 -05:00
Andrew Tridgell
158764412e r18576: unfortunately our current build farm results are a bit too good!
when I changed the test output to be easier to read, I also broke it
so that it always gives a zero exit status. Fix now, and unfortunately
I expect to see some more red in the farm as a result :(
(This used to be commit c2fc347102)
2007-10-10 14:18:49 -05:00
Andrew Tridgell
ba4115ece7 r18575: - use the right variable to teststatus
- don't display the "(NN tests failed so far)" message unless a test
  has failed
(This used to be commit da37e963ce)
2007-10-10 14:18:49 -05:00
Andrew Tridgell
d6c128fb4c r18571: try to make it a lot more obvious when 'make test' or 'make quicktest'
has failed. The output was too subtle for people who aren't used to
it.
(This used to be commit a57decb96a)
2007-10-10 14:18:48 -05:00
Steve French
1ce5df6c72 r18570: Fix up function names in cifs unix/posix extensions backend. Enable tiny quick test for torture for them
(This used to be commit 64062d16a2)
2007-10-10 14:18:48 -05:00
Andrew Tridgell
dc70a6b4e7 r18569: add really simple testing of the 'simple' ntvfs backend, so we know
when it breaks. It isn't much good as a template for developers to use
unless it works :-)
(This used to be commit 262bee07dc)
2007-10-10 14:18:48 -05:00
Steve French
db0fdcf6ce r18564: update for cifs unix/posix extensions stub version to build and beginnings of smbtorture test for it
(This used to be commit 57f5695717)
2007-10-10 14:18:47 -05:00
Andrew Tridgell
c7723f6eaf r18540: show the additional smbd output from each test, rather than only
showing on test failure and showing all the smbd output each time.
(This used to be commit 1dfac46664)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
48615ca0da r18494: don't count 'DWARF2 CFI reader' messages as valgrind failures
(This used to be commit f7eaa03d6f)
2007-10-10 14:18:38 -05:00
Andrew Bartlett
f425072ed9 r18459: Set access to test LDAP server as system to anonymous, but also note
the correct authz-regexp for future use.

Fail to test if slapd fails and TEST_LDAP=yes
(This used to be commit 1daf4e7bd4)
2007-10-10 14:18:33 -05:00
Brad Henry
695cf5413a r18415: Make the samba-windows test scripts executable so they run a little easier in the build farm.
(This used to be commit b2d3f8f7aa)
2007-10-10 14:18:25 -05:00
Brad Henry
6b2aaed94a r18414: This README file should help to explain what is needed to setup a Windows VM for testing using this framework.
Let me know if there's anything that looks strange or could use clarification.

vm_setup.tar.gz is currently located at the root of my SVN branch, svn://svnanon.samba.org/samba/branches/SOC/bnh.
(This used to be commit 849fe757bb)
2007-10-10 14:18:25 -05:00
Stefan Metzmacher
e6e21ed3ad r18389: test RPC-UNIXINFO in samba4
metze
(This used to be commit 928beac95d)
2007-10-10 14:18:23 -05:00