selftest: move to declaratively specifying environments and their dependencies
authorJamie McClymont <jamiemcclymont@catalyst.net.nz>
Wed, 21 Feb 2018 00:33:49 +0000 (13:33 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 21 Feb 2018 01:47:15 +0000 (02:47 +0100)
commit962e8a0ea7db79b96dddec06a4bde211eea0d1d6
tree07ff332e8863f84eedafb8d7f543d41d316b5ad0
parent41085ad37de56504467a0014b70f6a708dcde91b
selftest: move to declaratively specifying environments and their dependencies

This removes the tangle of code for starting up dependencies, and allows
selftest.pl to query dependencies (hence it can know when things can be shut
down early and how to order environments for optimal memory usage - that patch
not yet submitted).

It also removes the slightly hacky special-casing of the ad_members, and sets
$target->{vars} centrally (so each setup_ function does not need to).

Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/selftest.pl
selftest/target/Samba.pm
selftest/target/Samba3.pm
selftest/target/Samba4.pm