Merge lp:~yolanda.robla/glance/havana into lp:~openstack-ubuntu-testing/glance/havana

Proposed by Yolanda Robla
Status: Merged
Approved by: Chuck Short
Approved revision: 249
Merged at revision: 249
Proposed branch: lp:~yolanda.robla/glance/havana
Merge into: lp:~openstack-ubuntu-testing/glance/havana
Diff against target: 82 lines (+43/-0)
6 files modified
debian/changelog (+6/-0)
debian/control (+1/-0)
debian/tests/control (+3/-0)
debian/tests/glance-daemons (+15/-0)
debian/tests/python-glance (+14/-0)
debian/tests/test_import_glance.py (+4/-0)
To merge this branch: bzr merge lp:~yolanda.robla/glance/havana
Reviewer Review Type Date Requested Status
Openstack Ubuntu Testers Pending
Review via email: mp+167555@code.launchpad.net

Description of the change

Added autopkgtests

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-05-31 13:22:28 +0000
3+++ debian/changelog 2013-06-05 14:39:34 +0000
4@@ -1,3 +1,9 @@
5+glance (1:2013.2~b1-0ubuntu2) UNRELEASED; urgency=low
6+
7+ * debian/tests: added autopkgtests
8+
9+ -- Yolanda Robla <yolanda.robla@canonical.com> Wed, 05 Jun 2013 16:34:14 +0200
10+
11 glance (1:2013.2~b1-0ubuntu1) saucy; urgency=low
12
13 * New upstream release.
14
15=== modified file 'debian/control'
16--- debian/control 2013-04-30 14:34:41 +0000
17+++ debian/control 2013-06-05 14:39:34 +0000
18@@ -40,6 +40,7 @@
19 Standards-Version: 3.9.3
20 XS-Python-Version: >= 2.6
21 Homepage: http://launchpad.net/glance
22+XS-Testsuite: autopkgtest
23
24 Package: python-glance
25 Architecture: all
26
27=== added directory 'debian/tests'
28=== added file 'debian/tests/control'
29--- debian/tests/control 1970-01-01 00:00:00 +0000
30+++ debian/tests/control 2013-06-05 14:39:34 +0000
31@@ -0,0 +1,3 @@
32+Tests: python-glance glance-daemons
33+Depends: python-glance, glance-api, glance-registry
34+Restrictions: needs-root
35
36=== added file 'debian/tests/glance-daemons'
37--- debian/tests/glance-daemons 1970-01-01 00:00:00 +0000
38+++ debian/tests/glance-daemons 2013-06-05 14:39:34 +0000
39@@ -0,0 +1,15 @@
40+#!/bin/bash
41+#---------------------
42+# Testing glance-daemons
43+#---------------------
44+set -e
45+DAEMONS=('glance-api' 'glance-registry')
46+
47+for daemon in "${DAEMONS[@]}"; do
48+ if pidof -x $daemon > /dev/null; then
49+ echo "OK"
50+ else
51+ echo "ERROR: ${daemon} IS NOT RUNNING"
52+ exit 1
53+ fi
54+done
55
56=== added file 'debian/tests/python-glance'
57--- debian/tests/python-glance 1970-01-01 00:00:00 +0000
58+++ debian/tests/python-glance 2013-06-05 14:39:34 +0000
59@@ -0,0 +1,14 @@
60+#!/bin/bash
61+#-------------------------
62+# Testing client utilities
63+#-------------------------
64+set -e
65+
66+result=$(python `dirname $0`/test_import_glance.py 2>&1)
67+if [ "$result" ]; then
68+ echo "ERROR: PYTHON-GLANCE MODULE CANNOT BE IMPORTED"
69+ exit 1
70+else
71+ echo "OK"
72+ exit 0
73+fi
74
75=== added file 'debian/tests/test_import_glance.py'
76--- debian/tests/test_import_glance.py 1970-01-01 00:00:00 +0000
77+++ debian/tests/test_import_glance.py 2013-06-05 14:39:34 +0000
78@@ -0,0 +1,4 @@
79+try:
80+ import glance
81+except ImportError, e:
82+ print "ERROR IMPORTING MODULE"

Subscribers

People subscribed via source and target branches