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

598 Commits

Author SHA1 Message Date
Jelmer Vernooij
cd9cf47972 selftest.py: Finish conversion to python - now loads without syntax errors. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
11c7ce35c0 selftest.testlist: Add RestrictedTestManager.from_path. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
48155d189a selftest: More work on conversion to Python. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
d400619dee selftest.testlist: Add docstrings. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
a50def839c selftest.testlist: Add manager for restricted test lists. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
616139c01e Add TestListFilter definition. 2012-03-04 18:02:07 +01:00
Jelmer Vernooij
4802561d69 selftest.testlist: Add read_testlist. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
7a614ac710 selftest.testlist: Add read_test_regexes. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
8b583dc64c selftest: Add testlist management module. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
4d602fb05d selftest.target: Add Environment.get_vars. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
646f6b2697 selftest: Add tests for trying to reuse an environment that has gone down. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
7060d68015 selftest: Add tests for NoneEnvironment. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
aa7fa63bfa selftest.target: Test that environments are reused. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
75eb57cff5 selftest.target: Add tests for get_running_env. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
0d50c4cf3c selftest.target: Add tests for getlog_env. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
e7633d86c0 selftest.target: Add tests for check. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
c57ab7ba9d selftest.target: Add tests for setup. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
5f74fa3511 selftest: Add base classes for Target/Environment and their management. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
164d3f6641 selftest.socket_wrapper: interface is an integer. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
0cfb8e033c selftest.socket_wrapper: Add basic unit tests. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
adbd55ea55 selftest.socket_wrapper: Add docstrings. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
1d71ca98b7 Add test infrastructure for selftest. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
a6056e07e0 selftest: Add python version of socket wrapper utilities. 2012-03-04 18:02:06 +01:00
Jelmer Vernooij
fc7f49420b selftest: Add selftest.py. 2012-03-04 18:02:06 +01:00
Andrew Bartlett
48e9d7efce selftest: Rework Samba3.pm process termination
We now store the timelimit child PID in memory, and confirm that the child has exited
with both waitpid() and kill(0, $pid).

By calling Samba::cleanup_child() we get exit status information.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun Mar  4 11:51:12 CET 2012 on sn-devel-104
2012-03-04 11:51:12 +01:00
Andrew Bartlett
a37990c5c1 selftest: Rework Samba4.pm process termination.
We now double-check the waitpid() result with kill(0, $pid)

We now also send a SIGTERM, then a SIGKILL.

Andrew Bartlett
2012-03-04 10:14:34 +01:00
Andrew Bartlett
e495118aab selftest: Fix waitpid termination test 2012-03-04 10:14:34 +01:00
Andrew Bartlett
d715e2c294 selftest: Use fork()/exec() rather than system()
This follows the Samba3.pm model for starting child processes is to
use fork()/exec().  This reduces the number of processes being created
by selftest.pl, and gives us more information about the child process
and the running state in the parent.

Andrew Bartlett
2012-03-04 10:14:34 +01:00
Jelmer Vernooij
4a8d55cd7d selftest: Remove unused vde functions.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Mar  4 07:54:51 CET 2012 on sn-devel-104
2012-03-04 07:54:51 +01:00
Jelmer Vernooij
9654c61a9f selftest/README: Expand inconsistent tabs 2012-03-04 01:20:03 +01:00
Jelmer Vernooij
f75746e353 selftest: Remove outdated template. 2012-03-04 01:19:17 +01:00
Jelmer Vernooij
ed92f3de63 selftest: Remove unused and broken target 'windows'. 2012-03-04 01:18:58 +01:00
Michael Adam
58c26c2fd4 selftest: more precisely skip durable-open, not durable.open
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sat Mar  3 19:17:32 CET 2012 on sn-devel-104
2012-03-03 19:17:32 +01:00
Michael Adam
e6283801f4 s4:torture:smb2: start a testsuite for durable v2 handles: durable and persistent opens 2012-03-03 17:03:07 +01:00
Andrew Bartlett
5d4144a826 selftest: close stdin and wait with waitpid() for a safer exit
This avoids timelimit sending kill -9 after 1 second, which may
disrupt the writing of gcov data.

