pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/meson meson: add test target



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dff76f118056
branches:  trunk
changeset: 407093:dff76f118056
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Jan 01 21:15:06 2020 +0000

description:
meson: add test target

diffstat:

 devel/meson/build.mk |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r aa0fdbb4ab7f -r dff76f118056 devel/meson/build.mk
--- a/devel/meson/build.mk      Wed Jan 01 20:37:14 2020 +0000
+++ b/devel/meson/build.mk      Wed Jan 01 21:15:06 2020 +0000
@@ -1,12 +1,13 @@
-# $NetBSD: build.mk,v 1.3 2019/10/24 09:19:02 tnn Exp $
+# $NetBSD: build.mk,v 1.4 2020/01/01 21:15:06 adam Exp $
 
 BUILD_DEPENDS+=        meson-[0-9]*:../../devel/meson
 
 CONFIGURE_DIRS?=       .
 BUILD_DIRS?=           ${CONFIGURE_DIRS}
 INSTALL_DIRS?=         ${CONFIGURE_DIRS}
+TEST_DIRS?=            ${CONFIGURE_DIRS}
 
-.PHONY: meson-configure meson-build meson-install
+.PHONY: meson-configure meson-build meson-install meson-test
 
 # pkgsrc contains multiple llvm-config executables at multiple locations.
 .if !empty(LLVM_CONFIG_PATH)
@@ -40,4 +41,10 @@
        cd ${WRKSRC} && cd ${d} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} ninja -C output install
 .endfor
 
+do-test: meson-test
+meson-test:
+.for d in ${TEST_DIRS}
+       cd ${WRKSRC} && cd ${d} && ${SETENV} ${TEST_ENV} ninja -C output test
+.endfor
+
 .include "../../lang/python/application.mk"



Home | Main Index | Thread Index | Old Index