Add a new unit test file
This commit is contained in:
@ -1100,6 +1100,9 @@ if (UNICORN_HAS_RISCV)
|
|||||||
set(UNICORN_TEST_FILE ${UNICORN_TEST_FILE} test_riscv)
|
set(UNICORN_TEST_FILE ${UNICORN_TEST_FILE} test_riscv)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Extra tests
|
||||||
|
set(UNICORN_TEST_FILE ${UNICORN_TEST_FILE} test_mem)
|
||||||
|
|
||||||
target_compile_options(unicorn PRIVATE
|
target_compile_options(unicorn PRIVATE
|
||||||
${UNICORN_COMPILE_OPTIONS}
|
${UNICORN_COMPILE_OPTIONS}
|
||||||
)
|
)
|
||||||
|
5
tests/unit/test_mem.c
Normal file
5
tests/unit/test_mem.c
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#include "unicorn_test.h"
|
||||||
|
|
||||||
|
TEST_LIST = {
|
||||||
|
{ NULL, NULL }
|
||||||
|
};
|
Reference in New Issue
Block a user