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

568 Commits

Author SHA1 Message Date
Andrew Bartlett
13c9df1d4f 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
2007-10-10 14:25:21 -05:00
Andrew Bartlett
5fda92783f 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
2007-10-10 14:25:02 -05:00
Andrew Bartlett
1c7cb1314b r19590: Make it less noisy to run the session_key test outside 'make test',
for example against a remote host.

Andrew Bartlett
2007-10-10 14:24:58 -05:00
Andrew Bartlett
4f79f3b0c4 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
2007-10-10 14:24:58 -05:00
Jelmer Vernooij
3894497a23 r19569: Require that all public header files have a destination path. Fix
places where this was currently not the case.
2007-10-10 14:24:53 -05:00
Andrew Bartlett
8b71f4b31f r19567: Make it easier to control the debug level in the test scripts, by not
specifying it on the smbd command line.

Andrew Bartlett
2007-10-10 14:24:53 -05:00
Jelmer Vernooij
7a01235067 r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
works again now, by specifying --enable-dso to configure.
2007-10-10 14:24:41 -05:00
Andrew Tridgell
9e1a8475ca 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.
2007-10-10 14:24:40 -05:00
Brad Henry
51580208a7 r19476: small typo. 2007-10-10 14:21:39 -05:00
Brad Henry
f2df3a90f1 r19475: fixed a couple of typos. 2007-10-10 14:21:39 -05:00
Brad Henry
908b483ed0 r19474: Move the Samba server / Windows client test to its own script. 2007-10-10 14:21:38 -05:00
Brad Henry
7d382b175b 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.
2007-10-10 14:21:38 -05:00
Brad Henry
046b38817a r19472: Move rpc tests to their own scripts. Run the same tests as 'make test' does.
Comment those tests that don't pass.
2007-10-10 14:21:38 -05:00
Brad Henry
33760cfe94 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.
2007-10-10 14:21:37 -05:00
Brad Henry
5871960928 r19470: Move common windows test functions into their own script wintest_functions.sh, and remove them from the main windows test script. 2007-10-10 14:21:37 -05:00
Derrell Lipman
2406af1079 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
2007-10-10 14:21:33 -05:00
Stefan Metzmacher
15d24f355a r19443: reset trap when we have removed the test specifc files already
metze
2007-10-10 14:21:33 -05:00
Brad Henry
42171cbf49 r19432: This way of reverting snapshots is much better than the way I was doing them before. 2007-10-10 14:21:30 -05:00
Jelmer Vernooij
bfa0fbfe94 r19388: Start running all LOCAL-* tests but list some of them as known failing. 2007-10-10 14:21:23 -05:00
Jelmer Vernooij
bde00d9706 r19350: Properly list LOCAL-TALLOC under the "LOCAL" header.
Support directories for subcategories in tests.
Several small other fixes.
2007-10-10 14:21:14 -05:00
Stefan Metzmacher
fa030e4598 r19344: run smbclient and cifsdd under valgrind and pass the correct configuration
to get useful backtraces in the build-farm

metze
2007-10-10 14:21:13 -05:00
Jelmer Vernooij
e1742c14a2 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.
2007-10-10 14:21:13 -05:00
Jelmer Vernooij
0eb6097305 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.
2007-10-10 14:21:12 -05:00
Brad Henry
3d0cadb303 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.
2007-10-10 14:21:02 -05:00
Brad Henry
059d52167c r19280: Missed renaming a remove_qfileinfo_test() function call. 2007-10-10 14:21:02 -05:00
Brad Henry
eb16d5324d 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.
2007-10-10 14:21:01 -05:00
Brad Henry
a41eefaaa7 r19278: Change the delete_directory() expect function so that rmdir will
automatically remove any subdirs and files of the directory to be deleted.
2007-10-10 14:21:01 -05:00
Brad Henry
542bddacc8 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.
2007-10-10 14:21:01 -05:00
Stefan Metzmacher
12c8067337 r19229: let mkversion.sh handle bzr trees
metze
2007-10-10 14:20:55 -05:00
Stefan Metzmacher
e89ae157e8 r19180: with "export MAKE_TEST_KEEP_PCAP=yes" make test
doesn't delete the generated pcap files

metze
2007-10-10 14:20:50 -05:00
Stefan Metzmacher
56ae0171ba 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
2007-10-10 14:20:44 -05:00
Stefan Metzmacher
d86100289a r19149: ladebug needs to have the stoponattach flag set
to generate the current backtrace without waiting for a signal...

metze
2007-10-10 14:20:43 -05:00
Derrell Lipman
a2b996317f r19142: ensure no race conditions during installation by having same name in source and swat directory; install new apps and services 2007-10-10 14:20:42 -05:00
Stefan Metzmacher
f792a9532d 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
2007-10-10 14:20:37 -05:00
Stefan Metzmacher
5095783cdf 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
2007-10-10 14:20:35 -05:00
Stefan Metzmacher
c8070c38f2 r19036: add LOCAL-REPLACE and reorder the testlist
metze
2007-10-10 14:20:31 -05:00
Andrew Bartlett
5b3c8cc036 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
2007-10-10 14:20:26 -05:00
Andrew Tridgell
3c4100027c 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
2007-10-10 14:20:21 -05:00
Brad Henry
0269f31015 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. :)
2007-10-10 14:20:18 -05:00
Brad Henry
d0ed99859f r18883: Start including test_functions.sh.
test_win.sh has been rewritten to use the testit() function from test_functions.sh.
2007-10-10 14:20:18 -05:00
Andrew Bartlett
77f1c15d92 r18829: Print a nice welcome message when we enter the test environment.
Andrew Bartlett
2007-10-10 14:19:15 -05:00
Andrew Bartlett
5215b834bd r18828: Export some more useful environment varibles, particularly for use in
'make testenv'

Andrew Bartlett
2007-10-10 14:19:15 -05:00
Andrew Tridgell
13ca7297dd r18825: speed up the test_cifsdd.sh test by using a smaller file. It was
taking over half an hour on some systems
2007-10-10 14:19:14 -05:00
Andrew Bartlett
72858f8594 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
2007-10-10 14:19:11 -05:00
Andrew Bartlett
1a48fa96bc 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
2007-10-10 14:19:10 -05:00
Jelmer Vernooij
4f5987e77f r18750: Disable not updating the last-modifification-time of proto headers because this was confusing make. 2007-10-10 14:19:07 -05:00
Jelmer Vernooij
d062e10166 r18721: Fix base and samba3sam EJS tests to work without installation. 2007-10-10 14:19:04 -05:00
Andrew Tridgell
7120fbffa5 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
2007-10-10 14:18:54 -05:00
Andrew Tridgell
f6b65fd631 r18588: save one more character in the socket wrapper path - seems it still
was occasionally too long for IRIX 6.4
2007-10-10 14:18:53 -05:00
Andrew Tridgell
ce2baf7385 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.
2007-10-10 14:18:51 -05:00