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

744 Commits

Author SHA1 Message Date
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
Jelmer Vernooij
83cad86821 selftest: Don't generate subunit file when writing subunit to stdout. 2011-11-30 22:58:05 +01:00
Jelmer Vernooij
3eb5cf2914 selftest: Prevent error about unfinished test command when using --list. 2011-11-30 22:58:04 +01:00
Jelmer Vernooij
4a9235f903 selftest: Don't use fancy subunit formatters when generating a test list. 2011-11-30 22:58:04 +01:00
Jelmer Vernooij
956733a0e7 selftest: Don't write subunit output in --list mode. 2011-11-30 22:58:04 +01:00
Jelmer Vernooij
1caa3b8eae selftesthelpers: write warnings to stderr rather than stdout. 2011-11-30 22:58:04 +01:00
Stefan Metzmacher
b94b7a2fe1 selftest/Samba4: pass '--machinepass' to 'samba-tool domain join'
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Nov 29 11:00:42 CET 2011 on sn-devel-104
2011-11-29 11:00:42 +01:00
Kai Blin
ef4bda5c76 s4 dns: Turn on internal DNS server during testing 2011-11-17 08:42:45 +01:00
Stefan Metzmacher
0be0da9650 selftest/Samba4: allow schema updates
metze
2011-11-15 09:46:30 +01:00
Jelmer Vernooij
042f3fe5f6 selftesthelpers: Revert perl changes, add comment on why the original code was necessary. 2011-11-14 15:49:37 +01:00
Jelmer Vernooij
38495995c9 selftesthelpers: Cope with empty binary mappings list, simplify handling of perl. 2011-11-14 15:49:36 +01:00
Stefan Metzmacher
b4428d771f selftest/selftesthelpers.py: construct a fullname with env in plantestsuite_idlist()
Like we already do for plantestsuite_loadlist()

metze
2011-11-14 14:11:28 +01:00
Stefan Metzmacher
77c73f1d92 selftest: planpythontestsuite() should fill 'name' is it's None
Otherwise make test shows tests with name "None".

metze
2011-11-14 14:11:28 +01:00
Jelmer Vernooij
e0b8af57c4 selftesthelpers: Fix syntax error. 2011-11-10 23:37:04 +01:00
Jelmer Vernooij
8ea8683f72 selftest: Allow passing arbitrary number of additional python path values. 2011-11-10 23:37:04 +01:00
Jelmer Vernooij
d84ba4fc0a selftest: re-implement directory option for planpythontestsuite. 2011-11-10 23:37:04 +01:00
Jelmer Vernooij
f5d3e45722 Revert "test: added directory option to planpythontestsuite()"
This reverts commit b0be72d508.

I'll add an alternative that uses subunit.run.
2011-11-10 23:37:04 +01:00
Andrew Tridgell
b0be72d508 test: added directory option to planpythontestsuite()
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-11-10 14:24:21 +11:00
Andrew Tridgell
a04eac7aa2 build: only run symbol checking if running all tests
this makes it much faster to run 1 test

Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-11-10 14:24:21 +11:00
Andrew Bartlett
862b81791e selftest: Remove the 'all' environment as it is just too slow to start up
Instead we start the 'dc' environment, and other environments are available as:
make testenv SELFTEST_TESTENV=fl2003dc

Andrew Bartlett
2011-11-08 02:58:06 +01:00
Stefan Metzmacher
aa70b7e0fc selftest/Samba4: use "server signing = on" for now
Otherwise the smb2.compound test fails as it doesn't work
with signing yet.

metze
2011-11-03 16:55:11 +01:00
Jeremy Allison
8c6ff21782 The xcopy test is used in unusual ways (via a different uid). Ensure we can cope with this. 2011-10-28 12:16:43 -07:00
Jeremy Allison
80c3aa7d29 The xcopy test requires "dos filemode=yes" as it opens with WRITE_OWNER. 2011-10-28 12:16:42 -07:00
Andrew Bartlett
1bc787d271 s3-selftest Add all the LOCAL-* smbtorture tests to make test
The extra knownfail and skip entries are for tests the currently do
not pass or hang.  We need to work out why this happens, and fix the
test or the test invocation.

