aPiecek | 6d41a52 | 2023-03-27 14:20:38 +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 | test add_disable_searchdir_once {add --disable-searchdir} { |
| 6 | -setup $ly_setup -cleanup $ly_cleanup -constraints {!ctest} -body { |
| 7 | ly_cmd "add $mdir/modimp-cwd.yang" |
| 8 | ly_cmd "clear" |
| 9 | ly_cmd_err "add -D $mdir/modimp-cwd.yang" "not found in local searchdirs" |
| 10 | }} |
| 11 | |
| 12 | test add_disable_searchdir_twice {add -D -D} { |
| 13 | -setup $ly_setup -cleanup $ly_cleanup -constraints {!ctest} -body { |
| 14 | ly_cmd "add $mdir/ietf-ip.yang" |
| 15 | ly_cmd "clear" |
| 16 | ly_cmd_err "add -D -D $mdir/ietf-ip.yang" "Loading \"ietf-interfaces\" module failed." |
| 17 | }} |
| 18 | |
| 19 | cleanupTests |