aPiecek | 6e5844c | 2023-05-22 11:42:09 +0200 | [diff] [blame] | 1 | source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/non-interactive/ly.tcl" : "ly.tcl"}] |
| 2 | |
| 3 | set mdir $::env(YANG_MODULES_DIR) |
| 4 | |
| 5 | test 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 | |
| 10 | test 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 | |
| 15 | test 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 | |
| 20 | test 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 | |
| 25 | cleanupTests |