more clixon-util rm effects
This commit is contained in:
parent
a3a7624a11
commit
01fbf764e7
6 changed files with 22 additions and 12 deletions
|
|
@ -273,7 +273,7 @@ identityref_add_ns(cxobj *x,
|
|||
return retval;
|
||||
}
|
||||
|
||||
/*! Given a top-level yspec and mountpoint xpath compute a set of
|
||||
/*! Given a top-level yspec and mountpoint xpath compute api-path
|
||||
*
|
||||
* Manipulate top-level and a mountpoint:
|
||||
* YSPEC: yspec0 yspec1
|
||||
|
|
@ -290,10 +290,10 @@ identityref_add_ns(cxobj *x,
|
|||
* @retval -1 Error
|
||||
*/
|
||||
int
|
||||
mtpoint_paths(yang_stmt *yspec0,
|
||||
char *mtpoint,
|
||||
char *api_path_fmt1,
|
||||
char **api_path_fmt01)
|
||||
mtpoint_paths(yang_stmt *yspec0,
|
||||
char *mtpoint,
|
||||
char *api_path_fmt1,
|
||||
char **api_path_fmt01)
|
||||
{
|
||||
int retval = -1;
|
||||
yang_stmt *yu = NULL;
|
||||
|
|
|
|||
|
|
@ -91,6 +91,10 @@ test: docker
|
|||
./cleanup.sh ; ./start.sh # kill (ignore error) and the start it
|
||||
sudo docker exec -t clixon-test bash -c 'cd /usr/local/bin/test && detail=true ./sum.sh'
|
||||
|
||||
mem: docker
|
||||
./cleanup.sh ; ./start.sh # kill (ignore error) and the start it
|
||||
sudo docker exec -t clixon-test bash -c 'sudo apk add --update valgrind; cd /usr/local/bin/test && ./mem.sh'
|
||||
|
||||
# Special-purpose memory test for snmp
|
||||
memsnmp: docker
|
||||
./cleanup.sh ; ./start.sh # kill (ignore error) and the start it
|
||||
|
|
|
|||
|
|
@ -10,6 +10,5 @@ $MAKE clean
|
|||
$MAKE -j10
|
||||
sudo $MAKE install
|
||||
(cd example; $MAKE)
|
||||
(cd util; $MAKE)
|
||||
(cd example; sudo $MAKE install)
|
||||
(cd util; sudo $MAKE install)
|
||||
|
||||
|
|
|
|||
|
|
@ -24,9 +24,7 @@ make CLIGEN_LIB=/usr/local/lib/libcligen.a
|
|||
sudo make install
|
||||
sudo make install-include
|
||||
(cd example; make)
|
||||
(cd util; make)
|
||||
(cd example; sudo make install)
|
||||
(cd util; sudo make install)
|
||||
|
||||
# Kludge for netconf to touch all gcda files as root
|
||||
(cd test; sudo ./test_netconf_hello.sh) || true
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ if [ $BE -ne 0 ]; then
|
|||
if [ $? -ne 0 ]; then
|
||||
err
|
||||
fi
|
||||
new "start backend -s init -f $cfg -- -m clixon-mount0 -M urn:example:mount0"
|
||||
new "start backend -s init -f $cfg -- -m clixon-mount0 -M urn:example:mount0"
|
||||
start_backend -s init -f $cfg -- -m clixon-mount0 -M urn:example:mount0
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -72,10 +72,19 @@ $MAKE clean
|
|||
$MAKE -j10
|
||||
sudo $MAKE install
|
||||
(cd example; $MAKE)
|
||||
(cd util; $MAKE)
|
||||
(cd example; sudo $MAKE install)
|
||||
(cd util; sudo $MAKE install)
|
||||
sudo ldconfig
|
||||
|
||||
|
||||
# Clixon-util
|
||||
test -d src/clixon-util || (cd src;git clone https://github.com/clicon/clixon-util.git)
|
||||
cd src/clixon
|
||||
git pull origin master
|
||||
./configure --with-cligen=/ --with-clixon=/
|
||||
$MAKE clean
|
||||
$MAKE -j10
|
||||
sudo $MAKE install
|
||||
|
||||
cd test
|
||||
echo "#!/usr/bin/env bash" > ./site.sh
|
||||
echo "IPv6=true" >> ./site.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue