blob: 40cead91224063ff57b35e285063ba28789e59ee [file] [log] [blame]
aPiecek080c2bf2023-03-28 14:27:52 +02001source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/non-interactive/ly.tcl" : "ly.tcl"}]
2
3set mdir $::env(YANG_MODULES_DIR)
4
5test 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
9test make_impl_set_once {--make-implemented} {
10 ly_cmd "-l -i $mdir/modmust.yang" "I modmust\n.*I modleaf"
11} {}
12
13test make_impl_set_twice {-i -i} {
14 ly_cmd "-l -i -i $mdir/modimp-type.yang" "I modimp-type\n.*I modtypedef"
15} {}
16
17cleanupTests