diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-05-09 16:21:49 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-05-09 16:30:14 +0200 |
commit | b261fdc68a5d1ccbfaa71c6a573b1671db2428a2 (patch) | |
tree | ed3c689182d97f0e5550447b1b96c8799fae320e /dev-util/scons | |
parent | dev-util/scons: Bump to 3.0.1 (diff) | |
download | gentoo-b261fdc68a5d1ccbfaa71c6a573b1671db2428a2.tar.gz gentoo-b261fdc68a5d1ccbfaa71c6a573b1671db2428a2.tar.bz2 gentoo-b261fdc68a5d1ccbfaa71c6a573b1671db2428a2.zip |
dev-util/scons: Support running tests
Diffstat (limited to 'dev-util/scons')
-rw-r--r-- | dev-util/scons/Manifest | 1 | ||||
-rw-r--r-- | dev-util/scons/scons-3.0.1.ebuild | 21 |
2 files changed, 20 insertions, 2 deletions
diff --git a/dev-util/scons/Manifest b/dev-util/scons/Manifest index 86d315f7a50e..1378322e7ffc 100644 --- a/dev-util/scons/Manifest +++ b/dev-util/scons/Manifest @@ -6,4 +6,5 @@ DIST scons-2.5.1-user.pdf 2522755 BLAKE2B 0dbf4ec98cd1dfb4889595762fdf57c2988a67 DIST scons-2.5.1.tar.gz 620909 BLAKE2B 021e02583dab06a859e46d164be79dcaa49a1a383c5d3fb9baa64afabb793e049b7ebefff1bbbcc8be1f364ca5c64e1a9c7ef937c32407853e39f4d84a91e51d SHA512 0e39f7f22a6c4ecc13edcd843b050754da5ded5371b3a8b406395f7b53dd280f95f804707eec271f8de3624d06f5b4ba3cc788dc4eb891cad224a163544f51b9 DIST scons-3.0.1-user.html 1121915 BLAKE2B 0ee57d112ba6269a488335e9354723c645e4b06129c26ca64d45923066ad92cf5519fa4933ef74dd5254d5b068b2909290c5c930a4247ebd6a5f1761f683a6e2 SHA512 e49ae91b04509d32f67d17cabb6619ede49c7190d80efcbd1e0bd1992574ea08c7abc892cad26f8b995b0f43bccd099a96ce633d63d6f56aafc442f9aa734aec DIST scons-3.0.1-user.pdf 2541376 BLAKE2B 43895501bf8b4a7eda12c5b3b076e6a71e949727224c279ef77671f7d4094245d37b9d8aeca6daa7d043c5513cc0c83e82a06f8a50bb4add4f0d750fce416bac SHA512 9fab1915c96cd32908cbbf123dfb8c97be99ec45df0461fa68ac47706f6bfc51d7ab970a43630e5414b01a8b9d27409e356b57c134478cec13f1bcbd97f615e7 +DIST scons-3.0.1.gh.tar.gz 5481813 BLAKE2B 750668bf034ff48f635db0395fc4fc950a7148c315099738da4d96f346d025b7dd3849e376d566e5f55793ee0b901ad8a4d7ff661068420f085ab76404ca244c SHA512 092a5d88191e4c9deee2e14371745fad1c3beee746f55256729444ad56a141a28f45ebeef4b2a7ec37344048ff16864d85b978855c0285a14b7c6f46f91158ac DIST scons-3.0.1.tar.gz 634815 BLAKE2B f5bacec048969d592697bc3dfb44678c25a92982f7ba81f9951e73532e8b9ac0906fe72c979d7818db5ab9b2c6dd380df21d323e47ea4cc0db646d6eed4b7d94 SHA512 b7be40ba507366cc678f31b910553cadaf59781c3a91833a34acbd29d9cad0cda38f6753034bf92c3af55d1e0c2f72aba5d81f1ec67205d0345b005d286f7084 diff --git a/dev-util/scons/scons-3.0.1.ebuild b/dev-util/scons/scons-3.0.1.ebuild index d511a65da38a..99e628bd1033 100644 --- a/dev-util/scons/scons-3.0.1.ebuild +++ b/dev-util/scons/scons-3.0.1.ebuild @@ -13,12 +13,21 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz doc? ( http://www.scons.org/doc/${PV}/PDF/${PN}-user.pdf -> ${P}-user.pdf http://www.scons.org/doc/${PV}/HTML/${PN}-user.html -> ${P}-user.html - )" + ) + test? ( https://github.com/scons/scons/archive/${PV}.tar.gz -> ${P}.gh.tar.gz )" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" -IUSE="doc" +IUSE="doc test" + +src_unpack() { + if use test; then + unpack "${P}.gh.tar.gz" + mv "${P}" "${P}-full" || die + fi + unpack "${P}.tar.gz" +} python_prepare_all() { # remove half-broken, useless custom commands @@ -29,6 +38,14 @@ python_prepare_all() { distutils-r1_python_prepare_all } +python_test() { + cd "${WORKDIR}/${P}-full" || die + "${EPYTHON}" runtest.py -as \ + -j "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" \ + --builddir "${BUILD_DIR}/lib" || + die "Tests fail with ${EPYTHON}" +} + python_install_all() { local DOCS=( {CHANGES,README,RELEASE}.txt ) distutils-r1_python_install_all |