Rusty Russell
361f3ea9ee
lib/ccan: import failtest and required ccan modules for TDB2 unit tests.
...
New modules: failtest, list, time, read_write_all and tlist.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-03-07 13:16:16 +11:00
Gregor Beck
4f5412dda6
s3:selftest: ask smbtorture4 for smb2 tests
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Mar 7 01:34:05 CET 2012 on sn-devel-104
2012-03-07 01:34:05 +01:00
Gregor Beck
3a751958b3
selftest: skip samba3.smb2.scan because they are no tests
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
25ba1c7bc6
selftest: remove samba3.smb2.*scan from knownfail
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
46a96c42a2
s4:torture make a suite for smb2.*scan
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
59f818d80b
s4:torture: print ntstatus on failure of setup complex file in smb2 setinfo/getinfo scan
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
af6555d2a9
s4:torture: use different filenames for smb2 setinfo and getinfo scan
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
80436ed099
s4:torture: cleanup after smb2 setinfo scan
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
2b3ed65273
s4:torture: cleanup after smb2 getinfo scan
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
cbe918d106
selftest: skip samba3.smb2.session because it hangs
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
c14dacbebe
selftest: skip samba3.smb2.hold-oplock because its not a test
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
632b1042ae
selftest: mark samba3.smb2.ioctl tests knownfail
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Stefan Metzmacher
f0392e1b04
selftest: mark samba3.smb2.durable-v2-open tests as knownfail
...
metze
2012-03-06 23:53:06 +01:00
Gregor Beck
6fb34b951e
selftest: mark samba3.smb2.durable-open.oplock test knownfail
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
3c826d4411
selftest: mark samba3.smb2.durable-open reopen tests knownfail
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
a3994f673b
selftest: samba3.smb2.compound.invalid2 works
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
7dc26c2799
selftest: mark smb2 tests knownfail failing in 3.6
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
10f266b6ed
s4:torture: avoid reporting error on failure of smb2.ioctl tests
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
01774d65c2
s4:torture: avoid reporting error on failure of smb2.getinfo test
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
2aa81dc817
s4:torture: avoid reporting error on failure of smb2.setinfo test
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
dc44cbfb1a
s4:torture: avoid reporting error on failure of smb2.streams tests
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
b80e95633e
s4:torture: avoid reporting error on failure of smb2.acls tests
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Stefan Metzmacher
68b840726b
s3:smbd: keep 'num_files' and 'files' directly under smbd_server_connection
...
The plan is to have files_struct as some kind of low level
abstraction for a smb1/smb2 opens, that can be used by SMB_VFS modules.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Mar 6 23:04:01 CET 2012 on sn-devel-104
2012-03-06 23:04:01 +01:00
Stefan Metzmacher
f6b6e963f6
s3:smbd: keep 'num_connections' and 'connections' directly under smbd_server_connection
...
The plan is to have connection_struct as some kind of low level
abstraction for a smb1/smb2 tree connects, that can be used by SMB_VFS modules.
metze
2012-03-06 21:26:05 +01:00
Stefan Metzmacher
6ce72a01ab
s3:smbd: keep 'num_users' and 'users' directly under smbd_server_connection
...
The plan is to have users_struct as some kind of low level
abstraction for a smb1/smb2 session, that can be used by SMB_VFS modules.
metze
2012-03-06 21:26:05 +01:00
Stefan Metzmacher
d95dbb86c5
s3:msdfs: set the 'cnum' field to invalid for faked connection_structs
...
metze
2012-03-06 21:26:05 +01:00
Kai Blin
c7f67142c0
s4 dns: Fix TCP handling in the DNS server
...
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Tue Mar 6 21:17:19 CET 2012 on sn-devel-104
2012-03-06 21:17:18 +01:00
Volker Lendecke
1f62df52aa
s3: Move a talloc_strdup out of the main code path
...
This is only used for AS_GUEST requests
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Tue Mar 6 14:29:50 CET 2012 on sn-devel-104
2012-03-06 14:29:50 +01:00
Volker Lendecke
b709589445
s3: Fix some format string warnings
...
We were printing nmb->header.name_trn_id with %hu, which denotes a
short. However, header.name_trn_id is an int for the better or
worse.
2012-03-06 10:38:32 +01:00
Jelmer Vernooij
f033c221f8
policy/python: Move python binding tests to standard location.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Mar 6 02:26:29 CET 2012 on sn-devel-104
2012-03-06 02:26:29 +01:00
Jelmer Vernooij
aaffd996ab
selftest/tests.py: Fix name of selftest.py for benefit of --load-list.
2012-03-06 00:48:14 +01:00
Jelmer Vernooij
b9ac1f45a1
selftest.py: Only run teardown_all when actually relevant.
2012-03-06 00:48:14 +01:00
Andrew Bartlett
074ee6f34c
s3-rpc_server: Remove remaining code for embedded endpoint mapper
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Mon Mar 5 23:14:33 CET 2012 on sn-devel-104
2012-03-05 23:14:33 +01:00
Andrew Bartlett
be7bcf0e55
s3-rpc_server: Only init and register embedded RPC services in dcesrv_ep_setup()
...
This consults the two definitions for embedded, that is if the deamon is forking
or if the rpc_server:<interface> line is set to embedded.
Andrew Bartlett
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-03-05 21:34:25 +01:00
Volker Lendecke
cae455f688
s3: Fix a "Invalid (state->nread >= 0)" warning
...
Both read_from_internal_pipe and tstream_readv_pdu_queue_recv return
ssize_t.
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon Mar 5 17:38:16 CET 2012 on sn-devel-104
2012-03-05 17:38:16 +01:00
Volker Lendecke
216769f2ce
s3: Move the drain_socket on error to reply_write_and_X
...
That's the only case where this can happen, so we should not clutter the main
code path.
2012-03-05 15:59:36 +01:00
Volker Lendecke
82b948a816
s3: Use "goto out;" in reply_write_and_X
2012-03-05 15:59:36 +01:00
Volker Lendecke
07386bb533
s3: Remove "size" param from switch_message
...
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon Mar 5 15:13:49 CET 2012 on sn-devel-104
2012-03-05 15:13:49 +01:00
Volker Lendecke
c99d245548
s3: Remove "size" param from smb_dump
2012-03-05 13:35:05 +01:00
Andrew Bartlett
14d31376aa
s3-lsasd: Fix debug messages on registration failure
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Mar 5 09:50:17 CET 2012 on sn-devel-104
2012-03-05 09:50:17 +01:00
Andrew Bartlett
6dbf632bc3
selftest: Reduce declarations of smbclient_auth tests by moving into a loop
2012-03-05 08:15:05 +01:00
Andrew Bartlett
fc5762388a
selftest: run smbtorture_s3 tests against the ntvfs file server
...
This checks not only the behaviour of the NTVFS file server, but also the
client library and authentication stack.
Andrew Bartlett
2012-03-05 08:15:05 +01:00
Andrew Bartlett
4c926a708d
selftest: Reduce time in cleanup loop, try waitpid on all 3 children
2012-03-05 08:15:05 +01:00
Andrew Bartlett
ebe8aa9cc1
selftest: start to run more dcerpc tests against plugin_s4_dc
2012-03-05 08:15:05 +01:00
Andrew Bartlett
0582d03efe
selftest: forward rpcecho to Samba4 in plugin_s4_dc
2012-03-05 08:15:05 +01:00
Jelmer Vernooij
53a147d1c0
selftest.run: Factor out read_testlist_file and open_file_or_pipe.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Mar 5 05:42:19 CET 2012 on sn-devel-104
2012-03-05 05:42:19 +01:00
Jelmer Vernooij
f26b40a925
selftest.run: Factor out exported_envvars_str.
2012-03-05 03:49:50 +01:00
Jelmer Vernooij
a6a8456646
selfclient.client: Factor out write_clientconf.
2012-03-05 03:45:57 +01:00
Jelmer Vernooij
f3f6b8eafa
selftest.run: Factor out expand_command_run.
2012-03-05 03:39:57 +01:00
Jelmer Vernooij
d6924f8039
selftest.run: Factor out expand_command_list.
2012-03-05 03:27:40 +01:00