This commit is contained in:
Olof hagsand 2018-11-25 18:24:13 +01:00
parent 4303406957
commit 56da97cb5b
6 changed files with 1065 additions and 893 deletions

24
test/test_openconfig.sh Executable file
View 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