JSON: Adding ctest

This commit adds node based tests provided by Nico to the ctest
framework already established in UPM.

Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
Abhishek Malik
2017-08-28 17:15:00 -07:00
parent 0bf4a38f5e
commit 303323fa3a
4 changed files with 65 additions and 0 deletions

View File

@ -74,3 +74,11 @@ if (BUILDSWIGPYTHON AND PYTHON3INTERP_FOUND)
${CMAKE_SOURCE_DIR}/examples/python/*.py
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/src/)
endif (BUILDSWIGPYTHON AND PYTHON3INTERP_FOUND)
# add JSON test
if(NPM_EXECUTABLE)
add_test (NAME check_jsons COMMAND ${CMAKE_COMMAND}
-DNPMEXEC=${NPM_EXECUTABLE}
-DUPMBASEDIR=${CMAKE_SOURCE_DIR}
-P ${CMAKE_SOURCE_DIR}/tests/runjsontest.cmake)
endif(NPM_EXECUTABLE)