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
Jelmer Vernooij
dcadb90bd3
subunit: Use RemoteError when passing errors to upstream subunit.
2010-09-14 10:54:28 +02:00
Jelmer Vernooij
1e5ea0be84
subunit.pm: Fold Subunit::Filter into Subunit, trim further.
2010-09-14 10:54:28 +02:00
Jelmer Vernooij
c0923cfac1
subunit.pm: Remove output_msg/control_msg functions.
2010-09-14 10:54:28 +02:00
Jelmer Vernooij
7d4968e161
selftest: Remove testsuite parsing.
2010-09-14 10:54:28 +02:00
Jelmer Vernooij
d3960f6b40
subunit.pm: Simplify subunit handling in perl.
2010-09-14 10:54:28 +02:00
Jelmer Vernooij
49411fa107
subunit.pm: Pass through milliseconds in time reports.
2010-09-14 10:54:27 +02:00
Jelmer Vernooij
9f3a43c018
selftest: Report times in milliseconds rather than seconds.
2010-09-14 10:54:27 +02:00
Jelmer Vernooij
d67eeafc4d
subunit: Use standard subunit functions for reproducing subunit streams.
2010-09-14 10:54:27 +02:00
Jelmer Vernooij
d2fb9ce472
subunit: Remove unused methods.
2010-09-14 10:54:27 +02:00
Jelmer Vernooij
b61cc18972
subunit: Use standard functions for addSuccess, addExpectedFail,
...
addFailure, addSkip.
2010-09-14 10:54:27 +02:00
Jelmer Vernooij
c1fe7b498a
subunit: Use standard addError method implementation.
2010-09-14 10:54:27 +02:00
Jelmer Vernooij
881f610f06
subunit: Pass TestCase objects to startTest rather than test name strings.
2010-09-14 10:54:27 +02:00
Jelmer Vernooij
1626dc2bc9
subunit: Use subunit standard functions for handling time and progress.
2010-09-14 10:54:27 +02:00
Jelmer Vernooij
fb1c966652
subunit: Use standard subunit test protocol client, use standard name for startTest.
2010-09-14 10:54:27 +02:00