sambaΒΆ

Simple test with default configuration:

# Create a Samba password for an existing Unix user
smbpasswd -a local_user
# Lists available shares
smbclient -U local_user%pass -L //127.0.0.1/
# Connects to home directory
smbclient -U local_user%pass //127.0.0.1/local_user

https://gitlab.com/lgarrett/ftf/ can be helpful to setup a Windows VM. It needs some update though, you can also get an evaluation copy of Windows 11 Enterprise manually through https://aka.ms/windev_VM_vmware.

Some tests are included in smbtorture from the samba-testsuite package, though they may require specific configuration:

smbtorture 127.0.0.1 libsmbclient.version

# /etc/samba/smb.conf
# [homes]
#    vfs objects = streams_xattr
#    read only = no
apt install samba-vfs-modules
service smbd restart
smbtorture -U local_user%pass //127.0.0.1/local_user vfs.streams_xattr

make test is disabled in the packaging (see debian/rules:override_dh_auto_test). TODO: re-enable it and run individual tests?

Copyright (C) 2025 Sylvain Beucler