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

825 Commits

Author SHA1 Message Date
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
Andrew Tridgell
c87a08425c r18377: disable native iconv with valgrind
(This used to be commit d1ceb79d9d)
2007-10-10 14:18:21 -05:00
Andrew Tridgell
6cb5128dd6 r18372: don't use the system inotify until in the build farm until we work out
how to work around a problem with it giving unpredictable orderings in
renames (sometimes target is first event, sometimes source)
(This used to be commit 066e3b51b1)
2007-10-10 14:18:20 -05:00
Andrew Tridgell
c4f16ffcf9 r18349: don't do validation when using valgrind. It's way too slow (can be
hours for a single test)
(This used to be commit febaf6af4c)
2007-10-10 14:18:14 -05:00
Andrew Tridgell
d2e72c46c1 r18322: fixed a compilation problem on AIX caused by lex not putting config.h
first. That leads to a conflicting define for lseek() due to
_LARGE_FILES being defined after standards headers are included
(This used to be commit 9034238e27)
2007-10-10 14:18:08 -05:00
Andrew Tridgell
c10debe53d r18302: fixed test_cifsdd.sh - the unnecessary sum operations were breaking on
solaris
(This used to be commit 3828c463ad)
2007-10-10 14:18:05 -05:00
Stefan Metzmacher
bb21503c43 r18296: this isn't needed anymore
metze
(This used to be commit 1ee1007597)
2007-10-10 14:18:03 -05:00
Andrew Tridgell
1caceff302 r18290: finally worked out why we were failing tests on solaris. It has
kerberos on port 750 in /etc/services! Work around this by using
127.0.0.1:88 in the krb5.conf
(This used to be commit 9fb91702fd)
2007-10-10 14:18:02 -05:00
Andrew Tridgell
e7f2d247e4 r18281: a workaround for an infinite dependency loop in the dependency
generation for smbreadline.d. The problem was caused by
extra_flags.txt having ./lib/smbreadline/smbreadline.o but the build
using lib/smbreadline/smbreadline.o, which means cflags.pl didn't
match the target.

Hopefully the workaround can be removed when metze or jelmer wake up
and give me a hint on how to make SMB_SUBSYSTEM() not add the ./
prefix :-)
(This used to be commit 826cd304a7)
2007-10-10 14:18:00 -05:00
Andrew Tridgell
bcd1d154f3 r18277: on some of our slower hosts we need more than 2700 seconds for smbd to
complete all tests
(This used to be commit c44b17ad66)
2007-10-10 14:18:00 -05:00
Andrew Tridgell
77d27a4635 r18251: skip pidl tests unless the platform has Test::More
(This used to be commit 6c7dd852c0)
2007-10-10 14:17:56 -05:00
Andrew Tridgell
caa4bfce7c r18247: more shell portability fixes
(This used to be commit d9ddfdf9e8)
2007-10-10 14:17:55 -05:00
Andrew Bartlett
8d21ad6c25 r18246: Let our openldap slapd.conf include the magic to have DIGEST-MD5 on
the server-side work.
(This used to be commit 73d87cce7c)
2007-10-10 14:17:54 -05:00
Rafal Szczesniak
5360570115 r18190: Add more NET tests to be run on the build farm.
rafal
(This used to be commit 8657bd437a)
2007-10-10 14:17:48 -05:00
Jelmer Vernooij
2ad95ed398 r18171: Generate prototypes for functions returning bool.
(This used to be commit 587a681c19)
2007-10-10 14:17:45 -05:00
Rafal Szczesniak
15352189d2 r18050: Run more NET tests on the build farm.
rafal
(This used to be commit 2185e97889)
2007-10-10 14:17:08 -05:00
Andrew Tridgell
3dc330b1f3 r18026: patch from Brad allowing the windows testing to be configured
externally in the build farm
(This used to be commit a85646cba5)
2007-10-10 14:17:04 -05:00
Andrew Bartlett
36ca11b00a r18023: Add support infrusructure for testing against an OpenLDAP server.
This will give a bit more noise on platforms without OpenLDAP (when we
run the slaptest check), but it shouldn't be too bad.

