From 0e5297c9a87c43fe6011c240fbbe754b053da138 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Wed, 11 Dec 2013 02:24:24 -0500 Subject: 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 --- .../recipes-devtools/python/python-keystone_git.bb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'meta-openstack/recipes-devtools/python/python-keystone_git.bb') diff --git a/meta-openstack/recipes-devtools/python/python-keystone_git.bb b/meta-openstack/recipes-devtools/python/python-keystone_git.bb index dbc76d8..c2a9b04 100644 --- a/meta-openstack/recipes-devtools/python/python-keystone_git.bb +++ b/meta-openstack/recipes-devtools/python/python-keystone_git.bb @@ -48,6 +48,8 @@ do_install_append() { install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/keystone ${D}${sysconfdir}/init.d/keystone fi + + cp run_tests.sh ${KEYSTONE_CONF_DIR} } pkg_postinst_${SRCNAME}-setup () { @@ -79,19 +81,22 @@ pkg_postinst_${SRCNAME}-setup () { # end python-keystone postinst } -PACKAGES += " ${SRCNAME} ${SRCNAME}-setup" +PACKAGES += " ${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-setup" ALLOW_EMPTY_${SRCNAME}-setup = "1" FILES_${PN} = "${libdir}/*" +FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/run_tests.sh" + FILES_${SRCNAME} = "${bindir}/* \ ${sysconfdir}/${SRCNAME}/* \ ${sysconfdir}/init.d/* \ ${localstatedir}/* \ " -RDEPENDS_${PN} += "python-pam \ +RDEPENDS_${PN} += " \ + python-pam \ python-webob \ python-eventlet \ python-greenlet \ @@ -109,6 +114,9 @@ RDEPENDS_${PN} += "python-pam \ python-dogpile.cache \ " +# TODO: +# if DISTRO_FEATURE contains "tempest" then add *-tests to the main RDEPENDS + RDEPENDS_${SRCNAME} = "${PN} postgresql postgresql-client python-psycopg2" INITSCRIPT_PACKAGES = "${SRCNAME}" -- cgit v1.2.3-54-g00ecf