Andrew Bartlett
2011-10-28 13:10:28 +02:00
Andrew Bartlett
659ec79245 selftest: Have only one set of selftest knownfail and skip files
Listing tests that are not ever proposed (eg samba4.* in the samba3 selftest)
is not an error, so just combine the lists.

This is being done because some folks trying to learn how our 'make
test' works are having trouble following the distributed nature of the
selftest system.

Andrew Bartlett
2011-10-28 13:10:27 +02:00
Andrew Bartlett
8dcfe2e5c4 selftest: Remove --target option and the ability to run 'samba4 only' tests
This simplifies the selftest system, and by default we always tested
all of samba3 and samba4 in the waf build.  This simply removes a
rarely used option for testing only part of the system.  The make test
TESTS="^samba3" syntax remains unchanged, so no functionality is lost.

Andrew Bartlett
2011-10-28 13:10:27 +02:00
Andrew Bartlett
13a3aa1312 Revert "selftest: Avoid being run over by armies of the undead"
This reverts commit 2b47aface4 because
it had a typo in $SIG{CHILD} (it needed to be $SIG{CHLD}), which when
fixed simply broke the whole selftest system.

Andrew Bartlett
2011-10-20 09:26:45 +02:00
Amitay Isaacs
7ca0bed38d s4-selftest: Add tests for RPC dnsserver
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-20 05:53:05 +02:00
Michael Adam
4874e1f5b3 selftest:Samba3: fix signature for check_or_start() 2011-10-18 20:58:26 +02:00
Michael Adam
dd6b413a57 selftest:Samba3: fix a message printed when starting winbindd 2011-10-18 20:58:26 +02:00
Andreas Schneider
031519cec9 selftest: Fix plugin_s4_dc configuration.
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Oct 12 13:50:10 CEST 2011 on sn-devel-104
2011-10-12 13:50:10 +02:00
Stefan Metzmacher
f0cd3f62d0 selftest: run dfs tests on plugin_s4_dc
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Oct  8 03:18:54 CEST 2011 on sn-devel-104
2011-10-08 03:18:54 +02:00
Stefan Metzmacher
733457a94e selftest/Samba3: enable uid wrapper in nmbd, winbindd and smbd
metze

Signed-off-by: Andreas Schneider <asn@samba.org>

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Thu Oct  6 13:49:05 CEST 2011 on sn-devel-104
2011-10-06 13:49:05 +02:00
Andrew Bartlett
8c33036a37 s4-subdomain more work on sub-domain join
we can now create a subdomain of an existing windows domain using:

  samba-tool domain join sub.domain.dns.name subdomain

The ordering of the creation of the key records is quite tricky,
especially for the NTDSDSA object

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2011-09-13 15:38:02 +10:00
Andrew Bartlett
4d74fb7d47 selftest: add test for subdomain support 2011-09-13 15:37:12 +10:00
Andreas Schneider
ae292ed180 s3-rpc_server: Handle services with multiple pipe names.
The configuration should only use the default pipe name to configure all
of them correctly.
2011-09-01 14:28:03 +02:00
Andrew Bartlett
1f181476b4 selftest: Allow a krb5.conf to be generated that covers multiple realms 2011-08-26 14:06:07 +02:00
Andrew Bartlett
43c0863333 set passdb backend in Samba4 make test environments too
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Aug 22 03:46:21 CEST 2011 on sn-devel-104
2011-08-22 03:46:21 +02:00
Andreas Schneider
0f4ee5d1b7 s3-lsasd: Listen on \PIPE\lsass.
Signed-off-by: Simo Sorce <idra@samba.org>
2011-08-21 09:08:24 -04:00
Andreas Schneider
d5ba5dec26 selftest: Enable testing of the lsa service daemon.
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
2011-08-21 09:05:03 -04:00
Simo Sorce
f9c7b59d3e selftest: Fix daemon testing to use the new syntax.
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
2011-08-21 09:05:03 -04:00
Stefan Metzmacher
81d3f92155 selftest:Samba4: test --domain-critical-only in provision_vampire_dc()
This way only only replicate critical objects during the initial join
as DC, then we'll replicate the whole domain while 'samba' is running.