We don't start the LDAP server or re-provision unless LDAP_TEST is set.

Andrew Bartlett
(This used to be commit 999d989131)
2007-10-10 14:17:04 -05:00
Rafal Szczesniak
92b8f4cfb6 r18017: Separate NET tests out of RPC. This way it's easier to run libnet
tests only for quick checking.

rafal
(This used to be commit a6c9a01e89)
2007-10-10 14:17:03 -05:00
Andrew Bartlett
6cb6d5cf94 r17989: Add RPC-NETLOGON as a test we now run against Samba4.
Andrew Bartlett
(This used to be commit c271c488a5)
2007-10-10 14:17:02 -05:00
Stefan Metzmacher
a9ac74a98b r17838: revert rev 17754
readd --always-create option to mkproto.pl

metze
(This used to be commit 1686c69d0e)
2007-10-10 14:16:46 -05:00
Andrew Tridgell
e5f7da55ef r17768: This merges in the current version of Brad Henry's windows testing
framework patch. There are some issues with the patch that I will
discuss in a separate email to the list, but given the low (zero?)
impact of the patch as it is, I think its better to integrate it now,
then let Brad send some minor update patches later
(This used to be commit 7232da0436)
2007-10-10 14:16:38 -05:00
Stefan Metzmacher
f592640d92 r17754: remove the --always-create option from mkproto.pl
and make this behavior the default.

as with make 3.81 and autodependencies this way is much
faster as make can use faster codepathes internally.

(without this make needed more and more startup time after using
 autodependencies for a few weeks)

metze
(This used to be commit e85d7eeb0a)
2007-10-10 14:16:37 -05:00
Andrew Tridgell
b22105f1ac r17675: increase max torture test runtime - we have some v slow hosts in the
farm!
(This used to be commit 6a7800064f)
2007-10-10 14:16:22 -05:00
Andrew Bartlett
7d4da6897c r17547: Add test by mkhl for some of our variable substituion behaviour.
Andrew Bartlett
(This used to be commit c2c72565e4)
2007-10-10 14:15:36 -05:00
Andrew Bartlett
1ace9b6ec0 r17543: Patch from Martin Kühl <martin.kuehl@gmail.com> to extend the
samba3sam test cases for ldb_map, and to include this into our default
'make test'.
(This used to be commit f69a842314)
2007-10-10 14:15:36 -05:00
Stefan Metzmacher
879ce60b73 r17540: store command line args of selftest.sh in local vars
as $0,$1,$2,$3 may change in side the script
or included scripts.

This fixes the usage of SOCKET_WRAPPER on non linux
systems (tested on IRIX 6.4)

metze
(This used to be commit ebfb719e3d)
2007-10-10 14:15:35 -05:00
Stefan Metzmacher
1935ef0d54 r17539: add HMAC-MD5 test code based on the example values from rfc 2104, 2202
metze
(This used to be commit 200b1a5c81)
2007-10-10 14:15:35 -05:00
Andrew Bartlett
a7770d9738 r17527: Don't duplicate the entire test setup just to allow testing of the new
ldb-backed shares configuration.

Andrew Bartlett
(This used to be commit 59f86d8084)
2007-10-10 14:15:33 -05:00
Stefan Metzmacher
d120eb8128 r17495: run LOCAL-CRYPTO-MD4 and LOCAL-CRYPTO-MD5 with make test
metze
(This used to be commit 0b552dadaa)
2007-10-10 14:15:29 -05:00
Stefan Metzmacher
ea197d7758 r17489: run the crypto tests with test
metze
(This used to be commit b9920f8ac5)
2007-10-10 14:15:28 -05:00
Andrew Bartlett
5d05a1a726 r17396: Bump the time up again. RPC-SAMR can slow, I probably need to break
it up again...

