travis: only container tests
This commit is contained in:
parent
dc173e0b4c
commit
96b7fd7485
2 changed files with 8 additions and 8 deletions
|
|
@ -115,7 +115,7 @@ new "netconf add small (1 entry) config"
|
||||||
expecteof "/usr/bin/time -f %e $clixon_netconf -qf $cfg -y $fyang" 0 '<rpc><edit-config><target><candidate/></target><config><x xmlns="urn:example:clixon"><y><a>x</a><b>y</b></y></x></config></edit-config></rpc>]]>]]>' "^<rpc-reply><ok/></rpc-reply>]]>]]>$"
|
expecteof "/usr/bin/time -f %e $clixon_netconf -qf $cfg -y $fyang" 0 '<rpc><edit-config><target><candidate/></target><config><x xmlns="urn:example:clixon"><y><a>x</a><b>y</b></y></x></config></edit-config></rpc>]]>]]>' "^<rpc-reply><ok/></rpc-reply>]]>]]>$"
|
||||||
|
|
||||||
new "netconf get $req small config"
|
new "netconf get $req small config"
|
||||||
/usr/bin/time -p for (( i=0; i<$req; i++ )); do
|
time -p for (( i=0; i<$req; i++ )); do
|
||||||
rnd=$(( ( RANDOM % $number ) ))
|
rnd=$(( ( RANDOM % $number ) ))
|
||||||
echo "<rpc><get-config><source><candidate/></source><filter type=\"xpath\" select=\"/x/y[a=$rnd][b=$rnd]\" /></get-config></rpc>]]>]]>"
|
echo "<rpc><get-config><source><candidate/></source><filter type=\"xpath\" select=\"/x/y[a=$rnd][b=$rnd]\" /></get-config></rpc>]]>]]>"
|
||||||
done | $clixon_netconf -qf $cfg -y $fyang > /dev/null
|
done | $clixon_netconf -qf $cfg -y $fyang > /dev/null
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,12 @@
|
||||||
# Clone and install CLIgen
|
# Clone and install CLIgen
|
||||||
git clone https://github.com/olofhagsand/cligen.git
|
git clone https://github.com/olofhagsand/cligen.git
|
||||||
(cd cligen && ./configure && make && sudo make install)
|
(cd cligen && ./configure && make && sudo make install)
|
||||||
./configure && make && sudo make install
|
#./configure && make && sudo make install
|
||||||
sudo /sbin/ldconfig
|
#sudo /sbin/ldconfig
|
||||||
sudo make install-include
|
#sudo make install-include
|
||||||
(cd example && make && sudo make install)
|
#(cd example && make && sudo make install)
|
||||||
sudo groupadd clicon
|
#sudo groupadd clicon
|
||||||
sudo usermod -a -G clicon $(whoami)
|
#sudo usermod -a -G clicon $(whoami)
|
||||||
sudo usermod -a -G clicon www-data
|
#sudo usermod -a -G clicon www-data
|
||||||
# Build the system docker container (make test may trigger it)
|
# Build the system docker container (make test may trigger it)
|
||||||
(cd docker/system && make docker)
|
(cd docker/system && make docker)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue