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

123 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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 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
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
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
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
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
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
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 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
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
Jelmer Vernooij
002acbbbd0 selftest: Support multiple instances of $LISTOPT. 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
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
Andrew Tridgell
43f7c9ca26 s4-test: we don't need to set LDB_MODULES_PATH any more 2010-11-01 18:55:19 +11:00
Andrew Tridgell
a00657db75 s4-test: don't override modules dir
it is set correctly during the build
2010-10-30 23:49:02 +11:00
Andrew Tridgell
ac8e910686 s4-modules: remove LD_SAMBA_MODULE_PATH
this isn't needed now that we automatically get the module path right
in our build and install trees

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-30 23:49:01 +11:00
Andrew Tridgell
75d57dbc25 selftest: terminate selftest if we can't setup the environment 2010-10-19 14:53:39 +11:00
Matthieu Patou
b1a13e5e14 selftest: correct the import of Time::HighRes
The "use" is always evaluated first even if enclosed into a if. So
on plateform without Time::Hires (ie. sun8 in the build farm). This
leads to an error.

Instead we use the synthax require Module + Module->import("function")
2010-10-18 19:09:07 +00:00
Andrew Tridgell
dfb664a182 s4-selftest: support 'make testenv SCREEN=1'
this can be used to start a test envioronment in screen windows.

Use:

  make testenv SCREEN=1 SELFTEST_TESTENV=dc

to launch just one environment (in this case, "dc")
2010-10-02 21:11:53 -07:00
Jelmer Vernooij
fbee3586fd selftest: Let selftest provide the tempdir, rather than creating it as sideeffect of tests.py. 2010-10-01 01:31:06 +00:00
Jelmer Vernooij
36ffe4f467 selftest: Abort early on SIGPIPE. 2010-09-28 09:12:39 +02:00
Jelmer Vernooij
ba5d034d53 selftest: If a testsuite is killed by a signal, let selftest die. 2010-09-25 12:20:56 -07:00
Andrew Bartlett
0bc3e15931 selftest Don't run 'speed' tests for very long
'make test' is too long, and the main thing we need with these
tests is to ensure they don't segfault - there is no need to benchmark
every box in the build farm, and we have no 'fail' metric in any case.

Andrew Bartlett
2010-09-24 09:25:44 +10:00
Jelmer Vernooij
e74b7091cd selftest: Pass prefix to setup_env function. 2010-09-23 11:36:12 -07:00
Jelmer Vernooij
4c3985b584 selftest: Use variable for clientdir. 2010-09-23 11:36:12 -07:00
Jelmer Vernooij
20c95cf685 selftest: Fix testsuite counts when running only a limited number of
testsuites.
2010-09-22 22:29:09 -07:00
Jelmer Vernooij
3d0e6db9dc selftest: Fix idlist running. 2010-09-22 22:29:09 -07:00
Jelmer Vernooij
9bce783878 selftest: Fix use of --load-list. 2010-09-22 22:29:08 -07:00
Jelmer Vernooij
7e31704762 selftest: Remove unused --analyse argument. 2010-09-22 17:48:25 -07:00
Jelmer Vernooij
31d5ac0540 selftest: Let tests add prefix to tests by themselve. 2010-09-22 17:48:23 -07:00