File tree Expand file tree Collapse file tree 4 files changed +36
-3
lines changed Expand file tree Collapse file tree 4 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 36
36
- name : Run microbench
37
37
run : |
38
38
make microbench
39
+ - name : Run test262
40
+ run : |
41
+ make test2-bootstrap
42
+ make test2
39
43
40
44
linux-lto :
41
45
name : Linux LTO
@@ -67,13 +71,18 @@ jobs:
67
71
submodules : true
68
72
- name : Install gcc-multilib
69
73
run : |
74
+ sudo apt update
70
75
sudo apt install -y gcc-multilib
71
76
- name : Build
72
77
run : |
73
78
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y CONFIG_M32=y
74
79
- name : Run built-in tests
75
80
run : |
76
81
make CONFIG_M32=y test
82
+ - name : Run test262
83
+ run : |
84
+ make test2-bootstrap
85
+ make CONFIG_M32=y test2
77
86
78
87
linux-asan :
79
88
runs-on : ubuntu-latest
@@ -138,6 +147,10 @@ jobs:
138
147
- name : Run built-in tests
139
148
run : |
140
149
make test
150
+ - name : Run test262
151
+ run : |
152
+ make test2-bootstrap
153
+ make test2
141
154
142
155
macos-asan :
143
156
runs-on : macos-latest
@@ -173,6 +186,8 @@ jobs:
173
186
uses : vmactions/freebsd-vm@v1
174
187
with :
175
188
usesh : true
189
+ copyback : false
190
+ mem : 16384
176
191
prepare : |
177
192
pkg install -y gmake
178
193
run : |
@@ -202,6 +217,10 @@ jobs:
202
217
- name : Run built-in tests
203
218
run : |
204
219
make CONFIG_COSMO=y test
220
+ - name : Run test262
221
+ run : |
222
+ make test2-bootstrap
223
+ make CONFIG_COSMO=y test2
205
224
206
225
mingw-windows :
207
226
name : MinGW Windows target
Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ PREFIX?=/usr/local
54
54
# use UB sanitizer
55
55
# CONFIG_UBSAN=y
56
56
57
+ # TEST262 bootstrap config: commit id and shallow "since" parameter
58
+ TEST262_COMMIT? =a5e69a1534de88d1eb29b76657d84c8541b72df7
59
+ TEST262_SINCE? =2025-09-01
60
+
57
61
OBJDIR =.obj
58
62
59
63
ifdef CONFIG_ASAN
@@ -464,6 +468,15 @@ stats: qjs$(EXE)
464
468
microbench : qjs$(EXE )
465
469
$(WINE ) ./qjs$(EXE ) --std tests/microbench.js
466
470
471
+ ifeq ($(wildcard test262/features.txt) ,)
472
+ test2-bootstrap :
473
+ git clone --single-branch --shallow-since=$(TEST262_SINCE ) https://github.com/tc39/test262.git
474
+ (cd test262 && git checkout -q $( TEST262_COMMIT) && patch -p1 < ../tests/test262.patch && cd ..)
475
+ else
476
+ test2-bootstrap :
477
+ (cd test262 && git fetch && git reset --hard $( TEST262_COMMIT) && patch -p1 < ../tests/test262.patch && cd ..)
478
+ endif
479
+
467
480
ifeq ($(wildcard test262o/tests.txt) ,)
468
481
test2o test2o-update :
469
482
@echo test262o tests not installed
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ for-of
116
116
generators
117
117
globalThis
118
118
hashbang
119
+ immutable-arraybuffer=skip
119
120
import-attributes
120
121
import-defer=skip
121
122
import.meta
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ index 9828b15..4a5919d 100644
14
14
+ // small: 200,
15
15
+ // long: 1000,
16
16
+ // huge: 10000,
17
- + yield: 20 ,
18
- + small: 20 ,
19
- + long: 100 ,
17
+ + yield: 40 ,
18
+ + small: 40 ,
19
+ + long: 200 ,
20
20
+ huge: 1000,
21
21
};
22
22
You can’t perform that action at this time.
0 commit comments