]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-sbat: separate the two sbat sections
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 30 Oct 2024 14:19:24 +0000 (15:19 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 30 Oct 2024 14:22:25 +0000 (15:22 +0100)
src/test/test-sbat.c

index d8546b1ad99bd56499c40513992a32f59ec951eb..cf9c155c9d47e1ed72e1a2987585aada11f50043 100644 (file)
@@ -8,17 +8,26 @@
 #include "sbat.h"
 #include "tests.h"
 
-TEST(sbat_section_text) {
-        log_info("---SBAT-----------&<----------------------------------------\n"
+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
         );
 }