[PATCHES] autobuild --restrict-tests to run only some tests

Douglas Bagnall douglas.bagnall at catalyst.net.nz
Fri Aug 19 03:42:39 UTC 2016


Sometimes I am only interested in the result of a few tests, but I want
to run it on a remote machine either because I am sick of my one being
slow or I worry about the tests being too tuned to it. At these times I
am never interested in the samba-libs test or the install or clean
targets. I just want to run a single samba test.

This gives autobuild.py the --restrict-tests option that runs only tests
matching the given regular expression. So you would go

  ./script/autobuild.py --restrict-tests=vlv

to compile samba then only run the tests with 'vlv' in their name. In
other words, just like `make test TESTS=vlv` but with an autobuild
environment.

This doesn't by itself make your remote autobuilds use the option; you
need to figure that out for yourself.

cheers,
Douglas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: restricted-autobuild.patch
Type: text/x-diff
Size: 5379 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160819/607519ce/restricted-autobuild.diff>


More information about the samba-technical mailing list