Andrew Bartlett
2012-03-02 12:30:05 +01:00
Andrew Bartlett
0d94d681c4 selftest: Put stdin pipe on the environment
This seems to help us close the right pipe at cleanup time.

Andrew Bartlett
2012-03-02 12:30:05 +01:00
Jelmer Vernooij
fd7ba79aba selftest: Move manual page into a separate file.
(Generated using pod2man from selftest.pl itself)
2012-03-02 03:49:09 +01:00
Andrew Bartlett
10700f69b2 selftest: Establish a registry of socket wrapper IPs
This fixes a bug where chgdcpass was on the same IP as localsubdc, and
will avoid similar mistakes in future.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Mar  2 03:48:05 CET 2012 on sn-devel-104
2012-03-02 03:48:05 +01:00
Andrew Bartlett
89fb6da8d0 selftest: change plugin_dc to test using s3fs 2012-02-29 10:41:07 +01:00
Andrew Bartlett
265a2bf04f selftest: skip the troublesome samba4.rpc.unixinfo test
The issue here is that while the single rpc_server process is stuck in
an nss_winbind getpwuid() call, winbindd cannot contact netlogon to
make the connection to the domain.

nss_winbind comes into play when (for s3fs) the
NSS_WRAPPER_WINBIND_SO_PATH environment variable is set.  In the
medium term, the unixinfo pipe should either be rewritten fully async
or removed.

Andrew Bartlett
2012-02-29 10:41:07 +01:00
Andrew Bartlett
8e8fde51b4 selftest: Do not run chgdcpass test on the main DC
If winbindd has it's password changed from under it, it becomes
grumpy.

Andrew Bartlett
2012-02-29 10:41:07 +01:00
Andrew Tridgell
645fcc5375 selftest: added a pipe on stdin in s3 child processes
this adds a pipe for STDIN in smbd, nmbd and winbindd when run in
selftest. This allows those processes to detect when they should exit
by looking for EOF on stdin.
2012-02-28 12:01:08 +01:00
Michael Adam
62d8d03c8c s4:selftest: skip smb2.session testsuite
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Feb 28 03:19:52 CET 2012 on sn-devel-104
2012-02-28 03:19:50 +01:00
Michael Adam
a87e3ec107 s4:selftest: remove old "samba4.smb2.persistent.handle1" from knownfail - test does not exist 2012-02-28 01:27:59 +01:00
Andrew Bartlett
dc677b3baf selftest: up the default log level in s3
This may help show more detail when our tests fail.

Andrew Bartlett
2012-02-27 11:16:05 +01:00
Andrew Bartlett
6f8f24c5f2 selftest: Do not skip environments that fail to start up
This is a regression in 70f4a96c68.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Feb 23 10:55:20 CET 2012 on sn-devel-104
2012-02-23 10:55:20 +01:00
Andrew Bartlett
dd479bd292 selftest: Fix selftest to check ADS functionalty again
This was found by looking over the lcov output on build.samba.org

The new have_ads() check also now dies if it cannot run smbd, to avoid
this in future.

Andrew Bartlett
2012-02-18 00:44:07 +01:00
Andrew Bartlett
95d3096f98 s3-selftest: Remove .posix_s3 from s3 test names
As far as I can tell, this simply referred to the posix_s3.sh script
that originally ran these tests.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Feb 16 06:57:09 CET 2012 on sn-devel-104
2012-02-16 06:57:08 +01:00
Andrew Bartlett
6917575fe3 selftest: skip plugin_s4_dc if we do not have ADS 2012-02-16 15:21:10 +11:00
Andrew Bartlett
c006b9b898 selftest: skip targets that are not compiled in if we do not have ADS 2012-02-16 15:21:10 +11:00
Andrew Bartlett
212b3ec1a0 s3-selftest: Require SMB signing for ktest environment
This will help weed out session key errors in the krb5 code.

Andrew Bartlett
2012-02-16 15:21:10 +11:00
Andrew Bartlett
22a2c46f84 selftest: Do not start up an already-running test environment
Otherwise we may re-provision the dc just because we started it via s3member or s4member
first.

