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

20 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
Stefan Metzmacher
6ae2ecc4b8 selftest: use env.SELFTEST_PREFIX instead of hardcoded "${srcdir}/st"
metze
2011-04-30 12:47:18 +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
1ac46518a7 selftest: Add hooks to enable a combined selftest run.
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
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
47b7c6fccf selftest: Move Samba4 selftest wscript to the top level 2011-04-16 11:43:04 +02:00