summaryrefslogtreecommitdiff
path: root/tests/commonlib/Makefile.inc
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2020-05-04 17:46:31 -0700
committerJulius Werner <jwerner@chromium.org>2020-05-19 03:22:04 +0000
commit254003740674a72ac794c984200666517109adb8 (patch)
treeed5bf936cfe5490f738b4d26e3f5f712567d24de /tests/commonlib/Makefile.inc
parent21744811bb7638830a7ca495694d295acbadc150 (diff)
downloadcoreboot-254003740674a72ac794c984200666517109adb8.tar.xz
tests: Add region-test for rdev API
This patch adds a basic test for the common region and region_device APIs, sanity checking the basic functions and things like overflow-handling. There is certainly more that could be added here, but it's a start. Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I4932402f54768557e5b22b16e66220bd90ddebfd Reviewed-on: https://review.coreboot.org/c/coreboot/+/41046 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Jan Dabros Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'tests/commonlib/Makefile.inc')
-rw-r--r--tests/commonlib/Makefile.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/commonlib/Makefile.inc b/tests/commonlib/Makefile.inc
new file mode 100644
index 0000000000..ce3499cb2b
--- /dev/null
+++ b/tests/commonlib/Makefile.inc
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0-only
+# This file is part of the coreboot project.
+
+tests-y += region-test
+
+region-test-srcs += tests/commonlib/region-test.c
+region-test-srcs += src/commonlib/region.c