summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinder_git.bb
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-12-11 02:24:24 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-12-11 02:30:04 -0500
commit0e5297c9a87c43fe6011c240fbbe754b053da138 (patch)
treef1aa1a088ac55bee395dcfac22b701e91009e131 /meta-openstack/recipes-devtools/python/python-cinder_git.bb
parent8d106c85a99ef8450e098e627428e37386ac6b10 (diff)
downloadmeta-cloud-services-0e5297c9a87c43fe6011c240fbbe754b053da138.tar.gz
tempest: create per-component test packages and flakes8
To add more complete tempest support, we require flakes8, so it is added to the dependency list. To get the individual component test scripts onto the target, create a $PACKAGE-tests package and add the script. When the tests are required on target, these packages should be added to the install list. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder_git.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder_git.bb b/meta-openstack/recipes-devtools/python/python-cinder_git.bb
index 28ae314..50eacaa 100644
--- a/meta-openstack/recipes-devtools/python/python-cinder_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-cinder_git.bb
@@ -47,6 +47,8 @@ do_install_append() {
47 install -m 0755 ${WORKDIR}/cinder-scheduler.init.sh ${D}${sysconfdir}/init.d/cinder-scheduler 47 install -m 0755 ${WORKDIR}/cinder-scheduler.init.sh ${D}${sysconfdir}/init.d/cinder-scheduler
48 install -m 0755 ${WORKDIR}/cinder-volume ${D}${sysconfdir}/init.d/cinder-volume 48 install -m 0755 ${WORKDIR}/cinder-volume ${D}${sysconfdir}/init.d/cinder-volume
49 fi 49 fi
50
51 cp run_tests.sh ${CINDER_CONF_DIR}
50} 52}
51 53
52pkg_postinst_${SRCNAME}-setup () { 54pkg_postinst_${SRCNAME}-setup () {
@@ -68,11 +70,13 @@ pkg_postinst_${SRCNAME}-setup () {
68 echo "include /etc/cinder/data/volumes/*" >> /etc/tgt/targets.conf 70 echo "include /etc/cinder/data/volumes/*" >> /etc/tgt/targets.conf
69} 71}
70 72
71PACKAGES += "${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler" 73PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler"
72ALLOW_EMPTY_${SRCNAME}-setup = "1" 74ALLOW_EMPTY_${SRCNAME}-setup = "1"
73 75
74FILES_${PN} = "${libdir}/*" 76FILES_${PN} = "${libdir}/*"
75 77
78FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/run_tests.sh"
79
76FILES_${SRCNAME}-api = "${bindir}/cinder-api \ 80FILES_${SRCNAME}-api = "${bindir}/cinder-api \
77 ${sysconfdir}/init.d/cinder-api" 81 ${sysconfdir}/init.d/cinder-api"
78 82