Andrew Bartlett
(This used to be commit 110de3a3a2)
2007-10-10 14:15:21 -05:00
Andrew Bartlett
303c106155 r17395: Add some more time to the default runtime. Now 7.5 mins.
Andrew Bartlett
(This used to be commit 5cb916b57a)
2007-10-10 14:15:21 -05:00
Andrew Bartlett
416625319b r17394: Pregenerate all the files for TLS. Make the 'make test' startup *much* faster.
Andrew Bartlett
(This used to be commit c366c90662)
2007-10-10 14:15:21 -05:00
Andrew Bartlett
adefa4404c r17379: Pre-generate DH parameters, to avoid doing this at runtime in our testsuite.
Andrew Bartlett
(This used to be commit 23314c3953)
2007-10-10 14:15:20 -05:00
Stefan Metzmacher
2ce34063e5 r17282: test some simple operation with the LANMAN1 and LANMAN2 protocol,
that finally tests our RAW_SESSSETUP_OLD code

metze
(This used to be commit 43f99f1171)
2007-10-10 14:15:05 -05:00
Simo Sorce
cb85a76d77 r17208: Add a away to test the ldb module.
Actually you can't test both classic and ldb together, but you can replace the standard
script/tests/mktestsetup.sh file with this one and run make test to see share_ldb in action
(This used to be commit d4c2b89350)
2007-10-10 14:10:19 -05:00
Andrew Bartlett
9e854f2f86 r17169: Test LDAP with testnonblock.
Andrew Bartlett
(This used to be commit 9d866a030e)
2007-10-10 14:10:15 -05:00
Stefan Metzmacher
5af1b8e009 r17014: add whitespaces...
metze
(This used to be commit 60c4eaa4c5)
2007-10-10 14:10:08 -05:00
Andrew Bartlett
b1a92083d8 r16967: Test another NTLMSSP flags combination.
Andrew Bartlett
(This used to be commit 9e4eee5a2d)
2007-10-10 14:10:04 -05:00
Andrew Bartlett
bfc02627ce r16914: Add more tests for the partition module.
Andrew Bartlett
(This used to be commit 2728b60dfa)
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
ee89812758 r16891: test dcerpc over smb2
metze
(This used to be commit 2fd7a5fc61)
2007-10-10 14:09:57 -05:00
Stefan Metzmacher
48e6c11956 r16877: run SMB2-FIND test
metze
(This used to be commit 8edbd9b05b)
2007-10-10 14:09:56 -05:00
Andrew Bartlett
0f215e9947 r16860: Fix (and reactivate) the RPC-SAMR test. We need to allow these sids
to be created as foreign, even if they are in a local domain.

Also we do need the user to exist for the life of the test, as we add
it to a group.

Andrew Bartlett
(This used to be commit ae470ff701)
2007-10-10 14:09:54 -05:00
Andrew Bartlett
6abc3e05b1 r16858: The RPC-SAMR-PASSWORDS test now passes.
Andrew Bartlett
(This used to be commit 8b34bb2689)
2007-10-10 14:09:54 -05:00
Andrew Bartlett
f596c0a4ec r16852: I thought we passed RPC-SAMR-PASSWORDS, but we don't. Disable that
test for now.

Andrew Bartlett
(This used to be commit 9748c3a2f0)
2007-10-10 14:09:54 -05:00
Andrew Bartlett
90b744247f r16850: Disable NBT-WINSREPLICATION-OWNED until it always passes (currently it still has intermittant failures).
Andrew Bartlett
(This used to be commit 845da45117)
2007-10-10 14:09:53 -05:00
Andrew Bartlett
ba968d6684 r16847: Add the parts of the SAMR test that pass back into 'make test'.
I still need to figure out what causes the rest to fail...

Andrew Bartlett
(This used to be commit aa34bd46cb)
2007-10-10 14:09:53 -05:00
Andrew Bartlett
86518acc49 r16835: Remove RPC-SAMR from the test, until I can clear up the unexplained failure.
Andrew Bartlett
(This used to be commit 666ac7e36c)
2007-10-10 14:09:49 -05:00
Andrew Bartlett
5e3ca4a733 r16828: Add RPC-LSA as a test that passes, and remove RAW-ACLs until someone
can fix it.

