diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-12-11 02:24:24 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-12-11 02:30:04 -0500 |
| commit | 0e5297c9a87c43fe6011c240fbbe754b053da138 (patch) | |
| tree | f1aa1a088ac55bee395dcfac22b701e91009e131 /meta-openstack/recipes-devtools/python/python-keystone_git.bb | |
| parent | 8d106c85a99ef8450e098e627428e37386ac6b10 (diff) | |
| download | meta-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-keystone_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-keystone_git.bb | 12 |
1 files changed, 10 insertions, 2 deletions
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() { | |||
| 48 | install -d ${D}${sysconfdir}/init.d | 48 | install -d ${D}${sysconfdir}/init.d |
| 49 | install -m 0755 ${WORKDIR}/keystone ${D}${sysconfdir}/init.d/keystone | 49 | install -m 0755 ${WORKDIR}/keystone ${D}${sysconfdir}/init.d/keystone |
| 50 | fi | 50 | fi |
| 51 | |||
| 52 | cp run_tests.sh ${KEYSTONE_CONF_DIR} | ||
| 51 | } | 53 | } |
| 52 | 54 | ||
| 53 | pkg_postinst_${SRCNAME}-setup () { | 55 | pkg_postinst_${SRCNAME}-setup () { |
| @@ -79,19 +81,22 @@ pkg_postinst_${SRCNAME}-setup () { | |||
| 79 | # end python-keystone postinst | 81 | # end python-keystone postinst |
| 80 | } | 82 | } |
| 81 | 83 | ||
| 82 | PACKAGES += " ${SRCNAME} ${SRCNAME}-setup" | 84 | PACKAGES += " ${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-setup" |
| 83 | 85 | ||
| 84 | ALLOW_EMPTY_${SRCNAME}-setup = "1" | 86 | ALLOW_EMPTY_${SRCNAME}-setup = "1" |
| 85 | 87 | ||
| 86 | FILES_${PN} = "${libdir}/*" | 88 | FILES_${PN} = "${libdir}/*" |
| 87 | 89 | ||
| 90 | FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/run_tests.sh" | ||
| 91 | |||
| 88 | FILES_${SRCNAME} = "${bindir}/* \ | 92 | FILES_${SRCNAME} = "${bindir}/* \ |
| 89 | ${sysconfdir}/${SRCNAME}/* \ | 93 | ${sysconfdir}/${SRCNAME}/* \ |
| 90 | ${sysconfdir}/init.d/* \ | 94 | ${sysconfdir}/init.d/* \ |
| 91 | ${localstatedir}/* \ | 95 | ${localstatedir}/* \ |
| 92 | " | 96 | " |
| 93 | 97 | ||
| 94 | RDEPENDS_${PN} += "python-pam \ | 98 | RDEPENDS_${PN} += " \ |
| 99 | python-pam \ | ||
| 95 | python-webob \ | 100 | python-webob \ |
| 96 | python-eventlet \ | 101 | python-eventlet \ |
| 97 | python-greenlet \ | 102 | python-greenlet \ |
| @@ -109,6 +114,9 @@ RDEPENDS_${PN} += "python-pam \ | |||
| 109 | python-dogpile.cache \ | 114 | python-dogpile.cache \ |
| 110 | " | 115 | " |
| 111 | 116 | ||
| 117 | # TODO: | ||
| 118 | # if DISTRO_FEATURE contains "tempest" then add *-tests to the main RDEPENDS | ||
| 119 | |||
| 112 | RDEPENDS_${SRCNAME} = "${PN} postgresql postgresql-client python-psycopg2" | 120 | RDEPENDS_${SRCNAME} = "${PN} postgresql postgresql-client python-psycopg2" |
| 113 | 121 | ||
| 114 | INITSCRIPT_PACKAGES = "${SRCNAME}" | 122 | INITSCRIPT_PACKAGES = "${SRCNAME}" |
