aPiecek | 5bbdc02 | 2023-03-27 13:15:46 +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 should be skipped if called by ctest. |
| 6 | test disable_searchdir_once {Unsuccessfully imports module due to disabled cwd searching} { |
| 7 | -constraints {!ctest} -body { |
| 8 | ly_cmd "$mdir/modimp-cwd.yang" |
| 9 | ly_cmd_err "-D $mdir/modimp-cwd.yang" "not found in local searchdirs" |
| 10 | }} |
| 11 | |
| 12 | test disable_searchdir_twice {Unsuccessfully imports module due to -D -D} { |
| 13 | ly_cmd "$mdir/ietf-ip.yang" |
| 14 | ly_cmd_err "-D -D $mdir/ietf-ip.yang" "Loading \"ietf-interfaces\" module failed." |
| 15 | } {} |
| 16 | |
| 17 | cleanupTests |
| 18 | |