Added docker/base as minimal clixon container and docker/system as full clixon system.
This commit is contained in:
parent
7e38dc57e3
commit
66d8573c00
23 changed files with 222 additions and 138 deletions
|
|
@ -46,7 +46,8 @@ testname=
|
|||
: ${OPENCONFIG=$(pwd)/public}
|
||||
|
||||
# Standard IETF RFC yang files.
|
||||
: ${IETFRFC=$YANGMODELS/standard/ietf/RFC}
|
||||
: ${IETFRFC=../yang/standard}
|
||||
#: ${IETFRFC=$YANGMODELS/standard/ietf/RFC}
|
||||
|
||||
# For memcheck
|
||||
#clixon_cli="valgrind --leak-check=full --show-leak-kinds=all clixon_cli"
|
||||
|
|
|
|||
|
|
@ -3,8 +3,9 @@
|
|||
# Notes:
|
||||
# - openconfig test suites are patched to counter Clixon issues as follows:
|
||||
# - release/models/mpls/openconfig-mpls-te.yang
|
||||
# issue: https://github.com/clicon/clixon/issues/60
|
||||
# - Env variable YANGMODELS should point to checkout place. (define it in site.sh for example)
|
||||
# issue: https://github.com/clicon/clixon/issues/6
|
||||
# - Env-var MODELS should be 1
|
||||
# - Env-var OPENCONFIG should point to checkout place. (define it in site.sh for example)
|
||||
|
||||
APPNAME=example
|
||||
|
||||
|
|
@ -20,7 +21,8 @@ fyang=$dir/test.yang
|
|||
|
||||
new "openconfig"
|
||||
if [ ! -d "$OPENCONFIG" ]; then
|
||||
err "Hmm Openconfig dir does not seem to exist, try git clone https://github.com/openconfig/public?"
|
||||
# err "Hmm Openconfig dir does not seem to exist, try git clone https://github.com/openconfig/public?"
|
||||
exit
|
||||
fi
|
||||
|
||||
OCDIR=$OPENCONFIG/release/models
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Parse yangmodels from https://github.com/YangModels/yang
|
||||
# Notes:
|
||||
# - Env-var MODELS should be 1
|
||||
# - Env variable YANGMODELS should point to checkout place. (define it in site.sh for example)
|
||||
# - Only cisco/nx/9.2-2 # Many other versions
|
||||
# - Only cisco/xe/1631 # Many other versions
|
||||
|
|
@ -30,7 +31,8 @@ cfg=$dir/conf_yang.xml
|
|||
fyang=$dir/test.yang
|
||||
|
||||
if [ ! -d "$YANGMODELS" ]; then
|
||||
err "Hmm Yangmodels dir does not seem to exist, try git clone https://github.com/YangModels/yang?"
|
||||
# err "Hmm Yangmodels dir does not seem to exist, try git clone https://github.com/YangModels/yang?"
|
||||
exit
|
||||
fi
|
||||
|
||||
# Experimental IEEE
|
||||
|
|
|
|||
|
|
@ -9,5 +9,8 @@ sudo make install-include
|
|||
(cd example && make && sudo make install)
|
||||
sudo groupadd clicon
|
||||
sudo usermod -a -G clicon $(whoami)
|
||||
sudo usermod -a -G clicon root
|
||||
sudo usermod -a -G clicon www-data
|
||||
# Build and start the system docker container
|
||||
(cd docker/system && make docker && start.sh)
|
||||
# Run clixon testcases
|
||||
(cd docker/system && sudo docker exec -it clixon-system bash -c 'cd /clixon/clixon/test; exec ./all.sh')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue