blob: d04c0f0ae928b141cc6137f915afe9227875550d [file] [log] [blame]
aPiecek6e5844c2023-05-22 11:42:09 +02001source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/interactive/ly.tcl" : "ly.tcl"}]
2
3set mdir $::env(YANG_MODULES_DIR)
4
5test 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
12test 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
19test 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
26test 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
33cleanupTests