mirror of
https://github.com/samba-team/samba.git
synced 2025-02-22 05:57:43 +03:00
CI: add samba-no-opath
Add a job that builds with O_PATH undefined. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
7a077f152a
commit
436903afe2
@ -226,6 +226,9 @@ samba-schemaupgrade:
|
||||
samba-ad-dc-1-mitkrb5:
|
||||
extends: .private_template
|
||||
|
||||
samba-no-opath:
|
||||
extends: .private_template
|
||||
|
||||
# 'pages' is a special job which can publish artifacts in `public` dir to gitlab pages
|
||||
pages:
|
||||
image: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-${SAMBA_CI_CONTAINER_IMAGE}:${SAMBA_CI_CONTAINER_TAG}
|
||||
|
@ -199,6 +199,10 @@
|
||||
#define mkdir(d,m) _mkdir(d)
|
||||
#endif
|
||||
|
||||
#ifdef DISABLE_OPATH
|
||||
#undef O_PATH
|
||||
#endif
|
||||
|
||||
/*
|
||||
this allows us to use a uniform error handling for our xattr
|
||||
wrappers
|
||||
|
@ -375,6 +375,27 @@ tasks = {
|
||||
("check-clean-tree", "script/clean-source-tree.sh"),
|
||||
],
|
||||
|
||||
"samba-no-opath": [
|
||||
("random-sleep", random_sleep(300, 900)),
|
||||
("configure", "ADDITIONAL_CFLAGS='-DDISABLE_OPATH=1' ./configure.developer --without-ad-dc --with-selftest-prefix=./bin/ab" + samba_configure_params),
|
||||
("make", "make -j"),
|
||||
("test", make_test(
|
||||
cmd="make test DISABLE_OPATH=1",
|
||||
include_envs=[
|
||||
"nt4_dc",
|
||||
"nt4_dc_smb1",
|
||||
"nt4_dc_smb1_done",
|
||||
"nt4_dc_schannel",
|
||||
"nt4_member",
|
||||
"simpleserver",
|
||||
"fileserver",
|
||||
"fileserver_smb1",
|
||||
"fileserver_smb1_done",
|
||||
])),
|
||||
("lcov", LCOV_CMD),
|
||||
("check-clean-tree", "script/clean-source-tree.sh"),
|
||||
],
|
||||
|
||||
"samba-ad-dc-1": [
|
||||
("random-sleep", random_sleep(1, 1)),
|
||||
("configure", "./configure.developer --with-selftest-prefix=./bin/ab" + samba_configure_params),
|
||||
|
9
selftest/skip.opath-required
Normal file
9
selftest/skip.opath-required
Normal file
@ -0,0 +1,9 @@
|
||||
# Opening O_RDONLY screws kernel oplocks which is not a problem
|
||||
# as only Linux has kernel oplocks and as Linux has O_PATH, we
|
||||
# don't need O_RDONLY in the first place.
|
||||
^samba3.smb2.kernel-oplocks.*
|
||||
^samba3.smbtorture_s3.plain.OPLOCK5.*
|
||||
#
|
||||
# These fail because become_root() doesn't work in make test
|
||||
^samba3.blackbox.dropbox.*
|
||||
^samba3.raw.samba3hide.*
|
@ -271,6 +271,9 @@ def cmd_testonly(opt):
|
||||
# GSS_KRB5_CRED_NO_CI_FLAGS_X
|
||||
env.OPTIONS += " --exclude=${srcdir}/selftest/skip.no-GSS_KRB5_CRED_NO_CI_FLAGS_X"
|
||||
|
||||
if os.environ.get('DISABLE_OPATH'):
|
||||
env.OPTIONS += " --exclude=${srcdir}/selftest/skip.opath-required"
|
||||
|
||||
if env.ADDRESS_SANITIZER:
|
||||
# We try to find the correct libasan automatically
|
||||
libasan = Utils.cmd_output(
|
||||
|
Loading…
x
Reference in New Issue
Block a user