blob: ce5b39b255fefb1276b3fd0ce912bb671b085709 [file] [log] [blame]
aPiecekb5cda5e2023-06-29 11:26:28 +02001find_program(PATH_TCLSH NAMES tclsh)
2if(NOT PATH_TCLSH)
3 message(WARNING "'tclsh' not found! The yangre test will not be available.")
4else()
5 add_test(NAME "yangre" COMMAND "tclsh" "${CMAKE_CURRENT_SOURCE_DIR}/all.tcl")
6 set_property(TEST "yangre" APPEND PROPERTY ENVIRONMENT "TESTS_DIR=${CMAKE_CURRENT_SOURCE_DIR}")
7 set_property(TEST "yangre" APPEND PROPERTY ENVIRONMENT "YANGRE=${PROJECT_BINARY_DIR}")
8endif()