mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-11-02 13:20:53 +00:00
cunity: parse_examples: test example files
Test parsing and printing example files
This commit is contained in:
1 parent
896e52255b
commit
bb60d6def5
14 files changed
+458
No files matched your search
@@ -1 +1,18 @@
|
||||
add_library(unity unity/src/unity.c)
|
||||
|
||||
if(ENABLE_CJSON_TEST)
|
||||
#copy test files
|
||||
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/inputs")
|
||||
file(GLOB test_files "inputs/*")
|
||||
file(COPY ${test_files} DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/inputs/")
|
||||
|
||||
set(unity_tests
|
||||
parse_examples
|
||||
)
|
||||
|
||||
foreach(unity_test ${unity_tests})
|
||||
add_executable("${unity_test}" "${unity_test}.c")
|
||||
target_link_libraries("${unity_test}" "${CJSON_LIB}" unity)
|
||||
add_test("${unity_test}" "${unity_test}")
|
||||
endforeach()
|
||||
endif()
|
||||
Reference in new issue
Block a user