pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/mozjs78



Module Name:    pkgsrc
Committed By:   gutteridge
Date:           Mon Dec 14 22:45:11 UTC 2020

Modified Files:
        pkgsrc/lang/mozjs78: Makefile distinfo
Added Files:
        pkgsrc/lang/mozjs78/patches: patch-js_src_tests_jstests.py

Log Message:
mozjs78: add test target support


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/lang/mozjs78/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/mozjs78/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/lang/mozjs78/patches/patch-js_src_tests_jstests.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/mozjs78/Makefile
diff -u pkgsrc/lang/mozjs78/Makefile:1.12 pkgsrc/lang/mozjs78/Makefile:1.13
--- pkgsrc/lang/mozjs78/Makefile:1.12   Sat Dec 12 02:25:36 2020
+++ pkgsrc/lang/mozjs78/Makefile        Mon Dec 14 22:45:10 2020
@@ -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_VERSIONS_INCOMPATIBLE=        27
 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

Index: pkgsrc/lang/mozjs78/distinfo
diff -u pkgsrc/lang/mozjs78/distinfo:1.6 pkgsrc/lang/mozjs78/distinfo:1.7
--- pkgsrc/lang/mozjs78/distinfo:1.6    Sun Dec  6 10:50:03 2020
+++ pkgsrc/lang/mozjs78/distinfo        Mon Dec 14 22:45:10 2020
@@ -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_moz.configure) = f3d762b2
 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

Added files:

Index: pkgsrc/lang/mozjs78/patches/patch-js_src_tests_jstests.py
diff -u /dev/null pkgsrc/lang/mozjs78/patches/patch-js_src_tests_jstests.py:1.1
--- /dev/null   Mon Dec 14 22:45:11 2020
+++ pkgsrc/lang/mozjs78/patches/patch-js_src_tests_jstests.py   Mon Dec 14 22:45:10 2020
@@ -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