Openconfig yang specs parsed: https://github.com/openconfig/public
This commit is contained in:
parent
4303406957
commit
56da97cb5b
6 changed files with 1065 additions and 893 deletions
24
test/test_openconfig.sh
Executable file
24
test/test_openconfig.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
# Parse yang openconfig tests
|
||||
#PROG="valgrind --leak-check=full --show-leak-kinds=all ../util/clixon_util_yang"
|
||||
PROG=../util/clixon_util_yang
|
||||
OPENCONFIG=~/syssrc/openconfig
|
||||
|
||||
# include err() and new() functions and creates $dir
|
||||
. ./lib.sh
|
||||
|
||||
# Openconfig
|
||||
# Files not parseable:
|
||||
# - openconfig-access-points.yang
|
||||
# - openconfig-access-points.yang
|
||||
new "Openconfig"
|
||||
files=$(find $OPENCONFIG -name "*.yang")
|
||||
for f in $files; do
|
||||
new "$f"
|
||||
YANG=$(cat $f)
|
||||
# NYI
|
||||
expecteof "$PROG" 0 "$YANG" "module"
|
||||
done
|
||||
rm -rf $dir
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue