travis: only container tests

This commit is contained in:
Olof Hagsand 2019-02-11 16:01:12 +01:00
parent dc173e0b4c
commit 96b7fd7485
2 changed files with 8 additions and 8 deletions

View file

@ -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>]]>]]>$"
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 ) ))
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

View file

@ -3,12 +3,12 @@
# Clone and install CLIgen
git clone https://github.com/olofhagsand/cligen.git
(cd cligen && ./configure && make && sudo make install)
./configure && make && sudo make install
sudo /sbin/ldconfig
sudo make install-include
(cd example && make && sudo make install)
sudo groupadd clicon
sudo usermod -a -G clicon $(whoami)
sudo usermod -a -G clicon www-data
#./configure && make && sudo make install
#sudo /sbin/ldconfig
#sudo make install-include
#(cd example && make && sudo make install)
#sudo groupadd clicon
#sudo usermod -a -G clicon $(whoami)
#sudo usermod -a -G clicon www-data
# Build the system docker container (make test may trigger it)
(cd docker/system && make docker)