Update items for Jenkins tests

This commit is contained in:
James Shubin
2016-02-22 20:00:15 -05:00
parent 2dc3c62bbd
commit a56fb3c8cd
2 changed files with 7 additions and 0 deletions

View File

@@ -29,6 +29,7 @@
:vms: :vms:
- :name: mgmt1 - :name: mgmt1
:shell: :shell:
- apt-get install -y make
- iptables -F - iptables -F
- cd /vagrant/mgmt/ && make path - cd /vagrant/mgmt/ && make path
- cd /vagrant/mgmt/ && make deps && make build && cp mgmt ~/bin/ - cd /vagrant/mgmt/ && make deps && make build && cp mgmt ~/bin/

View File

@@ -6,10 +6,16 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # dir!
cd "$DIR" >/dev/null # work from test directory cd "$DIR" >/dev/null # work from test directory
# vtest+ tests # vtest+ tests
RET=0
for i in omv/*.yaml; do for i in omv/*.yaml; do
echo "running: vtest+ $i" echo "running: vtest+ $i"
vtest+ "$i" vtest+ "$i"
if [ $? -ne 0 ]; then
RET=1
break # remove this if we should run all tests even if one fails
fi
done done
# return to original dir # return to original dir
cd "$CWD" >/dev/null cd "$CWD" >/dev/null
exit $RET