aPiecek | 6e5844c | 2023-05-22 11:42:09 +0200 | [diff] [blame] | 1 | source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/interactive/ly.tcl" : "ly.tcl"}] |
| 2 | |
| 3 | set mdir $::env(YANG_MODULES_DIR) |
| 4 | |
| 5 | test debug_dict {Check debug message DICT} { |
aPiecek | d3ca35c | 2023-06-16 15:13:02 +0200 | [diff] [blame] | 6 | -setup $ly_setup -cleanup $ly_cleanup -constraints {[yanglint_debug]} -body { |
aPiecek | 6e5844c | 2023-05-22 11:42:09 +0200 | [diff] [blame] | 7 | ly_cmd "verb debug" |
| 8 | ly_cmd "debug dict" |
| 9 | ly_cmd "load modleaf" "DICT" |
| 10 | }} |
| 11 | |
| 12 | test debug_xpath {Check debug message XPATH} { |
aPiecek | d3ca35c | 2023-06-16 15:13:02 +0200 | [diff] [blame] | 13 | -setup $ly_setup -cleanup $ly_cleanup -constraints {[yanglint_debug]} -body { |
aPiecek | 6e5844c | 2023-05-22 11:42:09 +0200 | [diff] [blame] | 14 | ly_cmd "verb debug" |
| 15 | ly_cmd "debug xpath" |
| 16 | ly_cmd "load modmust" "XPATH" |
| 17 | }} |
| 18 | |
| 19 | test debug_dep_sets {Check debug message DEPSETS} { |
aPiecek | d3ca35c | 2023-06-16 15:13:02 +0200 | [diff] [blame] | 20 | -setup $ly_setup -cleanup $ly_cleanup -constraints {[yanglint_debug]} -body { |
aPiecek | 6e5844c | 2023-05-22 11:42:09 +0200 | [diff] [blame] | 21 | ly_cmd "verb debug" |
| 22 | ly_cmd "debug dep-sets" |
| 23 | ly_cmd "load modleaf" "DEPSETS" |
| 24 | }} |
| 25 | |
| 26 | test debug_depsets_xpath {Check debug message DEPSETS and XPATH} { |
aPiecek | d3ca35c | 2023-06-16 15:13:02 +0200 | [diff] [blame] | 27 | -setup $ly_setup -cleanup $ly_cleanup -constraints {[yanglint_debug]} -body { |
aPiecek | 6e5844c | 2023-05-22 11:42:09 +0200 | [diff] [blame] | 28 | ly_cmd "verb debug" |
| 29 | ly_cmd "debug dep-sets xpath" |
| 30 | ly_cmd "load modmust" "DEPSETS.*XPATH" |
| 31 | }} |
| 32 | |
| 33 | cleanupTests |