aPiecek | 080c2bf | 2023-03-28 14:27:52 +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 make_impl_no_set {Import while --make-implemented is not set} { |
| 6 | ly_cmd "-l $mdir/modleafref.yang" "I modleafref\n.*I modleaf" |
| 7 | } {} |
| 8 | |
| 9 | test make_impl_set_once {--make-implemented} { |
| 10 | ly_cmd "-l -i $mdir/modmust.yang" "I modmust\n.*I modleaf" |
| 11 | } {} |
| 12 | |
| 13 | test make_impl_set_twice {-i -i} { |
| 14 | ly_cmd "-l -i -i $mdir/modimp-type.yang" "I modimp-type\n.*I modtypedef" |
| 15 | } {} |
| 16 | |
| 17 | cleanupTests |