Andrew Bartlett
(This used to be commit 840b5f0a7f)
2007-10-10 14:09:48 -05:00
Andrew Bartlett
3c9281f014 r16794: Make Samba4 pass it's own RPC-SAMR test, at least in part. There are
still a couple of unimplemented functions, but this is far better than
not testing this at all.  In particular, this exercises the
password_hash module.

Specific changes:
 - Add support for SetDomainInfo
 - Add many more info levels to QueryDomainInfo
 - Set a domain comment in RPC-SAMR, and verify it is kept
 - Refactor QueryUserInfo not to always serach for all attributes
 - Add QueryDiplayInfo3 and QueryDomainInfo2 as aliased calls
 - Make OemChangePassword2 search under the samdb_base_dn(), so it
   finds the user when partitions are active.
 - Skip SetSecurity, DisplayIndex, MemberAttributesOfGroup and
  'Multiple' alias operations in RPC-SAMR for Samba4
 - Add RPC-SAMR as a 'slow' RPC test (it is quite slow)

Andrew Bartlett
(This used to be commit 01d25c9d6c)
2007-10-10 14:09:46 -05:00
Stefan Metzmacher
2e56d833b4 r16739: test SMB2-GETINFO SMB2-SETINFO by make test
metze
(This used to be commit 0ebb25de56)
2007-10-10 14:09:43 -05:00
Stefan Metzmacher
c71aac4403 r16560: print out the correct value
metze
(This used to be commit 0e10282f89)
2007-10-10 14:09:34 -05:00
Jelmer Vernooij
1afab0e36f r16527: Add target argument for smbtorture.
Remove duplicate unc path separator conversion.
Add prefix for tempdirs.
(This used to be commit 3763ed3092)
2007-10-10 14:09:33 -05:00
Jelmer Vernooij
993012bd2a r16525: Move selftest-specific code back to selftest.
(This used to be commit e659d77248)
2007-10-10 14:09:32 -05:00
Jelmer Vernooij
9b161bcb71 r16522: Move code to create the test data out of selftest.sh.
(This used to be commit 2c601df23f)
2007-10-10 14:09:32 -05:00
Stefan Metzmacher
de2fbad4d2 r16469: do some smb2 tests
metze
(This used to be commit 1ca34c9090)
2007-10-10 14:09:30 -05:00
Jelmer Vernooij
5ca6189505 r16039: Add missing #!, don't rely on bash
(This used to be commit f6e587e706)
2007-10-10 14:08:52 -05:00
Rafal Szczesniak
0bd3636a12 r15926: Add NET-API-DELETEUSER test to the standard tests run on 'make test'
rafal
(This used to be commit 5c2bc9a4f6)
2007-10-10 14:08:41 -05:00
Jelmer Vernooij
ae67b20623 r15875: Fix bug in smbclients 'put' command tridge found a while ago. Add tests
for 'put' and 'get' commands so we don't break them again.

Fixes #3742
(This used to be commit 141600a624)
2007-10-10 14:08:35 -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
Andrew Tridgell
0f881ff069 r15832: put a talloc leak report in the log file at the end of each test run
(This used to be commit 16c67e135a)
2007-10-10 14:08:30 -05:00
Rafal Szczesniak
669df64c34 r15785: Change the test names according to changes made in libnet torture test.
rafal
(This used to be commit 857993bfe4)
2007-10-10 14:08:20 -05:00
Stefan Metzmacher
47afa69496 r15684: fix option passing
metze
(This used to be commit c567d92f5b)
2007-10-10 14:08:05 -05:00
Rafal Szczesniak
ac4775c028 r15665: ejsnet test should be better now, after changes in delete
user routine.

rafal
(This used to be commit 9bb5415929)
2007-10-10 14:08:05 -05:00
Stefan Metzmacher
f344db9038 r15642: add an '--always-create' option to mkproto.pl
with this the proto headers will be always regenerated,
even if the content hasn't changed

