libubox/tests/shunit2/CMakeLists.txt
Petr Štetiar 379cd33d19 tests: include json script shunit2 based testing
Include shunit2 based tests into unit testing pipeline until
(eventually) it's converted to cram based unit tests.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-01-12 19:17:17 +01:00

7 lines
198 B
CMake

ADD_TEST(
NAME shunit2
COMMAND tests.sh
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
SET_PROPERTY(TEST shunit2 APPEND PROPERTY ENVIRONMENT "TEST_JSON_SCRIPT=$<TARGET_FILE:test-json-script>")