test/unit: add test_sanity

This test ensures that the custom uc_assert_xxx() macros are working
as intended.
This commit is contained in:
Jonathon Reinhart
2015-09-21 08:35:59 -04:00
parent 02daa8df46
commit 163e9020c8
3 changed files with 92 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ CFLAGS += -L ../../
CFLAGS += -lcmocka -lunicorn
CFLAGS += -I ../../include
ALL_TESTS = test_x86 test_mem_map
ALL_TESTS = test_sanity test_x86 test_mem_map
.PHONY: all
all: ${ALL_TESTS}
@@ -16,10 +16,11 @@ clean:
.PHONY: test
test: export LD_LIBRARY_PATH=../../
test: ${ALL_TESTS}
./test_sanity
./test_x86
./test_mem_map
test_sanity: test_sanity.c
test_x86: test_x86.c
test_mem_map: test_mem_map.c