From: Andreas Schneider Date: Wed, 25 Jan 2023 09:46:03 +0000 (+0100) Subject: selftest: Only run samba.tests.smb3unix in developer mode X-Git-Tag: tevent-0.14.1~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56c6f0b6d64d29a34659c9af2e4f6ee397b3e0ca;p=thirdparty%2Fsamba.git selftest: Only run samba.tests.smb3unix in developer mode Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Thu Jan 26 13:13:50 UTC 2023 on atb-devel-224 --- diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 0eb63fe3f36..05a5ae20abe 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -4849,6 +4849,10 @@ uint32_t lp_get_async_dns_timeout(void) bool lp_smb3_unix_extensions(void) { + /* + * FIXME: If this gets always enabled, check source3/selftest/tests.py + * and source3/wscript for HAVE_SMB3_UNIX_EXTENSIONS. + */ #if defined(DEVELOPER) return lp__smb3_unix_extensions(); #else diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index 8039b4a8171..187f3ccd9c0 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -92,6 +92,8 @@ have_inotify = ("HAVE_INOTIFY" in config_hash) have_ldwrap = ("HAVE_LDWRAP" in config_hash) with_pthreadpool = ("WITH_PTHREADPOOL" in config_hash) +have_smb3_unix_extensions = ("HAVE_SMB3_UNIX_EXTENSIONS" in config_hash) + def is_module_enabled(module): if module in config_hash["STRING_SHARED_MODULES"]: return True @@ -1706,7 +1708,8 @@ for t in CLUSTERED_LOCAL_TESTS: smbtorture3, "-N 1000 -o 2000"]) -planpythontestsuite("fileserver", "samba.tests.smb3unix") +if have_smb3_unix_extensions: + planpythontestsuite("fileserver", "samba.tests.smb3unix") planpythontestsuite("fileserver", "samba.tests.reparsepoints") planpythontestsuite("fileserver_smb1", "samba.tests.smb2symlink") planpythontestsuite("fileserver_smb1", "samba.tests.smb1posix") diff --git a/source3/wscript b/source3/wscript index e77cd127e60..0dbf02ed530 100644 --- a/source3/wscript +++ b/source3/wscript @@ -111,6 +111,7 @@ def configure(conf): if Options.options.developer: conf.ADD_CFLAGS('-DDEVELOPER -DDEBUG_PASSWORD') conf.env.developer = True + conf.DEFINE('HAVE_SMB3_UNIX_EXTENSIONS', '1') if sys.platform != 'openbsd5': conf.ADD_LDFLAGS("-Wl,--export-dynamic", testflags=True)