|
...
|
...
|
@@ -2,6 +2,22 @@
|
|
2
|
2
|
|
|
3
|
3
|
# **cinder_cert.sh**
|
|
4
|
4
|
|
|
|
5
|
+# This script is a simple wrapper around the tempest volume api tests
|
|
|
6
|
+# It requires that you have a working and functional devstack install
|
|
|
7
|
+# and that you've enabled your device driver by making the necessary
|
|
|
8
|
+# modifications to /etc/cinder/cinder.conf
|
|
|
9
|
+
|
|
|
10
|
+# This script will refresh your openstack repo's and restart the cinder
|
|
|
11
|
+# services to pick up your driver changes.
|
|
|
12
|
+# please NOTE; this script assumes your devstack install is functional
|
|
|
13
|
+# and includes tempest. A good first step is to make sure you can
|
|
|
14
|
+# create volumes on your device before you even try and run this script.
|
|
|
15
|
+
|
|
|
16
|
+# It also assumes default install location (/opt/stack/xxx)
|
|
|
17
|
+# to aid in debug, you should also verify that you've added
|
|
|
18
|
+# an output directory for screen logs:
|
|
|
19
|
+# SCREEN_LOGDIR=/opt/stack/screen-logs
|
|
|
20
|
+
|
|
5
|
21
|
CERT_DIR=$(cd $(dirname "$0") && pwd)
|
|
6
|
22
|
TOP_DIR=$(cd $CERT_DIR/..; pwd)
|
|
7
|
23
|
|
|
...
|
...
|
@@ -73,9 +89,9 @@ start_cinder
|
|
73
|
73
|
sleep 5
|
|
74
|
74
|
|
|
75
|
75
|
# run tempest api/volume/test_*
|
|
76
|
|
-log_message "Run the actual tempest volume tests (run_tests.sh -N tempest.api.volume.test_*)...", True
|
|
|
76
|
+log_message "Run the actual tempest volume tests (./tools/pretty_tox.sh api.volume_*)...", True
|
|
77
|
77
|
exec 2> >(tee -a $TEMPFILE)
|
|
78
|
|
-`./run_tests.sh -N tempest.api.volume.test_*`
|
|
|
78
|
+`./tools/pretty_tox.sh api.volume`
|
|
79
|
79
|
if [[ $? = 0 ]]; then
|
|
80
|
80
|
log_message "CONGRATULATIONS!!! Device driver PASSED!", True
|
|
81
|
81
|
log_message "Submit output: ($TEMPFILE)"
|