you can use currently by
#>make MK_PROTO_ALWAYS_CREATE=yes'
or
#>export MK_PROTO_ALWAYS_CREATE=yes
#>make

metze
(This used to be commit 248d56af9d)
2007-10-10 14:07:26 -05:00
Rafal Szczesniak
48beed252c r15627: Disabling test of ejsnet till the time I find the reason why
it's segfaulting. It's late so I just don't want to keep the
build farm all in red PANIC messages.

rafal
(This used to be commit 6c41e64ce7)
2007-10-10 14:07:24 -05:00
Stefan Metzmacher
235b3dd9f8 r15622: pass 'target:samba4=yes' to samba4's smbtorture when running samba4's make test
we can use this in samba4's smbtorture to disable tests sections which doesn't pass
against samba4

metze
(This used to be commit 430c7143c6)
2007-10-10 14:07:01 -05:00
Stefan Metzmacher
ee9108e11b r15619: use source/version.h again
I have removed the old files from the unpacked area,
so we should not get any problems on the build farm

metze
(This used to be commit a54f9a4fa8)
2007-10-10 14:07:01 -05:00
Andrew Tridgell
7947d4c425 r15517: fixed the segv in provision. The problem was that SAMBA_VERSION_STRING
was defined recursively as the mkversion.sh script was putting the new
version in the wrong spot
(This used to be commit 962afd362c)
2007-10-10 14:05:45 -05:00
Stefan Metzmacher
713f241edc r15513: only run 'svn info' and 'svk info' once
metze
(This used to be commit 82cd1de3fb)
2007-10-10 14:05:44 -05:00
Andrew Bartlett
721270ebad r15510: As discussed on samba-technical, move the VERSION system back to a
#define based system only.  This avoids allocation in the fault code.

Andrew Bartlett
(This used to be commit 31c97b4e67)
2007-10-10 14:05:44 -05:00
Andrew Bartlett
985e70189e r15486: Ensure that our Samba3-like implementation of fake-GSSAPI is tested.
This also tests that the server accepts the incorrect GSSAPI checksum,
and that we get the right session key.

Andrew Bartlett
(This used to be commit 888e2b7f4e)
2007-10-10 14:05:40 -05:00
Andrew Bartlett
5f4d86f955 r15426: Implement SPNEGO as the default RPC authentication mechanism. Where
this isn't supported, fallback to NTLM.

Also, where we get a failure as 'logon failure', try and do a '3
tries' for the password, like we already do for CIFS.  (Incomplete:
needs a mapping between RPC errors and the logon failure NTSTATUS).

Because we don't yet support Kerberos sign/seal to win2k3 SP1 for
DCE/RPC, disable this (causing SPNEGO to negotiate NTLM) when kerberos
isn't demanded.

Andrew Bartlett
(This used to be commit b3212d1fb9)
2007-10-10 14:05:36 -05:00
Tim Potter
635d385ea1 r15390: Make test output a bit prettier.
(This used to be commit 7e4d3bb818)
2007-10-10 14:05:31 -05:00
Jelmer Vernooij
cad3914619 r15378: Fix installheader script. Alexander, this will break installation of headers
for srcdir != builddir
(This used to be commit 527a40d80b)
2007-10-10 14:05:29 -05:00
Stefan Metzmacher
0c910a6e44 r15291: $f already has the $srcdir prefixed
metze
(This used to be commit db36bf4a32)
2007-10-10 14:05:03 -05:00
Stefan Metzmacher
daa7e47b43 r15275: run RPC-SRVSRV in make test
metze
(This used to be commit 4044d7959b)
2007-10-10 14:05:00 -05:00
Jelmer Vernooij
91631d9b90 r15267: Fix call to mkdir() for old versions of perl. This should fix installation on
sun1.
(This used to be commit a56900a7a2)
2007-10-10 14:04:59 -05:00
James Peach
9d9e5abdce r15187: Introduce new param type P_BYTES. This lets config options which specify
byte counts be given in convenient units.
(This used to be commit 1b8891a2f3)
2007-10-10 14:04:14 -05:00
Alexander Bokovoy
573b2f75fb r15099: An attempt to fix BSD make portability issues. With these changes Samba 4 builds successfully on NetBSD 3.0
(This used to be commit 71ea07e72d)
2007-10-10 14:04:08 -05:00
Alexander Bokovoy
9cf41988ff r15036: Add out of tree build support and see how buildfarm will respond to make constructs
(This used to be commit 9329854489)
2007-10-10 14:04:03 -05:00
Tim Potter
860a4ed444 r14971: Update test script with new location of tdb and ldb wrappers.
(This used to be commit 7794dcd096)
2007-10-10 14:00:48 -05:00
Stefan Metzmacher
c35f146d66 r14929: add some comments
metze
(This used to be commit 5d40e10d8e)
2007-10-10 14:00:18 -05:00
Andrew Tridgell
bacf1152fc r14919: disable the BASE-DEFER_OPEN test until it gets fixed (it sleeps for
way too long). Jeremy, whats the idea behind those long sleeps?

