Skip to content

Commit 4d3259c

Browse files
committed
tests UPDATE check for expect for yangre
1 parent 0614a26 commit 4d3259c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/yangre/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
find_program(PATH_TCLSH NAMES tclsh)
2+
find_program(PATH_EXPECT NAMES expect)
23
if(NOT PATH_TCLSH)
3-
message(WARNING "'tclsh' not found! The yangre test will not be available.")
4+
message(WARNING "tclsh not found, yanglint(1) interactive tests will not be available.")
5+
elseif(NOT PATH_EXPECT)
6+
message(WARNING "expect not found, yanglint(1) interactive tests will not be available.")
47
else()
58
add_test(NAME "yangre" COMMAND "tclsh" "${CMAKE_CURRENT_SOURCE_DIR}/all.tcl")
69
set_property(TEST "yangre" APPEND PROPERTY ENVIRONMENT "TESTS_DIR=${CMAKE_CURRENT_SOURCE_DIR}")

0 commit comments

Comments
 (0)