mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
96472306bf
Previously we were only checking samba compiled OK with --disable-python, not that it actually ran. The main problem is all the make test framework is based around subunit/smbtorture, neither of which we seem to build with disable-python. However, for just a simple sanity-check, we can just bypass all the subunit-filter work and just call the Perl code directly. This works OK as long as it's just simple shell script tests that we're running, as we can check the script's exit code directly. The main thing that we really want to test is that we can start up the smbd testenv and connect to it (i.e. a simple smbclient test). This patch adds a new 'make test-nopython' target. This disables the subunit filtering, and runs a small test-list that was generated manually. Note that currently this has the limitation that it doesn't support known failures or flapping tests. However, just checking that smd starts up OK is probably OK for now. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Feb 20 02:10:00 CET 2019 on sn-devel-144
33 lines
1.7 KiB
Plaintext
33 lines
1.7 KiB
Plaintext
# A small subset of tests/testenvs to run as a sanity-check when samba
|
|
# is built with --disable-python. One test-suite for each s3 testenv was
|
|
# selected from 'python source3/selftest/tests.py' (and manually edited to
|
|
# remove the filter-subunit portion of the command).
|
|
# Notes:
|
|
# - you cannot add knownfail tests to this list.
|
|
# - only .sh tests supported here, and they must set and return $failed
|
|
# appropriately
|
|
-- TEST --
|
|
samba3.blackbox.smb2.not_casesensitive (fileserver)(fileserver)
|
|
fileserver
|
|
./source3/script/tests/test_smb2_not_casesensitive.sh //$SERVER/tmp $SERVER_IP $USERNAME $PASSWORD $LOCAL_PATH bin/smbclient || exit 1
|
|
-- TEST --
|
|
samba3.blackbox.rpcclient_srvsvc(simpleserver)
|
|
simpleserver
|
|
./source3/script/tests/test_rpcclientsrvsvc.sh $USERNAME $PASSWORD $SERVER bin/rpcclient tmp || exit 1
|
|
-- TEST --
|
|
samba3.blackbox.smbclient_large_file krb5(ktest:local)
|
|
ktest:local
|
|
./source3/script/tests/test_smbclient_large_file.sh $PREFIX/ktest/krb5_ccache-3 bin/smbclient $SERVER $PREFIX -k --configfile=$SMB_CONF_PATH || exit 1
|
|
-- TEST --
|
|
samba3.blackbox.smbclient_auth.plain (maptoguest) local creds(maptoguest)
|
|
maptoguest
|
|
./source3/script/tests/test_smbclient_auth.sh $SERVER $SERVER_IP $USERNAME $PASSWORD bin/smbclient --configfile=$SMB_CONF_PATH --option=clientntlmv2auth=no --option=clientlanmanauth=yes || exit 1
|
|
-- TEST --
|
|
samba3.blackbox.smbclient_auth.plain (nt4_dc) (nt4_dc)
|
|
nt4_dc
|
|
./source3/script/tests/test_smbclient_auth.sh $SERVER $SERVER_IP $DC_USERNAME $DC_PASSWORD bin/smbclient --configfile=$SMB_CONF_PATH || exit 1
|
|
-- TEST --
|
|
samba3.blackbox.net_cred_change.(nt4_member:local)(nt4_member:local)
|
|
nt4_member:local
|
|
./source3/script/tests/test_net_cred_change.sh --configfile=$SMB_CONF_PATH || exit 1
|