its also redundent, as the RAW-MUX test already tests the sharing
violation open delay
(This used to be commit d63d113c8a)
2007-10-10 14:00:16 -05:00
Jelmer Vernooij
ccae1c47f0 r14908: Fix LD_LIBRARY_PATH
(This used to be commit c4668192f9)
2007-10-10 14:00:14 -05:00
Tim Potter
574c9fd685 r14878: Write swig wrappers for ldb_init() and ldb_connect().
Start wrapper for ldb_search().  Currently it returns a list of swig
ldb_message objects.  More unpacking of results required.
(This used to be commit 704787978a)
2007-10-10 14:00:11 -05:00
Tim Potter
e9cf4f3098 r14873: Add skeleton swig ldb interface.
(This used to be commit c6c759e19f)
2007-10-10 14:00:10 -05:00
Stefan Metzmacher
90de5b96a9 r14819: list all tests smbtorture offers and explicit list tests
for skipping

metze
(This used to be commit 127fe33c46)
2007-10-10 13:59:24 -05:00
Stefan Metzmacher
99beb7b329 r14815: BASE-DIR doesn't exists...
metze
(This used to be commit 711df01cc8)
2007-10-10 13:59:23 -05:00
Stefan Metzmacher
d72f821aaa r14814: also run the BASE-DIR test with 'make test'
metze
(This used to be commit b52baadf22)
2007-10-10 13:59:23 -05:00
Tim Potter
4a1055dfda r14802: Fix typo.
(This used to be commit 757805f020)
2007-10-10 13:59:21 -05:00
Tim Potter
86971ff3b9 r14798: Get swig building again (by commenting out dcerpc stuff for now).
Add the start of a test framework for swigged functionality.
(This used to be commit 3dfd0959f7)
2007-10-10 13:59:20 -05:00
Jelmer Vernooij
a339d748eb r14740: Try loading shared libs from the bin/ directory (useful for running 'make test'
without developer mode)
(This used to be commit 3aafd09020)
2007-10-10 13:59:18 -05:00
Stefan Metzmacher
e095d9e32a r14738: do some different lookups
metze
(This used to be commit f61bd2e9a2)
2007-10-10 13:59:18 -05:00
Andrew Bartlett
a0effc9d04 r14717: Don't provision the system as 'localhost', but instead list localhost
as an alias.  The netbios name is then 'localtest', which will resolve
with netbios and work with krb5.

