autobuild: harden samba-xc test suite
authorUri Simchoni <uri@samba.org>
Wed, 9 Oct 2019 18:53:43 +0000 (21:53 +0300)
committerUri Simchoni <uri@samba.org>
Sun, 20 Oct 2019 13:29:58 +0000 (13:29 +0000)
commit649d15bb969b6d27fd4554f49600366bb3df4712
treefb34659821a9e034c565f36fba0c1fdbff7bcc73
parentfdfd69840902f4b13db2a204a0ca87a578b61b85
autobuild: harden samba-xc test suite

Add more checks which directly test the behavior of
--cross-answers and --cross-execute.

Previous test tested things in a round-about way, checking
that running in all three modes (native, cross-execute,
cross-answers) yields the same result. It was vulnerable
to a degradation in which cross-compilation modes didn't
work at all and were running native tests, which is
what happened with the upgrade of waf.

The added tests check the following:
- That cross-excute with cross-answers sets the cross-answers file
- That the content of cross-answers file actually affects the build
  configuration
- That a missing line in cross-answers fails the build

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13846

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Sun Oct 20 13:29:58 UTC 2019 on sn-devel-184
script/autobuild.py