test_tmpdir = "%s/tmp" % testbase
os.environ['TMPDIR'] = test_tmpdir
+if options.enable_coverage:
+ LCOV_CMD = "cd ${TEST_SOURCE_DIR} && lcov --capture --directory . --output-file ${LOG_BASE}/${NAME}.info --rc 'geninfo_adjust_src_path=${TEST_SOURCE_DIR}/'"
+else:
+ LCOV_CMD = 'echo "lcov skipped since no --enable-coverage specified"'
cleanup_list = []
"--exclude-env=schema_dc "
"'",
"text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("install", "make install", "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain"),
("clean", "make clean", "text/plain")],
"--include-env=nt4_dc_schannel "
"--include-env=nt4_member "
"'", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("install", "make install", "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain"),
("clean", "make clean", "text/plain")],
"--include-env=maptoguest "
"--include-env=simpleserver "
"'", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain")],
"samba-ad-member": [("random-sleep", "script/random-sleep.sh 300 900", "text/plain"),
"--include-env=ad_member_idmap_ad "
"--include-env=ad_member_rfc2307 "
"'", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain")],
"samba-ad-dc-1": [("random-sleep", "script/random-sleep.sh 1 1", "text/plain"),
"--include-env=ad_dc_no_nss "
"--include-env=ad_dc_no_ntlm "
"'", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain")],
"samba-ad-dc-2": [("random-sleep", "script/random-sleep.sh 1 1", "text/plain"),
"--include-env=vampire_2000_dc "
"--include-env=rodc "
"'", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain")],
"samba-ad-dc-3": [("random-sleep", "script/random-sleep.sh 1 1", "text/plain"),
"--include-env=preforkrestartdc "
"--include-env=proclimitdc "
"'", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain")],
"samba-ad-dc-4": [("random-sleep", "script/random-sleep.sh 1 1", "text/plain"),
"--include-env=fl2008dc "
"--include-env=fl2008r2dc "
"'", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain")],
"samba-ad-dc-5": [("random-sleep", "script/random-sleep.sh 1 1", "text/plain"),
"TESTS='"
"--include-env=ad_dc_default "
"'", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain")],
"samba-ad-dc-6": [("random-sleep", "script/random-sleep.sh 1 1", "text/plain"),
"TESTS='"
"--include-env=ad_dc_slowtests "
"'", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain")],
"--include-env=schema_dc "
"--include-env=schema_pair_dc "
"'", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain")],
# We split out the ad_dc_ntvfs tests (which are long) so other test do not wait
"TESTS='"
"--include-env=ad_dc_ntvfs "
"'", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain")],
# run the backup/restore testenvs separately as they're fairly standalone
"--include-env=labdc "
"--include-env=ad_dc_backup "
"'", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain")],
"samba-test-only": [("configure", "./configure.developer --with-selftest-prefix=./bin/ab --abi-check-disable" + samba_configure_params, "text/plain"),
("make", "make -j", "text/plain"),
- ("test", 'make test FAIL_IMMEDIATELY=1 TESTS="${TESTS}"', "text/plain")],
+ ("test", 'make test FAIL_IMMEDIATELY=1 TESTS="${TESTS}"', "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
+ ],
# Test cross-compile infrastructure
"samba-xc": [("random-sleep", "script/random-sleep.sh 900 1500", "text/plain"),
("make", "make -j", "text/plain"),
("test", "make quicktest FAIL_IMMEDIATELY=1 "
"TESTS='--include-env=ad_dc'", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("install", "make install", "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain"),
("clean", "make clean", "text/plain")],
("test", "make test "
"FAIL_IMMEDIATELY=1 "
"TESTS='--include-env=none'",
- "text/plain")],
+ "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain")],
"samba-static": [
("random-sleep", "script/random-sleep.sh 1 1", "text/plain"),
"FAIL_IMMEDIATELY=1 "
"TESTS='samba3.smb2.create.*nt4_dc'",
"text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
# retry without any required modules
("none-distclean", "make distclean", "text/plain"),
# via "make test TESTS=sometests"
("test", "make test FAIL_IMMEDIATELY=1 "
"TESTS='--include-env=ktest'", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("install", "make install", "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain"),
("clean", "make clean", "text/plain")
("install", "make install", "text/plain"),
("find-python", "script/find_python.sh ${PREFIX}", "text/plain"),
("test", "make test-nopython", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain"),
("clean", "make clean", "text/plain"),
("install", "PYTHON=python2 make install", "text/plain"),
("find-python", "script/find_python.sh ${PREFIX}", "text/plain"),
("test", "make test-nopython", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "script/clean-source-tree.sh", "text/plain"),
("clean", "PYTHON=python2 make clean", "text/plain"),
("make", "make", "text/plain"),
("install", "make install", "text/plain"),
("test", "make test", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
+ ("clean", "make clean", "text/plain"),
("configure-no-lmdb", "./configure ${ENABLE_COVERAGE} --enable-developer --without-ldb-lmdb -C ${PREFIX}", "text/plain"),
("make-no-lmdb", "make", "text/plain"),
+ ("test-no-lmdb", "make test", "text/plain"),
+ ("lcov-no-lmdb", LCOV_CMD, "text/plain"),
("install-no-lmdb", "make install", "text/plain"),
("check-clean-tree", "../../script/clean-source-tree.sh", "text/plain"),
("distcheck", "make distcheck", "text/plain"),
("make", "make", "text/plain"),
("install", "make install", "text/plain"),
("test", "make test", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "../../script/clean-source-tree.sh", "text/plain"),
("distcheck", "make distcheck", "text/plain"),
("clean", "make clean", "text/plain")],
("make", "make", "text/plain"),
("install", "make install", "text/plain"),
("test", "make test", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "../../script/clean-source-tree.sh", "text/plain"),
("distcheck", "make distcheck", "text/plain"),
("clean", "make clean", "text/plain")],
("make", "make", "text/plain"),
("install", "make install", "text/plain"),
("test", "make test", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "../../script/clean-source-tree.sh", "text/plain"),
("distcheck", "make distcheck", "text/plain"),
("clean", "make clean", "text/plain")],
("make", "make", "text/plain"),
("install", "make install", "text/plain"),
("test", "make test", "text/plain"),
+ ("lcov", LCOV_CMD, "text/plain"),
("check-clean-tree", "../../script/clean-source-tree.sh", "text/plain"),
("distcheck", "make distcheck", "text/plain"),
("clean", "make clean", "text/plain")],