1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3: Add subunit-test target.

This commit is contained in:
Jelmer Vernooij 2010-10-01 13:30:01 +02:00
parent 9af570a2ef
commit f70a98605e
2 changed files with 7 additions and 1 deletions

View File

@ -3400,6 +3400,7 @@ test:: all torture timelimit
SELFTESTDIR="$(selftestdir)" SELFTESTPREFIX="$(selftest_prefix)" \
SOURCEDIR="$(srcdir)" \
RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM)" \
SUBUNIT_FORMATTER="$(SUBUNIT_FORMATTER)" \
PERL="$(PERL)" PYTHON="$(PYTHON)" \
$(srcdir)/selftest/s3-selftest.sh
@ -3409,6 +3410,9 @@ test-%:
buildfarm-test:
$(MAKE) test RUN_FROM_BUILD_FARM=yes
subunit-test:
$(MAKE) test SUBUNIT_FORMATTER=cat
SELFTEST_TESTENV = dc
testenv:

View File

@ -1,7 +1,9 @@
#!/bin/sh
FILTER_XFAIL="${PYTHON} -u ${SELFTESTDIR}/filter-subunit --expected-failures=${SOURCEDIR}/selftest/knownfail"
SUBUNIT_FORMATTER="${PYTHON} -u ${SELFTESTDIR}/format-subunit --prefix=${SELFTESTPREFIX} --immediate"
if [ "x${SUBUNIT_FORMATTER}" = x"" ]; then
SUBUNIT_FORMATTER="${PYTHON} -u ${SELFTESTDIR}/format-subunit --prefix=${SELFTESTPREFIX} --immediate"
fi
cleanup_and_exit() {
if test "$1" = 0 -o -z "$1"; then