Test modifications
- Remove dependency of IETF YANGs on most tests - Remove dependnency of example/main in most tests, instead make local copy of example yang
This commit is contained in:
parent
f92e9609dc
commit
dec05e2cae
67 changed files with 516 additions and 149 deletions
|
|
@ -21,6 +21,7 @@ fi
|
|||
|
||||
APPNAME=example
|
||||
cfg=$dir/conf_yang.xml
|
||||
fyang=$dir/clixon-example.yang
|
||||
sshcfg=$dir/ssh.conf
|
||||
sshdcfg=$dir/sshd.conf
|
||||
rpccmd=$dir/rpccmd.xml
|
||||
|
|
@ -31,15 +32,12 @@ key=$keydir/mykey
|
|||
# XXX cant get it to work with this file under tmp dir so have to place it in homedir
|
||||
authfile=$HOME/.ssh/clixon_authorized_keys_removeme
|
||||
|
||||
# Use yang in example
|
||||
|
||||
cat <<EOF > $cfg
|
||||
<clixon-config xmlns="http://clicon.org/config">
|
||||
<CLICON_CONFIGFILE>$cfg</CLICON_CONFIGFILE>
|
||||
<CLICON_MODULE_SET_ID>42</CLICON_MODULE_SET_ID>
|
||||
<CLICON_YANG_DIR>/usr/local/share/clixon</CLICON_YANG_DIR>
|
||||
<CLICON_YANG_DIR>$IETFRFC</CLICON_YANG_DIR>
|
||||
<CLICON_YANG_MODULE_MAIN>clixon-example</CLICON_YANG_MODULE_MAIN>
|
||||
<CLICON_YANG_MAIN_FILE>$fyang</CLICON_YANG_MAIN_FILE>
|
||||
<CLICON_CLISPEC_DIR>/usr/local/lib/$APPNAME/clispec</CLICON_CLISPEC_DIR>
|
||||
<CLICON_BACKEND_DIR>/usr/local/lib/$APPNAME/backend</CLICON_BACKEND_DIR>
|
||||
<CLICON_BACKEND_REGEXP>example_backend.so$</CLICON_BACKEND_REGEXP>
|
||||
|
|
@ -50,6 +48,14 @@ cat <<EOF > $cfg
|
|||
</clixon-config>
|
||||
EOF
|
||||
|
||||
cat <<EOF > $fyang
|
||||
module clixon-example{
|
||||
yang-version 1.1;
|
||||
namespace "urn:example:clixon";
|
||||
prefix ex;
|
||||
}
|
||||
EOF
|
||||
|
||||
cat <<EOF > $rpccmd
|
||||
$DEFAULTHELLO
|
||||
<rpc $DEFAULTNS>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue