summaryrefslogtreecommitdiff
path: root/tests/lib/Makefile.inc
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2020-10-08 12:37:40 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-01-18 07:27:16 +0000
commita2b21c23d58d7f8faa0c72e95b35f40c143b45f9 (patch)
tree5040b33e27647e7d43396743ccd33f11ad976af9 /tests/lib/Makefile.inc
parente1aa9833c1eb80c193d1b7d7effe27140e1df154 (diff)
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>
Diffstat (limited to 'tests/lib/Makefile.inc')
-rw-r--r--tests/lib/Makefile.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/lib/Makefile.inc b/tests/lib/Makefile.inc
index dba27ec29f..32b340e5d9 100644
--- a/tests/lib/Makefile.inc
+++ b/tests/lib/Makefile.inc
@@ -10,6 +10,8 @@ tests-y += cbmem_console-romstage-test
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/lib/boot_device.c
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
+