Andrew Tridgell
a162b1a2d8
s4-join: switch over to the new DC join in make test
2010-11-06 14:36:26 +11:00
Matthieu Patou
ac3f8d859d
fix in_screen so that it works on os that don't chdir to $PWD
...
That's the case on freebsd 7.2
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Nov 5 09:27:19 UTC 2010 on sn-devel-104
2010-11-05 09:27:19 +00:00
Jelmer Vernooij
4f87f8f33e
filter-subunit: Add --fail-on-empty argument.
2010-11-03 17:05:19 +00:00
Andrew Bartlett
b8a0eb749f
s4-selftest Allow weak crypto so we can test DES-only behaviour.
...
Andrew Bartlett
2010-11-02 22:00:54 +11: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
Matthieu Patou
3cef97ad0e
unit tests: remove trailling white spaces
...
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Oct 31 23:10:55 UTC 2010 on sn-devel-104
2010-10-31 23:10:55 +00:00
Matthieu Patou
fda0f614d5
unit tests: allow make test to correctly and quickly exit in case of problem while provisionning a test environment
2010-10-31 22:28:15 +00: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
Günther Deschner
9dd467b2d5
s3-selftest: add vfs_modulesdir variable for both test systems.
...
Guenther
2010-10-28 14:33:19 +00:00
Kai Blin
b73a05e4e1
s4 net: rename to samba-tool in order to not clash with s3 net
...
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Oct 28 07:25:16 UTC 2010 on sn-devel-104
2010-10-28 07:25:16 +00: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 Bartlett
f4c82c621d
s4-selftest Make GDB_PROVISION work again
...
gdb --args won't run the #!/usr/bin/evn python
Andrew Bartlett
2010-10-18 11:13:04 +00:00
Matthieu Patou
9d958ce582
build: make make tests SCREEN=1 work on freebsd
2010-10-10 16:03:35 +04:00
Kamen Mazdrashki
27f72fb19b
subunithelper: Don't access 'message' attribute directly as it deprecated
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 10 01:50:09 UTC 2010 on sn-devel-104
2010-10-10 01:50:09 +00:00
Günther Deschner
505eaa9493
s3-selftest: enable smb2 torture tests against samba3.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Oct 5 14:38:07 UTC 2010 on sn-devel-104
2010-10-05 14:38: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
Andrew Tridgell
b772871f4c
s4-selftest: added --screen option for test
...
you can now do:
make test TESTS="some test" SCREEN=1
while in GNU screen, and all the samba servers will launch in their
own new screen, named after the server name.
You can also do:
make test TESTS="some test" SCREEN=1 VALGRIND_SERVER=1
to run valgrind on each samba server, or
make test TESTS="some test" SCREEN=1 GDBTEST=1
to run gdb on each server
2010-10-02 21:11:52 -07:00
Andrew Tridgell
507c413e48
s4-selftest: fixed up exit codes on signals for make test
...
also set $ENVNAME in launched servers
2010-10-02 21:11:52 -07:00
Jelmer Vernooij
5cdef70823
subunithelper: Remove accidentally added line.
2010-10-02 23:32:12 +02:00
Jelmer Vernooij
14efa95593
subunithelper: Fix format time.
2010-10-02 22:31:31 +02:00
Jelmer Vernooij
72119de02b
subunithelper: Make filter options optional.
2010-10-02 18:41:14 +02:00
Jelmer Vernooij
d7edb40fca
format-subunit: Split out summary file writing.
2010-10-02 18:40:44 +02:00
Jelmer Vernooij
4ece674a99
selftest: Move plain text formatter to subunithelper.
2010-10-02 17:02:02 +02:00
Jelmer Vernooij
4190bd4e34
land: Move stage building into a separate class so we can have subclasses (e.g. subunit-specific).
2010-10-02 13:14:53 +02: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
124d9fc4d1
selftest: Avoid accessing deprecated BaseException.message.
...
Thanks to Andreas for pointing this out.
2010-09-30 10:31:03 +02:00
Jelmer Vernooij
02f87d1c36
format-subunit: Display number of failed tests even if there are no
...
failed testsuites.
2010-09-28 09:12:39 +02:00
Jelmer Vernooij
36ffe4f467
selftest: Abort early on SIGPIPE.
2010-09-28 09:12:39 +02:00
Jelmer Vernooij
7ac4a71072
Add dedicated exception for immediate failure in filter-subunit, don't raise it on known exceptions.
2010-09-28 09:12:39 +02:00
Andrew Tridgell
71f88c45a7
filter-subunit: added a --fail-immediately option
2010-09-28 09:12:38 +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
6abe823ce6
subunithelper: Cope with errors outside of testsuites.
2010-09-22 17:48:23 -07:00
Jelmer Vernooij
31d5ac0540
selftest: Let tests add prefix to tests by themselve.
2010-09-22 17:48:23 -07:00
Jelmer Vernooij
7c1b00f4a8
selftest: Use idlist testing for python tests.
2010-09-21 22:54:37 -07:00
Jelmer Vernooij
bf907d2c4a
selftest: Support running individual tests using idlists, for testsuites that support them.
2010-09-21 22:54:35 -07:00
Jelmer Vernooij
e8b20039a7
selftest: Fix generation of test id file.
2010-09-21 22:54:34 -07:00
Jelmer Vernooij
bad0041390
s3-selftest: Move Samba3-specific script to source3/selftest.
2010-09-16 00:15:29 +00:00
Jelmer Vernooij
adf8ca6ff8
subunit: Re-add outputmsg.
2010-09-15 20:09:25 +02:00
Andrew Tridgell
99f514f233
s4-selftest: use the full domain name in joins
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15 15:39:36 +10:00
Jelmer Vernooij
d286b1755c
selftest: Error out rather than die() when setting up an environment
...
fails.
2010-09-14 17:24:04 +02:00
Jelmer Vernooij
d98754ca93
selftest: If setting up environment fails, mark testsuites that use it as
...
errorring, don't skip it.
2010-09-14 17:24:04 +02:00