summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-glance_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-glance_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-glance_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-glance_git.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-glance_git.bb b/meta-openstack/recipes-devtools/python/python-glance_git.bb
index 935fdc9..f59af90 100644
--- a/meta-openstack/recipes-devtools/python/python-glance_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-glance_git.bb
@@ -56,6 +56,8 @@ do_install_append() {
56 sed 's:@suffix@:registry:' < ${WORKDIR}/glance.init >${WORKDIR}/glance-registry.init.sh 56 sed 's:@suffix@:registry:' < ${WORKDIR}/glance.init >${WORKDIR}/glance-registry.init.sh
57 install -m 0755 ${WORKDIR}/glance-registry.init.sh ${D}${sysconfdir}/init.d/glance-registry 57 install -m 0755 ${WORKDIR}/glance-registry.init.sh ${D}${sysconfdir}/init.d/glance-registry
58 fi 58 fi
59
60 cp run_tests.sh ${GLANCE_CONF_DIR}
59} 61}
60 62
61pkg_postinst_${SRCNAME}-setup () { 63pkg_postinst_${SRCNAME}-setup () {
@@ -75,11 +77,13 @@ pkg_postinst_${SRCNAME}-setup () {
75 glance-manage db_sync 77 glance-manage db_sync
76} 78}
77 79
78PACKAGES += " ${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-registry" 80PACKAGES += " ${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-registry"
79ALLOW_EMPTY_${SRCNAME}-setup = "1" 81ALLOW_EMPTY_${SRCNAME}-setup = "1"
80 82
81FILES_${PN} = "${libdir}/*" 83FILES_${PN} = "${libdir}/*"
82 84
85FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/run_tests.sh"
86
83FILES_${SRCNAME} = "${bindir}/* \ 87FILES_${SRCNAME} = "${bindir}/* \
84 ${sysconfdir}/${SRCNAME}/* \ 88 ${sysconfdir}/${SRCNAME}/* \
85 ${localstatedir}/* \ 89 ${localstatedir}/* \