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} { |
| 6 | -setup $ly_setup -cleanup $ly_cleanup -constraints {[ly_cmd_exists "debug"]} -body { |
| 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} { |
| 13 | -setup $ly_setup -cleanup $ly_cleanup -constraints {[ly_cmd_exists "debug"]} -body { |
| 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} { |
| 20 | -setup $ly_setup -cleanup $ly_cleanup -constraints {[ly_cmd_exists "debug"]} -body { |
| 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} { |
| 27 | -setup $ly_setup -cleanup $ly_cleanup -constraints {[ly_cmd_exists "debug"]} -body { |
| 28 | ly_cmd "verb debug" |
| 29 | ly_cmd "debug dep-sets xpath" |
| 30 | ly_cmd "load modmust" "DEPSETS.*XPATH" |
| 31 | }} |
| 32 | |
| 33 | cleanupTests |