blob: d64503afdf23b1c2f0cebfd6a9168b515fdf675a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/usr/bin/env bash
LIST_BASE="List of the loaded models:
i ietf-yang-metadata@2016-08-05
I yang@2022-06-16
i ietf-inet-types@2013-07-15
i ietf-yang-types@2013-07-15
I ietf-yang-schema-mount@2019-01-14
i ietf-yang-structure-ext@2020-06-17"
testListEmptyContext() {
output=`${YANGLINT} -l`
assertEquals "Unexpected list of modules in empty context." "${LIST_BASE}" "${output}"
}
testListAllImplemented() {
LIST_BASE_ALLIMPLEMENTED="List of the loaded models:
I ietf-yang-metadata@2016-08-05
I yang@2022-06-16
I ietf-inet-types@2013-07-15
I ietf-yang-types@2013-07-15
I ietf-yang-schema-mount@2019-01-14
I ietf-yang-structure-ext@2020-06-17"
output=`${YANGLINT} -lii`
assertEquals "Unexpected list of modules in empty context with -ii." "${LIST_BASE_ALLIMPLEMENTED}" "${output}"
}
. shunit2
|