test-user-util: skip most tests for nobody if synthentization is off
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 Feb 2018 16:13:41 +0000 (17:13 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 21 Feb 2018 08:57:35 +0000 (09:57 +0100)
commit7559b2da10b1513849f22312d09a2381569b4f06
treea323f227d23a7014327d3361e15bcfbfc4ef795a
parent52c6e6a8a0221530659c65090f18b16c45a9fc04
test-user-util: skip most tests for nobody if synthentization is off

When synthetisation is turned off, there's just too many ways those tests can
go wrong. We are not interested in verifying that the db on disk is correct,
let's just skip all checks.

In the first version of this patch, I recorded if we detected a mismatch during
configuration and only skipped tests in that case, but actually it is possible
to change the host configuration between our configuration phase and running
of the tests. It's just more robust to skip always. (This is particularly true
if tests are installed.)
src/test/test-user-util.c