-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added --conformance flag (implement|import)
- Loading branch information
Martin Björklund
committed
Apr 16, 2018
1 parent
0c9dbc9
commit 66c7a15
Showing
8 changed files
with
149 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
include ../../support/*_testcases.mk | ||
|
||
build: | ||
|
||
clean: | ||
rm -rf lux_logs _tmp_* | ||
|
||
.PHONY: build clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module a { | ||
namespace urn:a; | ||
prefix a; | ||
|
||
container a; | ||
|
||
augment /a { | ||
container x; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module b { | ||
namespace urn:b; | ||
prefix b; | ||
|
||
import a { | ||
prefix a; | ||
} | ||
|
||
augment /a:a { | ||
container b; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[doc Test --conformance flag] | ||
|
||
[shell compilation] | ||
-internal|module | ||
!yanger -f tree -C a:import -C b:import a.yang b.yang | ||
?SH-PROMPT | ||
!yanger -f tree -C import a.yang b.yang | ||
?SH-PROMPT | ||
-internal | ||
!yanger -f tree -C implement a.yang b.yang | ||
"""?? | ||
module: a | ||
+--rw a | ||
+--rw x | ||
+--rw b:b | ||
SH-PROMPT | ||
""" | ||
-internal|b:b | ||
!yanger -f tree -C a:implement -C b:import a.yang b.yang | ||
"""?? | ||
module: a | ||
+--rw a | ||
+--rw x | ||
SH-PROMPT | ||
""" | ||
!yanger -f tree -C b:import a.yang b.yang | ||
"""?? | ||
module: a | ||
+--rw a | ||
+--rw x | ||
SH-PROMPT | ||
""" | ||
-internal | ||
!yanger --print-error-code -C a:import a.yang b.yang | ||
?YANG_ERR_NODE_NOT_FOUND |