Andrew Bartlett
2012-02-16 15:21:10 +11:00
Andrew Bartlett
e1f9fb79c7 selftest: Make plugin_s4_dc set the cached environment correctly 2012-02-16 15:21:10 +11:00
Christian Ambach
ad2a2c4e3a s4:torture: add another SMB2 rename test
this mimics Word 2010 saving a file

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Mon Feb 13 18:33:43 CET 2012 on sn-devel-104
2012-02-13 18:33:43 +01:00
Andrew Bartlett
70f4a96c68 selftest: Allow setup_env() to signal that an environment name is unknown
This will allow us to skip samba4 environments that may be mentioned in
the source3/selftest/tests.py file.

Andrew Bartlett
2012-02-13 04:41:05 +01:00
Christian Ambach
be3e479feb selftest: add smb2.rename to testsuite
Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Fri Feb 10 15:02:51 CET 2012 on sn-devel-104
2012-02-10 15:02:51 +01:00
Stefan Metzmacher
919440ff0a selftest: mark posix_s3.rpc.spoolss.printer as flakey test
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Feb 10 10:04:15 CET 2012 on sn-devel-104
2012-02-10 10:04:15 +01:00
Andrew Bartlett
88298f97ae build: Add --enable-coverage option to build with gcov support
This allows running lcov over the output.

Andrew Bartlett
2012-02-10 16:45:11 +11:00
Amitay Isaacs
db869c5812 selftest: Fix the exit code of make test when run in buildfarm
When make test is run in buildfarm environment (RUN_FROM_BUILD_FARM=1),
last process in make test pipeline is subunit-filter. This subunit-filter
is responsible for converting failure test result to xfail for known
failures. While converting failures to xfail, it sets exitcode=1. If
this is the last process in the pipeline make test fails, which is
the observed behavior in buildfarm.

In autobuild, there is additional process in the pipeline format-subunit
which processes the output of subunit-filter and correctly terminates
with exit code=0. The buildfarm make test failure is fixed by adding
extra filter-subunit in the pipeline, as the extra filter-subunit
exits correctly with exit code=0.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Feb  3 07:00:04 CET 2012 on sn-devel-104
2012-02-03 07:00:04 +01:00
Andrew Bartlett
eecf2ac4c8 selftest: Remove unused support for --exeext 2012-02-01 02:45:07 +01:00
Andrew Bartlett
965b83158d s3-selftest: Add test for posix large reads and writes
This includes encrypted reads and writes, both NTLM and kerberos.

Andrew Bartlett

Signed-off-by: Jeremy Allison <jra@samba.org>

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Jan 28 00:13:57 CET 2012 on sn-devel-104
2012-01-28 00:13:56 +01:00
Andrew Bartlett
06f7105490 s3-libcli Change krb5 smb sealing to call via gensec and gensec_gse
This also fixes the support for smb sealing with krb5 in make test, as
this now relies on secrets.tdb rather than /etc/krb5.keytab.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-20 23:55:54 +01:00
Andrew Bartlett
339d5ea4e6 s3-selftest The krb5 encrypted CIFS test was wrong
Sadly this fails in the test environement for now.  It needs a /etc/krb5.keytab
which we do not provide.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Jan 13 04:57:22 CET 2012 on sn-devel-104
2012-01-13 04:57:22 +01:00
Amitay Isaacs
84ad540ab9 selftest: Do not run symbol check if setting up testenv
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Jan 13 03:11:20 CET 2012 on sn-devel-104
2012-01-13 03:11:20 +01:00
Volker Lendecke
f994f0a342 Fix the local-memcache test for 64-bit
The memcache test walks the purge functionality. The maximum memcache size also
takes all memcache internal headers into account. Those headers contain
pointers, so on 64-bit they take more space...

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Jan  5 22:01:00 CET 2012 on sn-devel-104
2012-01-05 22:01:00 +01:00
Andrew Bartlett
7b4f2fad54 s3-selftest: Add test for rpcclient, including kerberos authentication
Some knownfail entries are added for things the currently fail.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-05 17:17:28 +01:00
Andrew Bartlett
8a4b5cdfea s4-selftest: Add test of RPC to a netbios alias
This tries to ensure our netbios lookup code is still run.

Andrew Bartlett
2011-12-13 23:42:05 +01:00
Andrew Bartlett
c9d929af8b s4-lsarpc handle more info levels in SetInfoTrustedDomain calls
This uses the very helpful conversion functions written for the s3 lsa server
and places these in common.

