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