s4-torture: add smb2 nfs testing suite
authorGünther Deschner <gd@samba.org>
Thu, 9 Nov 2023 22:22:42 +0000 (23:22 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 21 Nov 2023 12:40:12 +0000 (13:40 +0100)
commitf7331f377fc9176527e630a79021447c7234b7de
tree03cbde455104fbcc98ec86ce79b9862a889f5fdd
parent8863d84d537117e073da0a371bc153e16e4ebd9f
s4-torture: add smb2 nfs testing suite

This testsuite allows to explore filesystem behavior when data is shared
via NFS and SMB concurrently. It requires libnfs-devel to be installed.

For testing an export like /opt/test add this to Samba's /etc/samba/smb.conf:

[test]
        path = /opt/test
        read only = No

And this to NFS Ganesha's /etc/ganesha/ganesha.conf:

EXPORT
{
        Export_Id = 1;
        Path = /opt/test;
        Pseudo = /opt/test;
        Sectype = sys,krb5,krb5i,krb5p;
        Protocols = 3,4;
        Access_Type = RW;

        FSAL {
                Name = VFS;
        }

        CLIENT {
                Clients=*;
                Protocols=3,4;
        }
}

Run the testsuite like this:

smbtorture //192.168.3.1/test -U smbuser%password smb2.nfs --option=torture:nfs_path=/opt/test --option=torture:nfs_version=4

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
source4/torture/nfs/nfs.c [new file with mode: 0644]
source4/torture/nfs/wscript [new file with mode: 0644]
source4/torture/smb2/smb2.c
source4/torture/wscript_build
wscript