blob: 4543acb05796ae52b2d1bd30b225fbe1319b3000 [file] [log] [blame]
aPiecek6e5844c2023-05-22 11:42:09 +02001source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/non-interactive/ly.tcl" : "ly.tcl"}]
2
3set mdir $::env(YANG_MODULES_DIR)
4
5test debug_dict {Check debug message DICT} {
6-constraints {[ly_opt_exists "-G"]} -body {
7 ly_cmd_wrn "-V -V -G dict $mdir/modleaf.yang" "DICT"
8}}
9
10test debug_xpath {Check debug message XPATH} {
11-constraints {[ly_opt_exists "-G"]} -body {
12 ly_cmd_wrn "-V -V -G xpath $mdir/modmust.yang" "XPATH"
13}}
14
15test debug_dep_sets {Check debug message DEPSETS} {
16-constraints {[ly_opt_exists "-G"]} -body {
17 ly_cmd_wrn "-V -V -G dep-sets $mdir/modleaf.yang" "DEPSETS"
18}}
19
20test debug_depsets_xpath {Check debug message DEPSETS and XPATH} {
21-constraints {[ly_opt_exists "-G"]} -body {
22 ly_cmd_wrn "-V -V -G dep-sets,xpath $mdir/modmust.yang" "DEPSETS.*XPATH"
23}}
24
25cleanupTests