summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-keystone_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-keystone_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-keystone_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-keystone_git.bb12
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
53pkg_postinst_${SRCNAME}-setup () { 55pkg_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
82PACKAGES += " ${SRCNAME} ${SRCNAME}-setup" 84PACKAGES += " ${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-setup"
83 85
84ALLOW_EMPTY_${SRCNAME}-setup = "1" 86ALLOW_EMPTY_${SRCNAME}-setup = "1"
85 87
86FILES_${PN} = "${libdir}/*" 88FILES_${PN} = "${libdir}/*"
87 89
90FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/run_tests.sh"
91
88FILES_${SRCNAME} = "${bindir}/* \ 92FILES_${SRCNAME} = "${bindir}/* \
89 ${sysconfdir}/${SRCNAME}/* \ 93 ${sysconfdir}/${SRCNAME}/* \
90 ${sysconfdir}/init.d/* \ 94 ${sysconfdir}/init.d/* \
91 ${localstatedir}/* \ 95 ${localstatedir}/* \
92 " 96 "
93 97
94RDEPENDS_${PN} += "python-pam \ 98RDEPENDS_${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
112RDEPENDS_${SRCNAME} = "${PN} postgresql postgresql-client python-psycopg2" 120RDEPENDS_${SRCNAME} = "${PN} postgresql postgresql-client python-psycopg2"
113 121
114INITSCRIPT_PACKAGES = "${SRCNAME}" 122INITSCRIPT_PACKAGES = "${SRCNAME}"