blob: 5e1a90e72ef96105ee02ea452d0a31a0141441a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
|