blob: 5e1a90e72ef96105ee02ea452d0a31a0141441a5 [file] [log] [blame]
source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/non-interactive/ly.tcl" : "ly.tcl"}]
set mdir $::env(YANG_MODULES_DIR)
test extended_leafref_enabled {Valid module with --extended-leafref option} {
ly_cmd "-X $mdir/modextleafref.yang"
} {}
test extended_leafref_disabled {Expected error if --extended-leafref is not set} {
ly_cmd_err "$mdir/modextleafref.yang" "Unexpected XPath token \"FunctionName\""
} {}
cleanupTests