metze

Signed-off-by: Andrew Tridgell <tridge@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Aug 12 14:07:50 CEST 2011 on sn-devel-104
2011-08-12 14:07:50 +02:00
Stefan Metzmacher
da7d22dade selftest:target/Samba4: use the correct configuration in setup_vampire_dc()
This allows "TDB_NO_FSYNC=1 make -j test TESTS=vampire" to work.

metze

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-08-12 12:39:05 +02:00
Andrew Tridgell
6b3a12b0f4 s4-test: use standard process model for 'dc' server
this provides us with both 'standard' and 'single' process models in
selftest, ensuring that we test the standard process model in the
build farm

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Aug 12 11:06:50 CEST 2011 on sn-devel-104
2011-08-12 11:06:50 +02:00
Andreas Schneider
d53e3ecf08 selftest: Always test the spoolss deamon.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Aug 10 19:29:14 CEST 2011 on sn-devel-104
2011-08-10 19:29:14 +02:00
Andrew Bartlett
4379738e85 selftest: print %U in smbclient -L output to allow testing 2011-08-03 18:48:05 +10:00
Andrew Bartlett
4806eda36c selftest: use the s4 winbindd in plugin_s4_dc test
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-08-03 18:48:03 +10:00
Andreas Schneider
9c5f2ec121 s3-rpc_server: Disable listening on tcpip ports by default. 2011-08-01 11:08:36 +02:00
Andreas Schneider
e0931a53c8 s3-torture: Run epmapper as daemon and the tests over ncalrpc. 2011-08-01 08:50:35 +02:00
Andrew Bartlett
8f13c84dce s3-selftest Add tests for 'map to guest = bad user'
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-29 04:24:07 +02:00
Andrew Bartlett
2b47aface4 selftest: Avoid being run over by armies of the undead
Ignore SIGCHILD to reap zombies

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-29 04:24:07 +02:00
Andrew Bartlett
61cb2150cb selftest: explain how the message command test works 2011-07-29 04:24:06 +02:00
Björn Baumbach
e3fc1aba86 selftest: use "state directory" and "cache directory" options
instead of "state dir" and "cache dir"

Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jul 21 10:06:32 CEST 2011 on sn-devel-104
2011-07-21 10:06:32 +02:00
Andrew Tridgell
e593939da1 samba-tool: fixed some more calls to samba_tool join to be 'domain join' 2011-07-21 11:44:38 +10:00
Andrew Bartlett
702e35ac6d selftest: Pass lsass and epmapper across the named pipe proxy to the AD server
Eventually we will have just one end point mapper, but for now we need
to use the source4 one for the AD tests.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-20 09:17:14 +10:00
Andrew Tridgell
18995cde5c s4-fault: changed to use %d for PID, instead of %PID%
this matches the s3 behaviour

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-13 12:51:05 +02:00
Stefan Metzmacher
2ba1444fbd selftest/Samba4: use "state dir" for persistent files
metze
2011-07-12 14:58:38 +02:00
Stefan Metzmacher
1c5390e39f selftest/Samba4: setup "state dir" and "cache dir"
metze
2011-07-12 14:58:37 +02:00
Michael Adam
a60c94d559 selftest: remove invalid use of the globbing operator <> 2011-07-04 20:02:07 +02:00
Michael Adam
b6f25650f1 selftest: eliminate perl warnings (my $cmd masks earlier definition...) 2011-07-04 20:02:07 +02:00
Michael Adam
65f4d33d9b selftest: eliminate a perl warning
In perl, %binary_mapping should be initialized as a hash, not a hash reference.
2011-07-04 20:02:07 +02:00
Stefan Metzmacher
d7cc8571f7 s4:selftest: test ntvfs.cifs with s4u2proxy
Pair-Programmed-With: Björn Baumbach <bb@sernet.de>

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jun 24 20:35:30 CEST 2011 on sn-devel-104
2011-06-24 20:35:30 +02:00
Stefan Metzmacher
a7d2492cf7 selftest/Samba4: correctly upper case the netbiosname variable
metze
2011-06-24 19:09:28 +02:00
Andrew Bartlett
0ddafeba69 selftest: Cope with no binary argument being supplied to gdb_backtrace
Modern versions of gdb are better than us at working out what binary
is running, and so it is more reliable to omit the binary argument.

