mirror of
https://github.com/json-c/json-c.git
synced 2026-09-07 16:46:50 +08:00
Add tests for the json_parse cli tool.
This commit is contained in:
@@ -38,6 +38,10 @@ set(ALL_TEST_NAMES
|
||||
test_visit
|
||||
test_object_iterator)
|
||||
|
||||
set(NOBUILD_TEST_NAMES
|
||||
test_json_parse_cli
|
||||
)
|
||||
|
||||
if (NOT DISABLE_JSON_POINTER)
|
||||
set(ALL_TEST_NAMES ${ALL_TEST_NAMES} test_json_pointer)
|
||||
set(ALL_TEST_NAMES ${ALL_TEST_NAMES} test_safe_json_pointer_set)
|
||||
@@ -46,6 +50,10 @@ if (NOT DISABLE_JSON_POINTER)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
foreach(TESTNAME ${NOBUILD_TEST_NAMES})
|
||||
add_test(NAME ${TESTNAME} COMMAND ${PROJECT_SOURCE_DIR}/tests/${TESTNAME}.test)
|
||||
endforeach(TESTNAME)
|
||||
|
||||
foreach(TESTNAME ${ALL_TEST_NAMES})
|
||||
|
||||
add_executable(${TESTNAME} ${TESTNAME}.c)
|
||||
|
||||
Reference in New Issue
Block a user