add basic cmocka unit test

This commit is contained in:
Jonathon Reinhart
2015-09-03 21:52:41 -04:00
parent ad835459bd
commit 12909e6a4c
3 changed files with 113 additions and 0 deletions

13
test/unit/Makefile Normal file
View File

@@ -0,0 +1,13 @@
CFLAGS += -lcmocka -lunicorn
ALL_TESTS = test_x86
all: ${ALL_TESTS}
clean:
rm ${ALL_TESTS}
test_x86: test_x86.c
gcc ${CFLAGS} -o $@ $^