This change is required because samba4 no longer supplies this
argument.

Andrew Bartlett
2011-06-24 13:17:19 +10:00
Andrew Bartlett
abb72170e4 selftest: Remove %PROG% argument from 'panic action'
The debugger or script will need to work out the binary from the PID,
as %PROG% support was lost when the setup_fault() code was merged
between Samba3 and Samba4.

Andrew Bartlett
2011-06-24 13:08:04 +10:00
Rusty Russell
5eecc85423 tdb2: create tdb2 versions of various testing TDBs.
Soon, TDB2 will handle tdb1 files, but until then, we substitute.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20 11:18:36 +02:00
Andrew Bartlett
bb00f97a82 s3-selftest Add a test for 'message command'
This also provides us a way to test that the -n option to smbclient
works, as that becomes part of the filename.

Andrew Bartlett
2011-06-09 12:40:09 +02:00
Andrew Tridgell
0e1d7eb429 s4-testparm: testparm is now part of samba_tool 2011-06-06 12:26:11 +10:00
Stefan Metzmacher
8167e84073 selftest: create ncalrpcdir with 0755 permissions
We need to reset the umask in order to set to the desired permissions.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon May 23 13:26:33 CEST 2011 on sn-devel-104
2011-05-23 13:26:33 +02:00
Matthieu Patou
fae229aa3d selftest: Allow to test samba4 with ACL on read set
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-05-21 14:39:12 +04:00
Andrew Bartlett
14f99167f6 build: Remove --disable-s3build so we can rely on these subsystems
This will make it easier to write code that uses the whole codebase.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon May  9 12:25:33 CEST 2011 on sn-devel-104
2011-05-09 12:25:33 +02:00
Andrew Bartlett
a2caad24a1 selftest: don't override just-added username in plugin_s4_dc test
This will allow us to test a user added via smbpasswd as well as the
administrator added by provision.

Andrew Bartlett
2011-05-09 05:06:12 +02:00
Andrew Bartlett
f4d9b40d7f selftest: Make the ncalrpc dir common between Samba4 and Samba3.
This also avoids creating the directory, as the startup routines will
create it with the correct permissions.

Andrew Bartlett
2011-05-08 19:00:29 +02:00
Andrew Bartlett
eae061293b selftest: Add plugin_s4_dc environment
This environment uses pdb_samba4 and auth_samba4 to plug these
critical subsystems into a mixed Samba3/Samba4 DC, in a similar way to
the 'Franky' proposal.

Andrew Barltett
2011-05-08 19:00:28 +02:00
Andrew Bartlett
3eb1023d52 selftest Use die() less often, as it fails to allow cleanup 2011-05-08 10:56:27 +02:00
Andrew Bartlett
1a5955deb0 selftest: Update README 2011-05-03 07:37:07 +02:00
Stefan Metzmacher
6ae2ecc4b8 selftest: use env.SELFTEST_PREFIX instead of hardcoded "${srcdir}/st"
metze
2011-04-30 12:47:18 +02:00
Andrew Bartlett
3542bd324e selftest: Restore the s3member environment by avoiding smbcacls
This removes the need for acls on the filesystem for simple domain
member tests.  ACL tests should be written at some point...

Andrew Bartlett

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2011-04-29 16:38:16 +10:00
Andrew Bartlett
1c5cc4a2d1 s4-selftest: Don't use a hardcoded target DC name
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr 28 07:34:31 CEST 2011 on sn-devel-104
2011-04-28 07:34:31 +02:00
Andrew Bartlett
f5487b3b47 selftest: Make combined test the default when s3build is enabled 2011-04-28 14:31:32 +10:00
Andrew Bartlett
34e3501a32 selftest: Fix combination of Samba3 and Samba4 test lists
The previous code was too subtle, and tried to filter via two xfail
scripts.  The --fail-immediately for the source3 knownfail would then
fail samba4 know failures.

