summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-08-15 13:17:36 +0200
committerAndreas Schneider <asn@samba.org>2010-08-15 13:17:36 +0200
commit3d447e01603c9289d027730565c1771585b19dde (patch)
tree74260ead052a501331fa0d4b12774780785c25ef /source3
parent98187fe3092273713b7ac9f8dada01bc5485c7ef (diff)
downloadsamba-3d447e01603c9289d027730565c1771585b19dde.tar.gz
samba-3d447e01603c9289d027730565c1771585b19dde.tar.bz2
samba-3d447e01603c9289d027730565c1771585b19dde.zip
s3-test: Try to fix the build farm subunit parsing.
Diffstat (limited to 'source3')
-rw-r--r--source3/Makefile.in22
1 files changed, 19 insertions, 3 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index 1eb1dbb59a..755fdb2823 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -55,6 +55,7 @@ WINBIND_NSS_LDSHFLAGS=$(PICFLAG) @WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ -lc @LDSHFLAG
AWK=@AWK@
DYNEXP=@DYNEXP@
PERL=@PERL@
+PYTHON=@PYTHON@
LIBDL=@LIBDL@
PIDL_ARGS=@PIDL_ARGS@
@@ -3297,8 +3298,11 @@ selftestdir = ../selftest
S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
+FILTER_XFAIL = $(PYTHON) -u $(selftestdir)/filter-subunit --expected-failures=$(srcdir)/selftest/knownfail
SUBUNIT_FORMATTER = $(PYTHON) $(selftestdir)/format-subunit --immediate
+FORMAT_TEST_OUTPUT = $(FILTER_XFAIL) | $(SUBUNIT_FORMATTER)
+ifeq ($(RUN_FROM_BUILD_FARM),yes)
test:: all torture timelimit
@LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
@@ -3309,9 +3313,21 @@ test:: all torture timelimit
--testlist="$(srcdir)/selftest/tests.sh|" \
--exclude=$(srcdir)/selftest/skip \
--socket-wrapper $(TESTS) | \
- $(PYTHON) $(selftestdir)/filter-subunit \
- --expected-failures=$(srcdir)/selftest/knownfail | \
- $(SUBUNIT_FORMATTER)
+ $(FILTER_XFAIL) --strip-passed-output
+ test -f ${selftest_prefix}/summary && cat ${selftest_prefix}/summary
+else
+test:: all torture timelimit
+ @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
+ SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
+ PERL="$(PERL)" PYTHON="$(PYTHON)" \
+ NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/@WINBIND_NSS@" \
+ $(PERL) $(selftestdir)/selftest.pl \
+ --prefix=${selftest_prefix} --target=samba3 \
+ --testlist="$(srcdir)/selftest/tests.sh|" \
+ --exclude=$(srcdir)/selftest/skip \
+ --socket-wrapper $(TESTS) | \
+ $(FORMAT_TEST_OUTPUT)
+endif
test-%:
$(MAKE) test TESTS=$*