cunity: parse_examples: test example files

Test parsing and printing example files
This commit is contained in:
Max Bruckner
2017-01-16 14:52:01 +01:00
parent 896e52255b
commit bb60d6def5
14 changed files with 458 additions and 0 deletions

View File

@@ -133,6 +133,8 @@ install(FILES ${PROJECT_BINARY_DIR}/cJSONConfig.cmake
option(ENABLE_CJSON_TEST "Enable building cJSON test" ON)
if(ENABLE_CJSON_TEST)
enable_testing()
set(TEST_CJSON cJSON_test)
add_executable("${TEST_CJSON}" test.c)
target_link_libraries("${TEST_CJSON}" "${CJSON_LIB}")