Andrew Bartlett

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2011-04-28 14:31:25 +10:00
Andrew Bartlett
123097e879 selftest: Print a better warning warning message when smbcacls fails.
These tests can't run on systems without posix ACLs.

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr 28 06:18:59 CEST 2011 on sn-devel-104
2011-04-28 06:18:59 +02:00
Andrew Bartlett
b44f4325bb selftest: Don't die() when the join fails
This kills off everything without a proper shutdown, and is difficult
to debug.

Andrew Bartlett
2011-04-28 05:30:21 +02:00
Andrew Bartlett
fb5e1f4a65 selftest: s3member admember test to confirm s3/s4 interopability
This checks that Samba3 joins Samba4 correctly, and allows NTLM and
Kerberos logons from a live Samba4 DC.

This needs the common krb5.conf generation logic, and because we now
override KRB5_CONFIG we must update ktest to have a valid krb5.conf.

Based on an original patch by metze

Andrew Bartlett
2011-04-28 05:30:21 +02:00
Andrew Bartlett
ab46d66101 selftest: Make overwrite of $env->{target} optional
This allows a target to be a mix of Samba3 and Samba4, and chose it's
own backend for check_env and get_log_env.

Andrew Bartlett
2011-04-28 05:30:21 +02:00
Andrew Bartlett
aa8406cadf s3-selftest: Use default name resolution methods (now that dns is emulated)
Now that we have emulated DNS, we can test Samba with the default name
resolve order.

Andrew Bartlett
2011-04-28 05:30:20 +02:00
Andrew Tridgell
ea95e0967b s3-test: log to stdout for smbd/nmbd/winbindd
this prevents error messages from logfile creation before smb.conf is
read

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Apr 28 05:29:19 CEST 2011 on sn-devel-104
2011-04-28 05:29:19 +02:00
Andrew Tridgell
7fa51fa130 selftest: we don't get valgrind errors any more with iconv
this check was causing the CP850 warning in the combined build, as the
s3 tests want CP850, but we don't have builtin support for that
charset

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Apr 27 09:31:44 CEST 2011 on sn-devel-104
2011-04-27 09:31:44 +02:00
Andrew Bartlett
2a9a9454e8 selftest: Make bindir_path much less complex
There is no need to pass it as a function pointer, just put it in 'Samba.pm'.

Andrew Bartlett
2011-04-27 11:22:07 +10:00
Andrew Bartlett
c18954775e libcli/dns Improve dns_hosts_file, using Samba3's struct dns_rr_srv
By reworking the 'fake DNS' file to use struct dns_rr_srv it should be
possible to emulate that resolver layer as well as the Samba4
sockaddr_storage* based layer.  This will then give us a common DNS
emulation for 'make test'.

Andrew Bartlett
2011-04-26 17:16:34 +10:00
Andrew Bartlett
dfb490d551 selftest Consolidate server wall clock time limits
This helps ensure that we don't have the Samba3 servers stop before
the full make test is finished.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Apr 19 09:03:07 CEST 2011 on sn-devel-104
2011-04-19 09:03:07 +02:00
Andrew Bartlett
5189cfca4e selftest: move warning about invalid environments up to selftest.pl 2011-04-19 16:13:42 +10:00
Andrew Bartlett
5439553c96 selftest: Don't specify SELFTEST_TARGET as an env variable
It is much more reliable to specify it as a direct parameter, and this
is needed for the combined 'make test'.

Andrew Bartlett
2011-04-19 16:13:42 +10:00
Andrew Bartlett
cfb4eb9d80 selftest Test for socket_wrapper support in combined samba target as well 2011-04-19 16:13:42 +10:00
Andrew Bartlett
1ac46518a7 selftest: Add hooks to enable a combined selftest run.
Andrew Bartlett
2011-04-19 14:26:59 +10:00
Andrew Bartlett
790ceec78b s4-selftest Rename Samba4 'member' test environment to s4member
This will avoid a conflict with the s3 'member' environment.

