File tree Expand file tree Collapse file tree 4 files changed +23
-1
lines changed Expand file tree Collapse file tree 4 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -591,6 +591,7 @@ jobs:
591
591
other.test_node_emscripten_num_logical_cores
592
592
core2.test_pthread_create
593
593
core2.test_i64_invoke_bigint
594
+ core2.test_sse2
594
595
core2.test_source_map
595
596
core2.test_exceptions_wasm
596
597
core2.test_pthread_unhandledrejection"
@@ -630,6 +631,7 @@ jobs:
630
631
EMTEST_SKIP_V8 : " 1"
631
632
EMTEST_SKIP_EH : " 1"
632
633
EMTEST_SKIP_WASM64 : " 1"
634
+ EMTEST_SKIP_SIMD : " 1"
633
635
steps :
634
636
- checkout
635
637
- run :
@@ -701,6 +703,7 @@ jobs:
701
703
EMTEST_SKIP_V8 : " 1"
702
704
EMTEST_SKIP_EH : " 1"
703
705
EMTEST_SKIP_WASM64 : " 1"
706
+ EMTEST_SKIP_SIMD : " 1"
704
707
EMCC_SKIP_SANITY_CHECK : " 1"
705
708
steps :
706
709
- run :
Original file line number Diff line number Diff line change @@ -491,6 +491,23 @@ def require_wasm64(self):
491
491
else :
492
492
self .fail ('either d8 or node >= 16 required to run wasm64 tests. Use EMTEST_SKIP_WASM64 to skip' )
493
493
494
+ def require_simd (self ):
495
+ if config .NODE_JS and config .NODE_JS in self .js_engines :
496
+ version = shared .check_node_version ()
497
+ if version >= (16 , 0 , 0 ):
498
+ self .js_engines = [config .NODE_JS ]
499
+ return
500
+
501
+ if config .V8_ENGINE and config .V8_ENGINE in self .js_engines :
502
+ self .emcc_args .append ('-sENVIRONMENT=shell' )
503
+ self .js_engines = [config .V8_ENGINE ]
504
+ return
505
+
506
+ if 'EMTEST_SKIP_SIMD' in os .environ :
507
+ self .skipTest ('test requires node >= 16 or d8 (and EMTEST_SKIP_SIMD is set)' )
508
+ else :
509
+ self .fail ('either d8 or node >= 16 required to run wasm64 tests. Use EMTEST_SKIP_SIMD to skip' )
510
+
494
511
def require_wasm_eh (self ):
495
512
if config .NODE_JS and config .NODE_JS in self .js_engines :
496
513
version = shared .check_node_version ()
Original file line number Diff line number Diff line change 39
39
def wasm_simd (f ):
40
40
@wraps (f )
41
41
def decorated (self , * args , ** kwargs ):
42
- self .require_v8 ()
42
+ self .require_simd ()
43
43
if self .get_setting ('MEMORY64' ) == 2 :
44
44
self .skipTest ('https://github.com/WebAssembly/binaryen/issues/4638' )
45
45
if not self .is_wasm ():
Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ def shlex_quote(arg):
94
94
# Switch to shlex.join once we can depend on python 3.8:
95
95
# https://docs.python.org/3/library/shlex.html#shlex.join
96
96
def shlex_join (cmd ):
97
+ if type (cmd ) is str :
98
+ return cmd
97
99
return ' ' .join (shlex_quote (x ) for x in cmd )
98
100
99
101
You can’t perform that action at this time.
0 commit comments