aPiecek | 07bc963 | 2023-06-01 12:14:48 +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 | variable ly_setup { |
| 6 | spawn $::env(YANGLINT) |
| 7 | ly_skip_warnings |
| 8 | } |
| 9 | |
| 10 | test searchpath_basic {} { |
| 11 | -setup $ly_setup -cleanup $ly_cleanup -body { |
| 12 | ly_cmd "searchpath $mdir" |
| 13 | ly_cmd "searchpath" "$mdir" |
| 14 | ly_cmd "load modleaf" |
| 15 | }} |
| 16 | |
| 17 | test searchpath_clear {searchpath --clear} { |
| 18 | -setup $ly_setup -cleanup $ly_cleanup -body { |
| 19 | ly_cmd "searchpath $mdir" |
| 20 | ly_cmd "searchpath --clear" |
| 21 | ly_cmd_err "load modleaf" "Data model \"modleaf\" not found in local searchdirs" |
| 22 | }} |
| 23 | |
| 24 | cleanupTests |