dev-util/meson: add basic python_test function and RESTRICT=test
authorMike Gilbert <floppym@gentoo.org>
Sat, 8 Apr 2017 22:17:48 +0000 (18:17 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sat, 8 Apr 2017 22:24:15 +0000 (18:24 -0400)
The tests do not pass at the moment.

Package-Manager: Portage-2.3.5_p19, Repoman-2.3.2_p49

dev-util/meson/meson-0.39.1.ebuild
dev-util/meson/meson-9999.ebuild

index 4a98372fa7dd1cb9a14eb7b6dffc9d555c500c8f..d2899b6e689e25cc9637623e4c5a35890ab39cb9 100644 (file)
@@ -20,6 +20,7 @@ HOMEPAGE="http://mesonbuild.com/"
 LICENSE="Apache-2.0"
 SLOT="0"
 IUSE=""
+RESTRICT="test"
 
 DEPEND="${PYTHON_DEPS}
        >=dev-util/ninja-1.6.0
@@ -27,3 +28,7 @@ DEPEND="${PYTHON_DEPS}
 RDEPEND="${DEPEND}"
 
 DOCS=( authors.txt contributing.txt )
+
+python_test() {
+       ${EPYTHON} run_tests.py || die
+}
index 898271b1e2ca7cdfe3c8bcb818fbdd6ea054fa80..e9199b926401fc3d76106ac97b8569627e16e97d 100644 (file)
@@ -20,6 +20,7 @@ HOMEPAGE="http://mesonbuild.com/"
 LICENSE="Apache-2.0"
 SLOT="0"
 IUSE=""
+RESTRICT="test"
 
 DEPEND="${PYTHON_DEPS}
        >=dev-util/ninja-1.6.0
@@ -27,3 +28,7 @@ DEPEND="${PYTHON_DEPS}
 RDEPEND="${DEPEND}"
 
 DOCS=( authors.txt contributing.txt )
+
+python_test() {
+       ${EPYTHON} run_tests.py || die
+}