summaryrefslogtreecommitdiff
path: root/payloads/libpayload/tests/Makefile
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2013-03-09 10:36:10 +0100
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-03-22 00:35:32 +0100
commit36b6f367c064e9d5d64bc2246bf7cc85bb7c62d3 (patch)
tree2d47a5f9922ad456e856a67bfb4ed489bc734cc2 /payloads/libpayload/tests/Makefile
parentb02c873190990698350a7c2a9bce52ce81c0f1b2 (diff)
downloadcoreboot-36b6f367c064e9d5d64bc2246bf7cc85bb7c62d3.tar.xz
libpayload: initial test case + tiny "framework"
This adds a test case for using CBFS images that reside in RAM and a Makefile to run it (and maybe other tests in the future). The test concerns an issue in libcbfs when using x86 style CBFS images in non-canonical locations (eg. when loading CBFS images for processing). Use with "make run" inside the tests directory. Change-Id: I1af3792a1451728ff9594ba7f0410027cdecb59d Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/2623 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/libpayload/tests/Makefile')
-rw-r--r--payloads/libpayload/tests/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/payloads/libpayload/tests/Makefile b/payloads/libpayload/tests/Makefile
new file mode 100644
index 0000000000..9728722f3e
--- /dev/null
+++ b/payloads/libpayload/tests/Makefile
@@ -0,0 +1,13 @@
+CC=gcc -g -m32
+INCLUDES=-I. -I../include -I../include/x86
+TARGETS=cbfs-x86-test
+
+cbfs-x86-test: cbfs-x86-test.c ../arch/x86/rom_media.c ../libcbfs/ram_media.c ../libcbfs/cbfs.c
+ $(CC) -o $@ $^ $(INCLUDES)
+
+
+all: $(TARGETS)
+
+run: all
+ for i in $(TARGETS); do ./$$i; done
+