tests/test-repo-finder-mount: skip some tests if GPG is not supported
`ostree_repo_resolve_keyring_for_collection()` function fail the tests if there is no GPG support. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com> Closes: #1889 Approved by: cgwalters
This commit is contained in:
parent
3767d87107
commit
4c8b0ac255
|
|
@ -557,10 +557,13 @@ int main (int argc, char **argv)
|
||||||
g_test_add_func ("/repo-finder-mount/init", test_repo_finder_mount_init);
|
g_test_add_func ("/repo-finder-mount/init", test_repo_finder_mount_init);
|
||||||
g_test_add ("/repo-finder-mount/no-mounts", Fixture, NULL, setup,
|
g_test_add ("/repo-finder-mount/no-mounts", Fixture, NULL, setup,
|
||||||
test_repo_finder_mount_no_mounts, teardown);
|
test_repo_finder_mount_no_mounts, teardown);
|
||||||
|
#ifndef OSTREE_DISABLE_GPGME
|
||||||
|
/*`ostree_repo_resolve_keyring_for_collection()` fail the tests if no GPG support is compiled in. */
|
||||||
g_test_add ("/repo-finder-mount/mixed-mounts", Fixture, NULL, setup,
|
g_test_add ("/repo-finder-mount/mixed-mounts", Fixture, NULL, setup,
|
||||||
test_repo_finder_mount_mixed_mounts, teardown);
|
test_repo_finder_mount_mixed_mounts, teardown);
|
||||||
g_test_add ("/repo-finder-mount/well-known", Fixture, NULL, setup,
|
g_test_add ("/repo-finder-mount/well-known", Fixture, NULL, setup,
|
||||||
test_repo_finder_mount_well_known, teardown);
|
test_repo_finder_mount_well_known, teardown);
|
||||||
|
#endif /* OSTREE_DISABLE_GPGME */
|
||||||
|
|
||||||
return g_test_run();
|
return g_test_run();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue