blob: 59abe87a26e717239a42f24b7066fe4481e9b626 [file] [log] [blame]
aPiecek6d41a522023-03-27 14:20:38 +02001source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/interactive/ly.tcl" : "ly.tcl"}]
2
3set mdir $::env(YANG_MODULES_DIR)
4
5test 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
12test 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
19cleanupTests