From 8f4baacec963dd301ca4a21fd661988d12d6763e Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Wed, 9 Apr 2014 19:59:24 -0400 Subject: swiftclient: add tests Introduce swiftclient test package which contains all Swiftclient unit tests. Swiftclient unit tests can be run as: $ cd /usr/lib64/python2.7/site-packages/swiftclient $ nosetests -v tests Signed-off-by: Vu Tran --- meta-openstack/recipes-devtools/python/python-swiftclient_git.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meta-openstack/recipes-devtools/python') diff --git a/meta-openstack/recipes-devtools/python/python-swiftclient_git.bb b/meta-openstack/recipes-devtools/python/python-swiftclient_git.bb index 1e13b04..15a8d8a 100644 --- a/meta-openstack/recipes-devtools/python/python-swiftclient_git.bb +++ b/meta-openstack/recipes-devtools/python/python-swiftclient_git.bb @@ -5,6 +5,7 @@ LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658" PR = "r0" +SRCNAME = "swiftclient" SRC_URI = "git://github.com/openstack/python-swiftclient.git;branch=master" @@ -12,7 +13,11 @@ PV="2.0.2+git${SRCPV}" SRCREV="fa65fbbce51a7a603a6453da51db41061e4388f9" S = "${WORKDIR}/git" -inherit setuptools +inherit setuptools python-dir + +do_install_append() { + cp -r tests ${D}/${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/ +} DEPENDS += " \ python-pip \ -- cgit v1.2.3-54-g00ecf