ASSERT_OK_ERRNO(setenv("SYSTEMD_JOURNAL_COMPACT", "1", 1));
run_test(verification_key, max_iterations);
-#if HAVE_GCRYPT
- /* If we're running without any arguments and we're compiled with gcrypt
+ /* If we're running without any arguments and journal sealing support is enabled,
* check the journal verification stuff with a valid key as well */
- if (argc <= 1) {
+ if (argc <= 1 && journal_auth_supported()) {
verification_key = "c262bd-85187f-0b1b04-877cc5/1c7af8-35a4e900";
ASSERT_OK_ERRNO(setenv("SYSTEMD_JOURNAL_COMPACT", "0", 1));
ASSERT_OK_ERRNO(setenv("SYSTEMD_JOURNAL_COMPACT", "1", 1));
run_test(verification_key, max_iterations);
}
-#endif
return 0;
}