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