blob: 22d63c0f24cd2c49d69223d258f317d800d29bbe [file] [log] [blame]
source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/non-interactive/ly.tcl" : "ly.tcl"}]
set dir $env(YANG_MODULES_DIR)
test feature_one_module {Show features for one module} {
ly_cmd "-f feature-param $dir/ietf-ip.yang" " -F ietf-ip:ipv4-non-contiguous-netmasks,ipv6-privacy-autoconf" -ex
} {}
test feature_more_modules {Show a mix of modules with and without features} {
set features " -F modfeature:ftr1,ftr2\
-F modleaf:\
-F ietf-ip:ipv4-non-contiguous-netmasks,ipv6-privacy-autoconf"
ly_cmd "-f feature-param $dir/modfeature.yang $dir/modleaf.yang $dir/ietf-ip.yang" $features -ex
} {}
cleanupTests