tests: Add lib/imd_cbmem-test test case
Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Change-Id: Ie893b5e8fc91c230ff96a14146085de16d78b1c1
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46458
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
diff --git a/tests/lib/Makefile.inc b/tests/lib/Makefile.inc
index dba27ec..32b340e 100644
--- a/tests/lib/Makefile.inc
+++ b/tests/lib/Makefile.inc
@@ -10,6 +10,8 @@
tests-y += cbmem_console-ramstage-test
tests-y += list-test
tests-y += fmap-test
+tests-y += imd_cbmem-romstage-test
+tests-y += imd_cbmem-ramstage-test
string-test-srcs += tests/lib/string-test.c
string-test-srcs += src/lib/string.c
@@ -52,3 +54,16 @@
fmap-test-srcs += src/commonlib/region.c
fmap-test-cflags += -I tests/include/tests/lib/fmap
fmap-test-cflags += -I 3rdparty/vboot/firmware/include
+
+imd_cbmem-ramstage-test-stage := ramstage
+imd_cbmem-ramstage-test-srcs += tests/lib/imd_cbmem-test.c
+imd_cbmem-ramstage-test-srcs += tests/stubs/console.c
+imd_cbmem-ramstage-test-srcs += src/lib/imd.c
+imd_cbmem-ramstage-test-mocks += cbmem_top_chipset
+
+imd_cbmem-romstage-test-stage := romstage
+imd_cbmem-romstage-test-srcs += tests/lib/imd_cbmem-test.c
+imd_cbmem-romstage-test-srcs += tests/stubs/console.c
+imd_cbmem-romstage-test-srcs += src/lib/imd.c
+imd_cbmem-romstage-test-mocks += cbmem_top_chipset
+