selftest: Add basic sanity-check tests for nopython target
authorTim Beale <timbeale@catalyst.net.nz>
Sun, 17 Feb 2019 23:52:41 +0000 (12:52 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 20 Feb 2019 01:10:00 +0000 (02:10 +0100)
commit96472306bf13bd2a4d39d5fdd63a73f6140f8b44
tree3488025920f50923e3cbe0660f7b135f5f5d6426
parentbcd007532820a077320fe21f246c5ba0195e87d5
selftest: Add basic sanity-check tests for nopython target

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
Makefile
script/autobuild.py
selftest/no-python-tests.txt [new file with mode: 0644]
selftest/wscript