summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-heat_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-heat_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-heat_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-heat_git.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-heat_git.bb b/meta-openstack/recipes-devtools/python/python-heat_git.bb
index 5cfd8bd..d4314f4 100644
--- a/meta-openstack/recipes-devtools/python/python-heat_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-heat_git.bb
@@ -59,6 +59,8 @@ do_install_append() {
59 sed 's:@suffix@:engine:' < ${WORKDIR}/heat.init >${WORKDIR}/heat-engine.init.sh 59 sed 's:@suffix@:engine:' < ${WORKDIR}/heat.init >${WORKDIR}/heat-engine.init.sh
60 install -m 0755 ${WORKDIR}/heat-engine.init.sh ${D}${sysconfdir}/init.d/heat-engine 60 install -m 0755 ${WORKDIR}/heat-engine.init.sh ${D}${sysconfdir}/init.d/heat-engine
61 fi 61 fi
62
63 cp run_tests.sh ${HEAT_CONF_DIR}
62} 64}
63 65
64pkg_postinst_${SRCNAME}-setup () { 66pkg_postinst_${SRCNAME}-setup () {
@@ -80,13 +82,15 @@ pkg_postinst_${SRCNAME}-setup () {
80 82
81inherit setuptools identity hosts update-rc.d 83inherit setuptools identity hosts update-rc.d
82 84
83PACKAGES += "${SRCNAME}-common ${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine" 85PACKAGES += "${SRCNAME}-tests ${SRCNAME}-common ${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine"
84PACKAGES += "${SRCNAME}-setup" 86PACKAGES += "${SRCNAME}-setup"
85 87
86ALLOW_EMPTY_${SRCNAME}-setup = "1" 88ALLOW_EMPTY_${SRCNAME}-setup = "1"
87 89
88FILES_${PN} = "${libdir}/*" 90FILES_${PN} = "${libdir}/*"
89 91
92FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/run_tests.sh"
93
90FILES_${SRCNAME}-common = "${sysconfdir}/${SRCNAME}/* \ 94FILES_${SRCNAME}-common = "${sysconfdir}/${SRCNAME}/* \
91" 95"
92 96