Andrew Bartlett
(This used to be commit cc7c84bfc9)
2007-10-10 13:59:13 -05:00
Jelmer Vernooij
268a86e176 r14661: Install symlinks for shared libraries
(This used to be commit 3286636dbb)
2007-10-10 13:59:06 -05:00
Jelmer Vernooij
b5e849f22f r14607: Update mkproto.pl to only write out new header files if the contents changed.
(This used to be commit 06403ea2be)
2007-10-10 13:59:00 -05:00
Jelmer Vernooij
f200d553fb r14549: Use make-compatible syntax in extra_cflags.txt so we can avoid
cflags.pl when using GNU make
(This used to be commit 4354147f6b)
2007-10-10 13:58:43 -05:00
Jelmer Vernooij
f9ec6bfb98 r14534: Update doco
(This used to be commit 0944dca958)
2007-10-10 13:58:40 -05:00
Jelmer Vernooij
187628634f r14481: Change paths in headers on the fly when installing. Adds a simple text
file that contains the paths where headers need to be installed.
(This used to be commit c3d975f4dc)
2007-10-10 13:57:31 -05:00
Jelmer Vernooij
43c7536883 r14479: Cope with _PUBLIC_ not being defined. Needed for when external projects
include this header.
(This used to be commit 9bfc3c2537)
2007-10-10 13:57:31 -05:00
Jelmer Vernooij
3bb28c83e2 r14471: Convert installheader script to perl
(This used to be commit c6a478a1af)
2007-10-10 13:57:30 -05:00
Jelmer Vernooij
3cad0b87dc r14281: Pull apart LIBDIR and MODULESDIR
Move architecture-independent data to DATADIR (was LIBDIR)
(This used to be commit 2c7b62a861)
2007-10-10 13:57:07 -05:00
Jelmer Vernooij
6e8f1ffc7d r13982: Add support for prototypes spread across multiple lines. Try to keep line
empty after inserting new prototypes.
(This used to be commit d3a21b58d4)
2007-10-10 13:52:33 -05:00
Jelmer Vernooij
98d4c63867 r13976: Add simple script for updating existing prototypes in a header file
(This used to be commit 265cfb39c3)
2007-10-10 13:52:33 -05:00
Stefan Metzmacher
324fcc27f9 r13964: make lp_* functions public
metze
(This used to be commit 2db081fd70)
2007-10-10 13:52:32 -05:00
Jelmer Vernooij
ce3032cab8 r13898: Add a subsystem-specific DEFAULT_VISIBILITY property that can be used
to not export symbols when building shared libraries. Symbols that have to be
available to users of the library can be explicitly exported by
prepending them with _PUBLIC_ in the C source.
(This used to be commit ea9988dfda)
2007-10-10 13:52:20 -05:00
Jelmer Vernooij
148403594b r13896: Get rid of 'use warnings' as it isn't very portable..
(This used to be commit fd6135aa85)
2007-10-10 13:52:20 -05:00
Jelmer Vernooij
f6457b3d54 r13867: Wrap the cflags.sh hack in the build system. You can now simply
set subsystem-specific compiler flags in the .mk files.
(This used to be commit d512b147e8)
2007-10-10 13:52:18 -05:00
Andrew Tridgell
ce2c9f22e5 r13854: we now pass BASE-NEGNOWAIT
(This used to be commit d55db268ca)
2007-10-10 13:52:16 -05:00
Andrew Bartlett
77ffddec19 r13850: Test (and fix) not using SPNEGO at all, but instead using raw NTLMSSP.
The switch to turn off SPNEGO in the client is a bit messy, but it works.

Andrew Bartlett
(This used to be commit 085ba80cc8)
2007-10-10 13:52:15 -05:00
Jelmer Vernooij
d4f44993bd r13753: /bin/sh -> /bin/bash as this script uses some bash-specific constructs
(This used to be commit fb620c2706)
2007-10-10 13:52:09 -05:00
Andrew Tridgell
6b6f516a4a r13740: the BASE-DELETE test now passes, and is a quick test
(This used to be commit b6c2d1e0b9)
2007-10-10 13:52:08 -05:00
Jelmer Vernooij
dfc517b053 r13658: More moving around of files:
- Collect the generic utility functions into a lib/util/ (a la GLib is
		for the GNOME folks)
 - Remove even more files from include/
