pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/mozjs78 mozjs78: add test target support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3fdc11a5147b
branches:  trunk
changeset: 443525:3fdc11a5147b
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Mon Dec 14 22:45:10 2020 +0000

description:
mozjs78: add test target support

diffstat:

 lang/mozjs78/Makefile                              |   6 +++++-
 lang/mozjs78/distinfo                              |   3 ++-
 lang/mozjs78/patches/patch-js_src_tests_jstests.py |  20 ++++++++++++++++++++
 3 files changed, 27 insertions(+), 2 deletions(-)

diffs (61 lines):

diff -r ff3bda661380 -r 3fdc11a5147b lang/mozjs78/Makefile
--- a/lang/mozjs78/Makefile     Mon Dec 14 21:45:43 2020 +0000
+++ b/lang/mozjs78/Makefile     Mon Dec 14 22:45:10 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2020/12/12 02:25:36 gutteridge Exp $
+# $NetBSD: Makefile,v 1.13 2020/12/14 22:45:10 gutteridge Exp $
 
 DISTNAME=      mozjs78_78.4.0.orig
 PKGNAME=       ${DISTNAME:S/_/-/:S/.orig//}
@@ -64,6 +64,10 @@
 PYTHON_FOR_BUILD_ONLY=         tool
 TOOL_DEPENDS+=                 ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
 
+TEST_DEPENDS+=                 ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
+
+TEST_TARGET=                   check-jstests
+
 pre-configure:
        cd ${WRKSRC}/js/src && \
            autoconf-2.13 old-configure.in > old-configure && autoconf-2.13
diff -r ff3bda661380 -r 3fdc11a5147b lang/mozjs78/distinfo
--- a/lang/mozjs78/distinfo     Mon Dec 14 21:45:43 2020 +0000
+++ b/lang/mozjs78/distinfo     Mon Dec 14 22:45:10 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2020/12/06 10:50:03 nia Exp $
+$NetBSD: distinfo,v 1.7 2020/12/14 22:45:10 gutteridge Exp $
 
 SHA1 (mozjs78_78.4.0.orig.tar.xz) = b2c1c241f70310d545f8a3c05b9c8c11676e56a8
 RMD160 (mozjs78_78.4.0.orig.tar.xz) = cef93b6116eff9f04beeaf3dda0a42cd811d0b18
@@ -10,6 +10,7 @@
 SHA1 (patch-js_src_jit_AtomicOperations.h) = 19eba50673f8138bbb09c0eaca63923cadbadd26
 SHA1 (patch-js_src_jit_ProcessExecutableMemory.cpp) = 84d629df0e7963755aa38ff9a1e29d60ed3adb4c
 SHA1 (patch-js_src_jsfriendapi.h) = f342a88182c1be0d3c0027c91ae94e1d4eac2542
+SHA1 (patch-js_src_tests_jstests.py) = f5387b5ee5f8f898e678494befbc00e21fbb7ebb
 SHA1 (patch-js_src_threading_posix_PosixThread.cpp) = f734abbd005d0353d4adfe865c215c2b86389bf6
 SHA1 (patch-js_src_util_NativeStack.cpp) = 3354064c4168711aa7f83d88336a902345239649
 SHA1 (patch-js_src_vm_ArrayBufferObject.cpp) = 155f042eee3a8ff903622860e0a99af1ed776ad5
diff -r ff3bda661380 -r 3fdc11a5147b lang/mozjs78/patches/patch-js_src_tests_jstests.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs78/patches/patch-js_src_tests_jstests.py        Mon Dec 14 22:45:10 2020 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-js_src_tests_jstests.py,v 1.1 2020/12/14 22:45:10 gutteridge Exp $
+
+Get Unix test scaffolding to run on platforms other than Linux and macOS.
+
+--- js/src/tests/jstests.py.orig       2020-11-04 10:51:58.000000000 +0000
++++ js/src/tests/jstests.py
+@@ -32,10 +32,10 @@ from lib.tests import RefTestCase, get_j
+ from lib.results import ResultsSink, TestOutput
+ from lib.progressbar import ProgressBar
+ 
+-if sys.platform.startswith('linux') or sys.platform.startswith('darwin'):
+-    from lib.tasks_unix import run_all_tests
+-else:
++if sys.platform.startswith('win'):
+     from lib.tasks_win import run_all_tests
++else:
++    from lib.tasks_unix import run_all_tests
+ 
+ here = dirname(abspath(__file__))
+ 



Home | Main Index | Thread Index | Old Index