1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-21 02:50:18 +03:00

test-sbat: separate the two sbat sections

(cherry picked from commit 07000101eb9529c2d6b5f5402c9fe643c5f98420)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2024-10-30 15:19:24 +01:00 committed by Luca Boccassi
parent fefd60bf7a
commit bf681fcdf4

View File

@ -8,17 +8,26 @@
#include "sbat.h"
#include "tests.h"
TEST(sbat_section_text) {
log_info("---SBAT-----------&<----------------------------------------\n"
"%s"
TEST(BOOT_SBAT) {
log_info("---SBAT-----------&<-----------------------------------------\n"
"%s"
"------------------>&-----------------------------------------",
#ifdef SBAT_DISTRO
SBAT_BOOT_SECTION_TEXT
#else
"(not defined)"
#endif
);
}
TEST(STUB_SBAT) {
log_info("---SBAT-----------&<-----------------------------------------\n"
"%s"
"------------------>&-----------------------------------------",
#ifdef SBAT_DISTRO
SBAT_BOOT_SECTION_TEXT,
SBAT_STUB_SECTION_TEXT
#else
"(not defined)",
""
"(not defined)"
#endif
);
}