Andrew Bartlett
2011-04-19 14:26:59 +10:00
Andrew Bartlett
55cb125312 s4-selftest: Move Samba4 test interfaces out of the way of the Samba3 tests.
This avoids a conflict when we merge the test suites.
2011-04-19 14:26:59 +10:00
Andrew Bartlett
148efda795 s3-selftest Fix interface localktest6 listens on.
Andrew Bartlett
2011-04-19 14:26:59 +10:00
Andrew Bartlett
9000188fb4 selftest Add combined 'Samba' target module
To work around environment variable handling, the initialisation of
NSS_WRAPPER_WINBIND_SO_PATH is pushed in to Samba3.pm (the s3 autoconf
build still overrides this)

Andrew Bartlett
2011-04-19 14:26:59 +10:00
Andrew Bartlett
aed450df0b s4-selftest: Avoid duplicating the servers IP in the provision() sub arguments.
This should make it easier to change the IP address.

Andrew Bartlett
2011-04-19 14:26:58 +10:00
Andrew Bartlett
36d4bbfeef s3-selftest Rename s3 DC environment to s3dc
This should avoid a clash with the s4 DC environment in a future
combined 'make test'.

Andrew Bartlett
2011-04-19 14:26:58 +10:00
Andrew Bartlett
8f58b13579 s4-selftest: Stop creating netbios aliases everywhere
This reduces some of the clutter when we have quite so many server
configurations starting.

The one case that actually needs an alias (dc environment for the
test_nmblookup.sh test) will still keep it.

Andrew Bartlett
2011-04-19 14:26:58 +10:00
Andrew Bartlett
d041ed233d selftest: put the target on the environment
This will allow us to have a 'switch' target type that creates
environments from Samba3 or Samba4 as required.

Andrew Bartlett
2011-04-19 10:03:49 +10:00
Andrew Bartlett
93f8f7b579 selftest: Allow the top level build to run the samba4 or samba3 tests
This is selected with for example

./buildtools/bin/waf test --target=samba3

Andrew Bartlett
2011-04-16 11:43:05 +02:00
Andrew Bartlett
d9e29c0250 selftest Remove selftest of the test subsystem
The intereactions between selftest.pl and the target are now too
complex to unit test like this any more.

Andrew Bartlett
2011-04-16 11:43:05 +02:00
Andrew Bartlett
47b7c6fccf selftest: Move Samba4 selftest wscript to the top level 2011-04-16 11:43:04 +02:00
Andrew Bartlett
1870d25495 selftest Add binary mappings for samba3 selftest
This will help us have a top level 'make test', working around the
fact that the --eanble-s3build has different names for some of these
binaries, without fixing the names forever (we can just change the
mapping later).

Andrew Bartlett
2011-04-16 11:43:04 +02:00
Andrew Bartlett
48bb69ef00 selftest: Start using the binary mapping at the python layer as well 2011-04-16 11:43:04 +02:00
Andrew Bartlett
4fd6ebf544 selftest: Remove duplication between BUILDIR and BINDIR
Just have BINDIR, and have it default to ./bin

Andrew Bartlett
2011-04-16 11:43:04 +02:00
Andrew Bartlett
cfb44f63a4 selftest: Remove unused BUILDDIR_ABS environment variable 2011-04-16 11:43:04 +02:00
Andrew Bartlett
831955ddf2 selftest: Provide a single bindir_path function across all targets
This will allow a mapping to be made between things like smbtorture4
-> smbtorture that is correct for the different build environments.

Andrew Bartlett
2011-04-16 11:43:04 +02:00
Andrew Bartlett
bb15aa58bc s3/selftest Tear down the environment if we fail to connect
This removes the exit(1) that previously didn't tear down the
environment correctly, and instead just fails to set it up, allowing
the rest of the script handle that with more grace.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Apr 12 01:53:37 CEST 2011 on sn-devel-104
2011-04-12 01:53:37 +02:00
Stefan Metzmacher
02c6f9d0d9 selftest:Samba4: setup DC_* variables in provision_rpc_proxy()
The "rpc_proxy" should behave like "member", just with a different
configuration.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Apr  7 15:52:25 CEST 2011 on sn-devel-104
2011-04-07 15:52:25 +02:00
Andrew Bartlett
4cdbb88c4b s3-selftest actually wait for smbclient to connect
This means that we actually have a working smbd.  The previous code didn't know if it worked or not, and so created flaky tests.

