Adding upstream version 3.1.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
64dbec996d
commit
cfcebb1a7d
569 changed files with 205393 additions and 0 deletions
26
tests/yanglint/non-interactive/list.test
Normal file
26
tests/yanglint/non-interactive/list.test
Normal file
|
@ -0,0 +1,26 @@
|
|||
source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/non-interactive/ly.tcl" : "ly.tcl"}]
|
||||
namespace import uti::regex_xml_elements uti::regex_json_pairs
|
||||
|
||||
set modules {ietf-yang-library ietf-inet-types}
|
||||
|
||||
test list_basic {} {
|
||||
ly_cmd "-l" "ietf-yang-types"
|
||||
} {}
|
||||
|
||||
test list_format_xml {list --format xml} {
|
||||
ly_cmd "-y -f xml -l" [regex_xml_elements $modules "name"]
|
||||
} {}
|
||||
|
||||
test list_format_json {list --format json} {
|
||||
ly_cmd "-y -f json -l" [regex_json_pairs $modules "name"]
|
||||
} {}
|
||||
|
||||
test list_ietf_yang_library {Error due to missing ietf-yang-library} {
|
||||
ly_cmd_err "-f xml -l" "Module \"ietf-yang-library\" is not implemented."
|
||||
} {}
|
||||
|
||||
test list_bad_format {Error due to bad format} {
|
||||
ly_cmd_err "-f csv -l" "Unknown output format csv"
|
||||
} {}
|
||||
|
||||
cleanupTests
|
Loading…
Add table
Add a link
Reference in a new issue