]> review.fuel-infra Code Review - openstack-build/cinder-build.git/blob - trusty/debian/tests/cinder-volume
Add cinder 2015.1 for Kilo
[openstack-build/cinder-build.git] / trusty / debian / tests / cinder-volume
1 #!/bin/bash
2 #----------------------
3 # Testing cinder-volume
4 #----------------------
5 set -e
6 apt-get install -y cinder-volume cinder-backup 2>&1 > /dev/null
7 DAEMONS=('cinder-volume' 'cinder-backup')
8
9 for daemon in "${DAEMONS[@]}"; do
10     if pidof -x $daemon > /dev/null; then
11         echo "OK"
12     else
13         echo "ERROR: ${daemon} IS NOT RUNNING"
14         exit 1
15     fi
16 done
17 apt-get remove -y cinder-volume cinder-backup 2>&1 > /dev/null