Andrew Bartlett
2011-04-07 14:35:36 +10:00
Andrew Bartlett
1862e904a8 s3-selftest Fix use of the 'fake DNS' file
This ensures we don't use netbios before the hosts file and that we do
fill in the fake DNS zone correctly for the way we invoke smbtorture4.
Currently this works because the realm in client.conf is "", if this
changes then this will need to change too (perhaps an additional
entry).

Andrew Bartlett
2011-04-07 14:35:36 +10:00
Andrew Bartlett
d84a8d5343 s3-selftest Add tests to show kerberos works across a password change
It is important that a machine account password change does not
invalidate existing tickets.

This is only for the default kerberos method with a password in
secrets.tdb.  The keytab based methods are still not tested.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr  6 05:24:48 CEST 2011 on sn-devel-104
2011-04-06 05:24:48 +02:00
Andrew Bartlett
747ebc118a s3-selftest names into DNS hosts file to avoid NBT lookups
NBT lookups cause trouble and variablity in 'make test', so it's much
better if we just use the fake DNS code.  This code is only used by
smbtorture4 at this time, but the other client tools are generally
told to contact by IP address.

We need to contact by name to test Kerberos, and this should make the
kerberos tests much more reliable.

Andrew Bartlett
2011-04-06 12:34:58 +10:00
Andrew Bartlett
6351dee4d8 s3-selftest Add testing of kerberos login
This uses a pre-calculated credentials cache, that should be valid
until 2036.

Andrew Bartlett
2011-04-04 19:48:57 +10:00
Andrew Bartlett
ffb6003302 s3-selftest Disable log rotation in 'make test' 2011-04-04 19:48:43 +10:00
Andrew Bartlett
c8bc7089f5 s3-selftest Add tests for security=server
Andrew Bartlett
2011-03-29 00:00:23 +02:00
Björn Baumbach
2bfe9d1772 s3:selftest: fix Samba3.pm deprecated idmap config
Replace deprecated idmap uid and gid option with new
idmap config * : range
2011-03-22 22:49:58 +01:00
Stefan Metzmacher
ce45027816 selftest/Samba3: use 'debug pid=yes'
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Mar 19 10:55:34 CET 2011 on sn-devel-104
2011-03-19 10:55:34 +01:00
Andreas Schneider
0a2251da54 selftest: Added ncalrpc dir to config.
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08 11:41:29 +01:00
Stefan Metzmacher
e90d5ab561 selftest/target/Samba4: regenerate the krb5.conf after the rodc join
The RODC should be used as KDC, which will forward requests to the RWDC
if required.

metze
2011-03-04 21:19:05 +01:00
Stefan Metzmacher
a8b3958f38 selftest/target/Samba4: splitout a mk_krb5_conf() function
metze
2011-03-04 21:19:05 +01:00
Andrew Bartlett
985c7da604 selftest: Improve gdb_backtrace to run in batch mode
Following Tridge's advice, we need to have no input (/dev/null) and
-batch for reliable opeation on big backtraces.

We should also use --pid, and let gdb find the binary

Andrew Bartlett
2011-02-22 16:20:10 +11:00
Andrew Bartlett
6c1ce36ec9 selftest pass in srcdir into Samba3 target module 2011-02-22 16:20:10 +11:00
Andrew Bartlett
a82d9e4e72 s3-selftest convert tests.sh to python
This should allow us a much better chance of invoking the subunit
wrappers in the right way, at the right level.

