tests: Add lib/imd-test test case
Implement unit tests for src/lib/imd.c module.
Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Signed-off-by: Anna Karas <aka@semihalf.com>
Signed-off-by: Jan Dabros <jsd@semihalf.com>
Change-Id: I3902f8638669440144064ce0e3756918338f4068
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46457
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/tests/lib/Makefile.inc b/tests/lib/Makefile.inc
index b66d386..3062bca 100644
--- a/tests/lib/Makefile.inc
+++ b/tests/lib/Makefile.inc
@@ -3,6 +3,7 @@
tests-y += string-test
tests-y += b64_decode-test
tests-y += hexstrtobin-test
+tests-y += imd-test
string-test-srcs += tests/lib/string-test.c
string-test-srcs += src/lib/string.c
@@ -13,3 +14,7 @@
hexstrtobin-test-srcs += tests/lib/hexstrtobin-test.c
hexstrtobin-test-srcs += src/lib/hexstrtobin.c
+
+imd-test-srcs += tests/lib/imd-test.c
+imd-test-srcs += tests/stubs/console.c
+imd-test-srcs += src/lib/imd.c
\ No newline at end of file