summaryrefslogtreecommitdiffstats
path: root/tests/yangre/CMakeLists.txt
blob: ce5b39b255fefb1276b3fd0ce912bb671b085709 (plain)
1
2
3
4
5
6
7
8
find_program(PATH_TCLSH NAMES tclsh)
if(NOT PATH_TCLSH)
    message(WARNING "'tclsh' not found! The yangre test will not be available.")
else()
    add_test(NAME "yangre" COMMAND "tclsh" "${CMAKE_CURRENT_SOURCE_DIR}/all.tcl")
    set_property(TEST "yangre" APPEND PROPERTY ENVIRONMENT "TESTS_DIR=${CMAKE_CURRENT_SOURCE_DIR}")
    set_property(TEST "yangre" APPEND PROPERTY ENVIRONMENT "YANGRE=${PROJECT_BINARY_DIR}")
endif()