Making the tests self-contained wrt config file and lib.sh creating test scratch dir.

This commit is contained in:
Olof hagsand 2018-01-07 17:56:33 +01:00
parent b5b96cde0c
commit cefaf4717f
12 changed files with 256 additions and 78 deletions

View file

@ -1,10 +1,11 @@
#!/bin/bash
# Test4: Yang specifics: multi-keys and empty type
# include err() and new() functions
# include err() and new() functions and creates $dir
. ./lib.sh
cfg=/tmp/conf_yang.xml
fyang=/tmp/test.yang
cfg=$dir/conf_yang.xml
fyang=$dir/test.yang
# For memcheck
# clixon_netconf="valgrind --leak-check=full --show-leak-kinds=all clixon_netconf"
@ -151,3 +152,5 @@ sudo clixon_backend -zf $cfg
if [ $? -ne 0 ]; then
err "kill backend"
fi
rm -rf $dir