From: David Mulder Date: Thu, 10 Mar 2022 21:54:35 +0000 (-0700) Subject: torture: Disable vfs chain test dependant on SMB1 X-Git-Tag: tevent-0.12.0~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e081b25e07ff48bf5bcfc2266915464fad9d28a9;p=thirdparty%2Fsamba.git torture: Disable vfs chain test dependant on SMB1 Signed-off-by: David Mulder Reviewed-by: Jeremy Allison --- diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index 7a23f7bf5a2..e0098442fbb 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -2336,8 +2336,10 @@ struct cmd_set vfs_commands[] = { { "sys_acl_delete_def_file", cmd_sys_acl_delete_def_file, "VFS sys_acl_delete_def_file()", "sys_acl_delete_def_file " }, +#if defined(WITH_SMB1SERVER) { "test_chain", cmd_test_chain, "test chain code", "test_chain" }, +#endif { "translate_name", cmd_translate_name, "VFS translate_name()", "translate_name unix_filename" }, { "create_file", cmd_create_file, diff --git a/source3/torture/wscript_build b/source3/torture/wscript_build index 0c4275de795..b9241d14a40 100644 --- a/source3/torture/wscript_build +++ b/source3/torture/wscript_build @@ -112,12 +112,16 @@ bld.SAMBA3_BINARY('pdbtest', ''', for_selftest=True) +if bld.CONFIG_SET('WITH_SMB1SERVER'): + SMB1_SOURCES = 'vfstest_chain.c' +else: + SMB1_SOURCES = '' + bld.SAMBA3_BINARY('vfstest', source=''' cmd_vfs.c vfstest.c - vfstest_chain.c - ''', + ''' + SMB1_SOURCES, deps=''' vfs CMDLINE_S3