Skip to contentSkip to conversation

python-salttesting: initial version

PATCH In review Collin Richards 2 participants 3 messages Jun 20, 2016 – Jun 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python-salttesting: initial version

This package provides testing tools used by the salt project.

Natinst-ReviewBoard-ID: 142234

---
 .../python/python-salttesting_2015.2.16.bb           | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta-openstack/recipes-devtools/python/python-salttesting_2015.2.16.bb
meta-openstack/recipes-devtools/python/python-salttesting_2015.2.16.bb new file +20 -0
new file mode 100644
index 0000000..78ad879
@@ -0,0 +1,20 @@
+SUMMARY = "Common testing tools used in the Salt Stack projects"
+HOMEPAGE = "https://github.com/saltstack/salt-testing"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=f36f1e9e3e30f90180efdf7e40d943e5"
+SRCNAME = "salt-testing"
+
+SRC_URI = "https://github.com/saltstack/salt-testing/archive/v${PV}.tar.gz;downloadfilename=salt-testing-v${PV}.tar.gz"
+SRC_URI[md5sum] = "8ca55a796e9ad7ba72bc143043753ccf"
+SRC_URI[sha256sum] = "0ef4be6a8a9b505ae1c328394dfad50493674af6100c7e2c220f374533d86edc"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+RDEPENDS_${PN} = "\
+                  python-mock \
+                  python-unittest \
+"
+
+inherit setuptools
+
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 salt: Add the salt test suite

* Add salt-tests - package for salt test suite

The salt test suite can be run from:
/usr/lib/python2.7/site-packages/salt-tests/tests/runtests.py

Natinst-ReviewBoard-ID: 142234

---
 meta-openstack/recipes-support/salt/salt_2016.3.0.bb | 11 +++++++++++
 1 file changed, 11 insertions(+)
meta-openstack/recipes-support/salt/salt_2016.3.0.bb +11 -0
index f3bbdba..a99296a 100644
@@ -35,7 +35,10 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools update-rc.d
 
+# Note ${PN}-tests must be before ${PN}-common in the PACKAGES variable
+# in order for ${PN}-tests to own the correct FILES.
 PACKAGES += "\
+           ${PN}-tests \
            ${PN}-api \
            ${PN}-cloud \
            ${PN}-common \
@@ -62,6 +65,9 @@ do_install_append() {
         install -m 0644 ${WORKDIR}/cloud ${D}${sysconfdir}/${PN}/cloud
         install -m 0644 ${WORKDIR}/roster ${D}${sysconfdir}/${PN}/roster
         install -d ${D}${sysconfdir}/${PN}/cloud.conf.d ${D}${sysconfdir}/${PN}/cloud.profiles.d ${D}${sysconfdir}/${PN}/cloud.providers.d
+
+        install -d ${D}${PYTHON_SITEPACKAGES_DIR}/${PN}-tests/
+        cp -r ${S}/tests/ ${D}${PYTHON_SITEPACKAGES_DIR}/${PN}-tests/
 }
 
 ALLOW_EMPTY_${PN} = "1"
@@ -147,4 +153,9 @@ RSUGGESTS_${PN}-cloud = "python-netaddr python-botocore"
 CONFFILES_${PN}-cloud = "${sysconfdir}/${PN}/cloud"
 FILES_${PN}-cloud = "${bindir}/${PN}-cloud ${sysconfdir}/${PN}/cloud.conf.d/ ${sysconfdir}/${PN}/cloud.profiles.d/ ${sysconfdir}/${PN}/cloud.providers.d/ ${CONFFILES_${PN}-cloud}"
 
+SUMMARY_${PN}-tests = "salt stack test suite"
+DESCRIPTION_${PN}-tests ="${DESCRIPTION_COMMON} This particular package provides the salt unit test suite."
+RDEPENDS_${PN}-tests = "${PN}-common python-salttesting python-tests python-image bash"
+FILES_${PN}-tests = "${PYTHON_SITEPACKAGES_DIR}/salt-tests/tests/"
+
 FILES_${PN}-bash-completion = "${sysconfdir}/bash_completion.d/${PN}-common"
Signature · 1 line
1.9.1
#2 lore raw
In reply to Collin Richards

merged both patches in the series.

Bruce

Quoted 52 lines · Collin Richards

This package provides testing tools used by the salt project.

Natinst-ReviewBoard-ID: 142234

---
 .../python/python-salttesting_2015.2.16.bb           | 20
++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta-openstack/recipes-devtools/python/

python-salttesting_2015.2.16.bb

(quoted diff) +0 -0

python-salttesting_2015.2.16.bb b/meta-openstack/recipes-devtools/python/ python-salttesting_2015.2.16.bb
new file mode 100644
index 0000000..78ad879

meta-openstack/recipes-devtools/python/ new file +0 -0

python-salttesting_2015.2.16.bb

meta-openstack/recipes-devtools/python/ new file +8 -0
@@ -0,0 +1,20 @@
+SUMMARY = "Common testing tools used in the Salt Stack projects"
+HOMEPAGE = "https://github.com/saltstack/salt-testing"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=f36f1e9e3e30f90180efdf7e40d943e5"
+SRCNAME = "salt-testing"
+
+SRC_URI = "

https://github.com/saltstack/salt-testing/archive/v${PV}.tar.gz;downloadfilename=salt-testing-v${PV}.tar.gz
"

meta-openstack/recipes-devtools/python/ new file +2 -0
+SRC_URI[md5sum] = "8ca55a796e9ad7ba72bc143043753ccf"
+SRC_URI[sha256sum] =

"0ef4be6a8a9b505ae1c328394dfad50493674af6100c7e2c220f374533d86edc"

meta-openstack/recipes-devtools/python/ new file +10 -1
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+RDEPENDS_${PN} = "\
+                  python-mock \
+                  python-unittest \
+"
+
+inherit setuptools
+
--

1.9.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"