Andrew Bartlett
2011-02-22 16:20:10 +11:00
Andrew Bartlett
0b066b88df selftest split $PERL into multiple arguments for Test::More check 2011-02-22 16:20:10 +11:00
Andrew Bartlett
a056792294 selftest move selftesthelpers to a top level helper script 2011-02-22 16:20:09 +11:00
Andrew Bartlett
1650da8a99 Add tests for various s3 auth modes 2011-02-22 14:50:14 +11:00
Andrew Tridgell
3bcb693e27 s4-test: fixed test_samba4.pl for top level build
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andrew Tridgell
b038aca5c8 s4-loadparm: removed "setup directory" option
the correct setup directory is known at both build time and install
time using dyn_SETUPDIR, so we no longer have any need to override it

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andrew Tridgell
6484da4859 s4-test: allow make test to work from top level directory
this fixes the path assumptions in Samba4 make test to allow it to
work from the top level directory.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andreas Schneider
d0d5d59943 s3-smbd: Disable the endpoint mapper by default. 2011-02-02 12:44:20 +01:00
Jeremy Allison
86d06ad103 Fix "make test" - ensure nmbd runs with -S (log to stdout).
Also ensure nmbd socket directory isn't created (nmbd will create it).

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Jan 11 00:30:52 CET 2011 on sn-devel-104
2011-01-11 00:30:52 +01:00
Jeremy Allison
04987bd843 Explicitly set "nmbd: socket dir" in the test environment.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Jan  8 07:17:22 CET 2011 on sn-devel-104
2011-01-08 07:17:22 +01:00
Stefan Metzmacher
3b0425c8c7 selftest: setup $ENV{TEST_DATA_PREFIX}
metze
2010-12-27 15:37:55 +01:00
Günther Deschner
a43a1d9226 s3-selftest: support differing VFSLIBDIR in autoconf and waf build.
With this change make test in the s3 waf build (w/o s4 smbtorture yet) works!

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Dec 13 13:06:05 CET 2010 on sn-devel-104
2010-12-13 13:06:05 +01:00
Jelmer Vernooij
002acbbbd0 selftest: Support multiple instances of $LISTOPT. 2010-12-11 18:48:05 +01:00
Jelmer Vernooij
3b1ed52f2f filter-subunit: Add --list argument. 2010-12-11 18:48:05 +01:00
Jelmer Vernooij
5f6dd9a608 selftest: Check exit code when listing tests. 2010-12-10 03:04:06 +01:00
Jelmer Vernooij
a957d8c80f selftest: Rename $LIST to $LISTOPT for consistency with testrepository. 2010-12-10 03:04:06 +01:00
Jelmer Vernooij
e6974b0ff0 selftest: add --list option. 2010-12-10 03:04:06 +01:00
Jelmer Vernooij
34adc745ef selftest: Document --testenv in --help output, remove documentation for
now obsolete --analyse-cmd.
2010-12-10 03:04:06 +01:00
Kai Blin
1f2518df5a s4 libcli: Add libcli_echo lib and torture test
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Dec  9 23:57:03 CET 2010 on sn-devel-104
2010-12-09 23:57:03 +01:00
Günther Deschner
6a93be43dc s3-selftest: add WIN40 directory to print$ share.
Guenther
2010-11-29 15:35:19 +01:00
Matthieu Patou
c254527386 build: update gdb_backtrace to make it search for gdb66 as it work on freebsd
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Nov 28 16:37:08 CET 2010 on sn-devel-104
2010-11-28 16:37:08 +01:00
Matthieu Patou
06beebd1e4 fix bad shell 2010-11-28 17:50:45 +03:00
Matthieu Patou
7e2b315ca0 add handling for solaris
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Nov 28 13:32:21 CET 2010 on sn-devel-104
2010-11-28 13:32:21 +01:00
Matthieu Patou
e5eaed0180 remove useless debug message :-) 2010-11-27 17:18:19 +01:00
Jelmer Vernooij
3483adaf0a selftest: Allow using ldb* utilities from system. 2010-11-27 03:48:20 +01:00
Matthieu Patou
90aa16122e Make log level of the server configurable in make test
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Tue Nov 23 22:36:37 CET 2010 on sn-devel-104
2010-11-23 22:36:37 +01:00
Jelmer Vernooij
7f32c21ef0 selftest: Even if setting up an environment failed, the next tests may
still work.
2010-11-21 23:12:03 +01:00
Jelmer Vernooij
bbd77cbbac subunithelper: Exit with 1 if more than zero testsuites failed or
errorred.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Nov 21 21:13:00 CET 2010 on sn-devel-104
2010-11-21 21:13:00 +01:00