@@ -28,6 +28,7 @@ meta = [
2828 spidermonkey_vsn : ' 60' ,
2929 with_nouveau : true ,
3030 with_clouseau : true ,
31+ quickjs_test262 : true ,
3132 image : " apache/couchdbci-centos:8-erlang-${ ERLANG_VERSION} "
3233 ],
3334
@@ -36,6 +37,7 @@ meta = [
3637 spidermonkey_vsn : ' 78' ,
3738 with_nouveau : true ,
3839 with_clouseau : true ,
40+ quickjs_test262 : true ,
3941 image : " apache/couchdbci-centos:9-erlang-${ ERLANG_VERSION} "
4042 ],
4143
@@ -44,6 +46,7 @@ meta = [
4446 spidermonkey_vsn : ' 91' ,
4547 with_nouveau : true ,
4648 with_clouseau : true ,
49+ quickjs_test262 : true ,
4750 image : " apache/couchdbci-ubuntu:jammy-erlang-${ ERLANG_VERSION} "
4851 ],
4952
@@ -52,6 +55,7 @@ meta = [
5255 spidermonkey_vsn : ' 115' ,
5356 with_nouveau : true ,
5457 with_clouseau : true ,
58+ quickjs_test262 : true ,
5559 image : " apache/couchdbci-ubuntu:noble-erlang-${ ERLANG_VERSION} "
5660 ],
5761
@@ -60,6 +64,7 @@ meta = [
6064 spidermonkey_vsn : ' 78' ,
6165 with_nouveau : true ,
6266 with_clouseau : true ,
67+ quickjs_test262 : true ,
6368 image : " apache/couchdbci-debian:bookworm-erlang-${ ERLANG_VERSION} " ,
6469 node_label : ' ppc64le'
6570 ],
@@ -68,6 +73,9 @@ meta = [
6873 name : ' Debian s390x' ,
6974 spidermonkey_vsn : ' 78' ,
7075 with_nouveau : true ,
76+ // QuickJS test262 shows a discrepancy typedarray-arg-set-values-same-buffer-other-type.js
77+ // Test262Error: 51539607552,42,0,4,5,6,7,8
78+ quickjs_test262 : false ,
7179 image : " apache/couchdbci-debian:bookworm-erlang-${ ERLANG_VERSION} " ,
7280 node_label : ' s390x'
7381 ],
@@ -77,6 +85,7 @@ meta = [
7785 spidermonkey_vsn : ' 78' ,
7886 with_nouveau : true ,
7987 with_clouseau : true ,
88+ quickjs_test262 : true ,
8089 image : " apache/couchdbci-debian:bullseye-erlang-${ ERLANG_VERSION} "
8190 ],
8291
@@ -85,6 +94,8 @@ meta = [
8594 spidermonkey_vsn : ' 78' ,
8695 with_nouveau : true ,
8796 with_clouseau : true ,
97+ // Test this in in the bookworm-quickjs variant
98+ quickjs_test262 : false ,
8899 image : " apache/couchdbci-debian:bookworm-erlang-${ ERLANG_VERSION} "
89100 ],
90101
@@ -93,6 +104,7 @@ meta = [
93104 disable_spidermonkey : true ,
94105 with_nouveau : true ,
95106 with_clouseau : true ,
107+ quickjs_test262 : true ,
96108 image : " apache/couchdbci-debian:bookworm-erlang-${ ERLANG_VERSION} "
97109 ],
98110
@@ -101,6 +113,7 @@ meta = [
101113 spidermonkey_vsn : ' 91' ,
102114 with_clouseau : true ,
103115 clouseau_java_home : ' /usr/local/openjdk8-jre' ,
116+ quickjs_test262 : false ,
104117 gnu_make : ' gmake'
105118 ],
106119
@@ -111,6 +124,7 @@ meta = [
111124 disable_spidermonkey : true ,
112125 with_clouseau : true ,
113126 clouseau_java_home : ' /usr/local/openjdk8-jre' ,
127+ quickjs_test262 : false ,
114128 gnu_make : ' gmake'
115129 ],
116130
@@ -130,6 +144,7 @@ meta = [
130144 name : ' Windows 2022' ,
131145 spidermonkey_vsn : ' 128' ,
132146 with_clouseau : true ,
147+ quickjs_test262 : false ,
133148 node_label : ' win'
134149 ]
135150]
@@ -187,6 +202,7 @@ def generateNativeStage(platform) {
187202 sh " ${ configure(meta[platform])} "
188203 sh ' $MAKE'
189204 retry (3 ) {sh ' $MAKE eunit' }
205+ if (meta[platform]. quickjs_test262) {retry(3 ) {sh ' make quickjs-test262' }}
190206 retry (3 ) {sh ' $MAKE elixir' }
191207 retry (3 ) {sh ' $MAKE elixir-search' }
192208 retry (3 ) {sh ' $MAKE mango-test' }
@@ -304,10 +320,12 @@ def generateContainerStage(platform) {
304320 unstash ' tarball'
305321 sh( script : " mkdir -p ${ platform} /build" , label : ' Create build directories' )
306322 sh( script : " tar -xf apache-couchdb-*.tar.gz -C ${ platform} /build --strip-components=1" , label : ' Unpack release' )
323+ quickjs_tests262 = meta[platform]. quickjs_test262
307324 dir( " ${ platform} /build" ) {
308325 sh " ${ configure(meta[platform])} "
309326 sh ' make'
310327 retry(3 ) {sh ' make eunit' }
328+ if (meta[platform]. quickjs_test262) {retry(3 ) {sh ' make quickjs-test262' }}
311329 retry(3 ) {sh ' make elixir' }
312330 retry(3 ) {sh ' make elixir-search' }
313331 retry(3 ) {sh ' make mango-test' }
0 commit comments