(This used to be commit ba62880f5b)
2007-10-10 13:52:05 -05:00
Stefan Metzmacher
b518130be3 r13629: export env-vars
metze
(This used to be commit fbd78b6272)
2007-10-10 13:52:02 -05:00
Stefan Metzmacher
a86518f160 r13628: fix the logic:-)
metze
(This used to be commit 7f1de54c84)
2007-10-10 13:52:02 -05:00
Stefan Metzmacher
f2f3e1801b r13627: split the NBT-WINSREPLICATION tests into multiple tests
metze
(This used to be commit ae559920e1)
2007-10-10 13:52:02 -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 b0e7a58cc9)
2007-10-10 13:51:58 -05:00
Andrew Bartlett
e7630ebe47 r13472: After Volker's advise, try every combination of parameters. This
isn't every parameter on NTLMSSP, but it is most of the important
ones.

This showed up that we had the '128bit && LM_KEY' case messed up.
This isn't supported, so we must look instead at the 56 bit flag.

Andrew Bartlett
(This used to be commit 990da31b5f)
2007-10-10 13:51:54 -05:00
Andrew Bartlett
e45ce50a61 r13380: Drop the socket, then try SAMR operations secured with netlogon on the new socket.
We should also test netlogon operations, but there are issues with
what state is expected to be stored (far more than we currently do).

Andrew Bartlett
(This used to be commit 39ddba0d0d)
2007-10-10 13:51:51 -05:00
Simo Sorce
289a5994a9 r13355: check controls are correctly exported
(This used to be commit 07fa55db32)
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 933a80397d)
2007-10-10 13:51:48 -05:00
James Peach
60f8666ae8 r13255: New CIFS dd client for use in performance testing. The guts of this is
in client/cifsdd*, which implements a minimal implementation of dd. The
IO path is careful to always perform IO at the requested block size.

There is a very basic test suite in script/tests/test_cifsdd.sh which
covers local and remote IO at a variety of block sizes.

Added to lib/util_str.c is a small set of conv_str_*() functions to
convert strings to the corresponding type.

smbcli_parse_unc is modified to insert NULL terminators after its
hostname and sharename parameters. This allows it to correctly parse a
path of the form //foo/share/path/file.
(This used to be commit cd2f94a658)
2007-10-10 13:51:39 -05:00
Andrew Bartlett
b70009649a r13244: Allow control of the location of the Samba3-compatible winbindd pipe
in Samba4.  This allows us to start winbindd by default, including in
'make test'.

This is via a new 'winbindd socket directory' parameter for utilities
linked against loadparm, as well as a --with-winbindd-socket-dir
option to configure (setting the default and the value for simple
clients).

I hope to add basic winbindd tests, to ensure continued correct
operation, but at least now I don't have to manually change my 'server
services' line.

The other problem with the hard-coded /tmp/.winbind is that RedHat has
moved this in Fedora (to /var/run I think).  For this reason, this
functionality should probably be ported to Samba3 as well.

The default for Samba4 is PREFIX/var/run/winbind_pipe.

I have also re-added the paranoia checks from Samba3 for correct
permissions on the socket directory.

Andrew Bartlett
(This used to be commit 8866aa06ff)
2007-10-10 13:51:37 -05:00
Andrew Bartlett
d778912c3a r13240: Make the test scripts use the new smb.conf location (in PREFIX/etc).
Andrew Bartlett
(This used to be commit ea0a53d679)
2007-10-10 13:51:36 -05:00
Jelmer Vernooij
713b296441 r13210: Revert my named pipes patch until it passes not just 'make quicktest' but
also 'make test'
(This used to be commit e3d0676aee)
2007-10-10 13:51:35 -05:00
Jelmer Vernooij
ad6303f82f r13208: Clearly separate named pipes from the IPC$ NTVFS type.
This allows the easy addition of additional named pipes and removes the
circular dependencies between the CIFS, RPC and RAP servers.

Simple tests for a custom named pipe included.
(This used to be commit 898d15acbd)
2007-10-10 13:51:34 -05:00
Jelmer Vernooij
4e3ee3f898 r13160: Fix some of the smbclient testsuite (after failures on the buildfarm)
(This used to be commit 765991ab48)
2007-10-10 13:51:30 -05:00
Jelmer Vernooij
57d079e4b2 r13157: Fix installation of js files
(This used to be commit 2384dec6f2)
2007-10-10 13:51:30 -05:00