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
Jelmer Vernooij
8530d5afde
subunit: Initial work on using the standard TestResult class.
2010-09-14 10:54:26 +02:00
Stefan Metzmacher
f101349c73
selftest/s3-selftest.sh: knownfailure filtering for non-build-farm make test
...
metze
2010-09-10 17:21:34 +02:00
Günther Deschner
9962462278
s3-selftest: rename printer "print4" to "lp".
...
This should trigger a false error condition in our code.
Guenther
2010-09-10 00:26:26 +02:00
Andrew Tridgell
6bfe8b74aa
s4-test: added a RODC to our testing
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-09 21:39:24 +10:00
Jelmer Vernooij
851ad13047
selftest: Cope with parentheses in testnames in --load-list.
2010-09-05 03:16:48 +02:00
Jelmer Vernooij
474c98fe26
selftest/subunit: Parse timestamps generated by upstream subunit.
2010-09-05 03:14:44 +02:00
Jelmer Vernooij
ef9657017c
selftest: Print out unmatched tests when using --load-list.
2010-09-05 02:20:56 +02:00
Jelmer Vernooij
9550765304
testr: Fix configuration to use idfile, in case more than a couple of
...
hundred tests fail.
2010-09-04 21:13:37 +02:00
Jelmer Vernooij
bde18c6218
selftest: Don't make printing the log output a side-effect of check_env(), do it manually.
2010-09-04 21:08:35 +02:00
Jelmer Vernooij
3c2b733698
selftest: Remove stop() method, not used anywhere.
2010-09-04 18:24:02 +02:00
Jelmer Vernooij
7154e93b21
selftest/samba4: Remove references to Samba34.pm, which no longer
...
exists.
2010-09-04 18:18:55 +02:00
Jelmer Vernooij
025494b6bd
selftest: Refer to subunit README rather than documenting locally.
2010-09-04 18:03:19 +02:00
Andrew Tridgell
48323d88cc
selftest: run client tests with log level 1
...
this PIDL print functions to display
2010-09-04 12:29:10 +10:00
Andrew Tridgell
b7060c7c5c
s4-selftest: try DNS before bcast in selftest
...
this better reflects real usage
2010-09-02 13:37:08 +10:00
Kamen Mazdrashki
d15a7d9099
s4-testenv: Synchronize DCs after 'net vampire'
...
During 'net vampire', vampired DC adds information in its own
database, se we need to force replicate vampired_dc to the
first DC to be sure everything is in sync prior starting tests
2010-08-28 23:38:58 +03:00
Stefan Metzmacher
8e6f673929
selftest/Subunit.pm: fix perl warnings
...
Argument "\n" isn't numeric in numeric ne (!=) at selftest/Subunit.pm line 136
metze
2010-08-28 10:59:18 +02:00
Günther Deschner
433c08045e
s3-selftest: do not remove nsswrapper environment when running smbtorture4.
...
Guenther
2010-08-26 18:36:41 +02:00
Andreas Schneider
d132b3fbc0
s3-build: Don't paste the summary.
...
The buildfarm outputs the summary if it is available and use the exit
status of the filter or subunit formatter as exit code.
2010-08-26 13:42:08 +02:00
Jelmer Vernooij
3c7a7bbb9a
subunit: Make sure "]" in failure reason ends up on its own line, so the
...
next subunit parser in the line parses it correctly.
2010-08-26 04:04:37 +02:00
Jelmer Vernooij
64564f7338
subunithelper: Pass along lines as normal output when ignoring them for not containing commands.
2010-08-26 04:04:37 +02:00
Andreas Schneider
2eff142cce
s3-build: Use a wrapper script to run the tests.
...
This fixes the buildfarm and returns the correct exit code of selftest.
2010-08-25 12:39:52 +02:00
Stefan Metzmacher
de632de6ef
selftest/Samba4: set dreplsrv:periodic_startup_interval = 0
...
metze
2010-07-09 09:27:16 +02:00
Matthias Dieter Wallnöfer
b200d8a5ca
s4:selftest - activate the lanman password changes
...
This is needed for a working "OemChangePasswordUser2" operation.
2010-06-28 14:51:05 +02:00
Jelmer Vernooij
653b30f91f
selftest: Clarify generation of idlist option.
2010-06-25 11:32:59 +02:00
Andrew Bartlett
ff5ace20a2
s4:selftest Fix up netbios names for rpc_echo test
2010-06-23 20:10:12 +10:00
Andrew Bartlett
aba99e4464
s4:selftest For the moment the server role '2008_R2' is case sensitive
2010-06-23 20:10:11 +10:00
Andrew Bartlett
58a7b9af3f
s4:selftest Change netbios aliases to shorter names.
...
This makes the netbios names more sensible, and the aliases shorter.
(the name localfl2008rc2dc7 was too long...)
Andrew Bartlett
2010-06-23 20:10:10 +10:00
Andrew Bartlett
1acd49c524
s4:selftest Add 2003 and 2008R2 test environments and tests
...
These tests were chosen particularly because they are known to test things
that vary across the functional levels.
Andrew Bartlett
2010-06-23 20:10:08 +10:00
Jelmer Vernooij
237ab66f6c
selftest: Use scripted testparm.
2010-06-20 14:14:47 +02:00
Stefan Metzmacher
22eb6d7b6b
selftest/Samba4: make the naming of passwords more consistent
...
metze
2010-06-17 09:12:00 +02:00
Stefan Metzmacher
f26c0e5456
selftest/Samba4: let localfl2000dc use 127.0.0.5
...
Now we have 127.0.0.6-10 available for more servers.
metze
2010-06-17 09:11:59 +02:00
Stefan Metzmacher
8aed54adbf
selftest/Samba4: let localvampiredc use 127.0.0.2
...
metze
2010-06-17 09:11:59 +02:00
Stefan Metzmacher
6a0db03c80
selftest: use 127.0.0.11-16 for the client
...
This gives more room for servers.
Note: socket_wrapper currently only supports 127.0.0.1-16
see MAX_WRAPPED_INTERFACES.
metze
2010-06-17 09:11:59 +02:00
Stefan Metzmacher
1e8d025a3c
selftest/Samba3: remove unused create_clientconf() function
...
metze
2010-06-17 09:11:58 +02:00
Andrew Bartlett
0687a0c9dc
s4:selftest Change domain name for functional level 2000 DC
2010-06-16 09:57:52 +10:00
Andrew Bartlett
f9018bc0ea
s4:selftest Add test environment for functional level 2000
...
This required that we pass the name of the realm down as a parameter,
so we can start up two different realms.
Andrew Bartlett
2010-06-16 09:57:52 +10:00
Andrew Bartlett
697cd13978
s4:selftest Add vampire_dc test environment
...
This starts a domain controller, after running 'net vampire' to
populate it. We don't use it as the 'all' environment yet, as the
rest of the code isn't quite ready to handle it.
Andrew Bartlett
2010-06-16 09:57:51 +10:00
Andrew Bartlett
0800c9e6f1
s4:selftest Remove unused basedn specification in selftest env setup
2010-06-15 10:53:43 +10:00
Günther Deschner
3854f0708e
s3-selftest: Fix blackbox smbclient s3 tests during make selftest.
...
Guenther
2010-06-02 15:37:50 +02:00
Karolin Seeger
ea5c85aa42
selftest: Fix typo in comment.
...
Karolin
2010-06-01 09:45:19 +02:00
Jelmer Vernooij
598656985a
selftest: list.remove raises ValueError rather than KeyError.
2010-05-30 17:05:49 +02:00
Günther Deschner
a8d308faff
s3-selftest: fix chmod commands in provisioning.
...
Guenther
2010-05-29 00:38:21 +02:00
Günther Deschner
5232ce56cd
s3-selftest: make sure provisioned s3 looks the same in make selftest as in make test.
...
This fixes some tests that were previously failing.
Guenther
2010-05-29 00:12:15 +02:00
Matthieu Patou
a79b446e11
s4:smb_server: add dfs smbtorture to selftests
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-18 15:31:14 +02:00
Jelmer Vernooij
e22722ae64
selftest: Cope with empty testsuite results in more places.
2010-05-18 01:40:20 +02:00
Jelmer Vernooij
11ec2916a7
selftest: Cope with testsuites without any output whatsoever (probably an error though).
2010-05-18 01:40:20 +02:00
Matthias Dieter Wallnöfer
01347844f5
s4:selftest - change test passwords
...
The passwords need to be more complex to meet the new complexity criteria.
2010-05-10 12:20:26 +02:00
Andrew Tridgell
3dd50b2922
s4-test: make spnupdate work without make install
...
thanks to metze for noticing this
2010-04-27 19:47:23 +10:00
Günther Deschner
2a2de10ac6
s3-selftest: add print$ share with two arch dirs.
...
Guenther
2010-04-23 13:51:02 +02:00
Andrew Bartlett
fe3d872656
s4:selftest Ensure we don't fsync() all day in the LDAP backend test
...
Passing this option greatly reduces the time spent in the test.
Andrew Bartlett
2010-04-22 18:37:19 +10:00