aPiecek | 0308aea | 2023-06-02 10:50:03 +0200 | [diff] [blame^] | 1 | source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/non-interactive/ly.tcl" : "ly.tcl"}] |
2 | |||||
3 | set mdir $::env(YANG_MODULES_DIR) | ||||
4 | |||||
5 | test extended_leafref_enabled {Valid module with --extended-leafref option} { | ||||
6 | ly_cmd "-X $mdir/modextleafref.yang" | ||||
7 | } {} | ||||
8 | |||||
9 | test extended_leafref_disabled {Expected error if --extended-leafref is not set} { | ||||
10 | ly_cmd_err "$mdir/modextleafref.yang" "Unexpected XPath token \"FunctionName\"" | ||||
11 | } {} | ||||
12 | |||||
13 | cleanupTests |