Andrew Bartlett
2011-12-12 12:57:07 +01:00
Andrew Bartlett
e42e1ac089 s4-lsarpc Fix segfaults found by the samba4.rpc.lsa.forest test
This allows us to move this test to knownfail from skip
2011-12-12 12:57:07 +01:00
Rusty Russell
08019a0973 tdb2: don't use TDB2 versions of test tdb files.
Now tdb2 handles tdb1 files, we don't need most of commit
5eecc85423 which added TDB2 versions of
all the testing tdbs.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Mon Dec 12 06:33:44 CET 2011 on sn-devel-104
2011-12-12 06:33:44 +01:00
Andrew Bartlett
3adc4f5545 selftest: samba4.samba-tool.domopen now passes, so do not skip
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Dec  7 04:42:02 CET 2011 on sn-devel-104
2011-12-07 04:42:02 +01:00
Andrew Bartlett
2da506ee66 s4-selftest re-enable nsstest on libnss_winbind.so 2011-12-07 03:09:08 +01:00
Jelmer Vernooij
116a150231 knownfail: Mark some ldap.acl search tests as no longer failing.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Dec  6 00:43:40 CET 2011 on sn-devel-104
2011-12-06 00:43:39 +01:00
Jelmer Vernooij
d9459ed9d3 knownfail: Remove working winbind tests. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
bf2b801a55 knownfail: The resolve async tests work now. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
b3f81c671a knownfail: remove now succeeding local.iconv test. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
a3949f4c86 knownfail: remove base.maximum_allowed test, as it appears to be passing now. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
d9aeb2fc33 knownfail: re-add createx test. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
512d11492f knownfail: Exclude specific list of SMB2 oplock tests. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
9968fabde3 knownfail: Remove smb2.compound tests, they pass now. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
be373289db Remove samba4.raw.oplock.brl4. Bug 7928 has been fixed. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
0190a5589c knownfail: Match on end-of-file, not end-of-file-access. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
f186425a1b knownfail: samba4.base.createx_access.createx_access works. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
850c83821c knownfail: LogonControl2Ex works. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
4c3696c02c knownfail: Ignore failures for drsuapi tests over other transports as well. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
4d551a91a5 samba4: Remove rpc-handles mixed-shared tests from known failing list. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
4673559894 selftest: Re-mark some drsuapi tests as known failing. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
f9091d6fa0 selftest: Don't mark drsuapi tests as knownfailing. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
817552779d Fix typo. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
4f03164373 selftest: 'samba4.rpc.netlogon on ncalrpc with seal,padcheck.netlogon.DsrEnumerateDomainTrusts' now succeeds, remove it from the knownfail list. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
f528733d7b GetForestTrustInformation is implemented, remove it from knownfail. 2011-12-05 23:11:04 +01:00
Jelmer Vernooij
112d07256a rap netsessiongetinfo apparently *is* provided by samba3, so don't list it in knownfail. 2011-12-05 23:11:04 +01:00
Jelmer Vernooij
e6b4a74406 s3-selftest: Don't mark samba3.blackbox.failure.success test as known failing. 2011-12-05 23:11:04 +01:00
Jelmer Vernooij
be5d9c83e3 filter-subunit: Fix default for flapping setting. 2011-12-05 23:11:04 +01:00
Jelmer Vernooij
0fee2c01b8 selftest: Display unexpected successes and expected failures. 2011-12-05 23:11:04 +01:00
Jelmer Vernooij
e62654578b selftest: Add --flapping argument to filter-subunit. 2011-12-05 23:11:04 +01:00
Jelmer Vernooij
5643d37a00 selftest: Split out flapping tests into a separate file. 2011-12-05 23:11:04 +01:00
Jelmer Vernooij
503aeabd10 selftest: Fix typo in socket wrapper test.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Dec  1 00:30:00 CET 2011 on sn-devel-104
2011-12-01 00:30:00 +01:00
Jelmer Vernooij
ce359c14f2 selftest: Drop broken and unused Kvm target. 2011-11-30 22:58:05 +01:00
Jelmer Vernooij
454c4502f3 selftest: Don't acquire target when --list was specified. 2011-11-30 22:58:05 +01:00