blob: 8a64c92e3d70f369a5bb2c26de219277fc31c322 [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} {
aPiecekd3ca35c2023-06-16 15:13:02 +02006-setup $ly_setup -cleanup $ly_cleanup -constraints {[yanglint_debug]} -body {
aPiecek6e5844c2023-05-22 11:42:09 +02007 ly_cmd "verb debug"
8 ly_cmd "debug dict"
9 ly_cmd "load modleaf" "DICT"
10}}
11
12test debug_xpath {Check debug message XPATH} {
aPiecekd3ca35c2023-06-16 15:13:02 +020013-setup $ly_setup -cleanup $ly_cleanup -constraints {[yanglint_debug]} -body {
aPiecek6e5844c2023-05-22 11:42:09 +020014 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} {
aPiecekd3ca35c2023-06-16 15:13:02 +020020-setup $ly_setup -cleanup $ly_cleanup -constraints {[yanglint_debug]} -body {
aPiecek6e5844c2023-05-22 11:42:09 +020021 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} {
aPiecekd3ca35c2023-06-16 15:13:02 +020027-setup $ly_setup -cleanup $ly_cleanup -constraints {[yanglint_debug]} -body {
aPiecek6e5844c2023-05-22 11:42:09 +020028 ly_cmd "verb debug"
29 ly_cmd "debug dep-sets xpath"
30 ly_cmd "load modmust" "DEPSETS.*XPATH"
31}}
32
33cleanupTests