@@ -5,6 +5,7 @@ import * as Os from "os";
55import * as Url from "url" ;
66import * as Path from "path" ;
77import * as Belt_List from "rescript/lib/es6/belt_List.js" ;
8+ import * as Nodeutil from "node:util" ;
89import * as Belt_Array from "rescript/lib/es6/belt_Array.js" ;
910import * as Core__List from "../src/Core__List.mjs" ;
1011import * as Caml_option from "rescript/lib/es6/caml_option.js" ;
@@ -28,14 +29,17 @@ var ChildProcess = {};
2829
2930var OS = { } ;
3031
32+ var Util = { } ;
33+
3134var $$Node = {
3235 Path : Path$1 ,
3336 $$URL : $$URL ,
3437 Process : Process ,
3538 Fs : Fs$1 ,
3639 $$Buffer : $$Buffer ,
3740 ChildProcess : ChildProcess ,
38- OS : OS
41+ OS : OS ,
42+ Util : Util
3943} ;
4044
4145var dirname = Path . dirname ( Url . fileURLToPath ( import . meta. url ) ) ;
@@ -73,7 +77,7 @@ function prepareCompiler() {
7377 RE_EXN_ID : "Assert_failure" ,
7478 _1 : [
7579 "DocTests.res" ,
76- 129 ,
80+ 145 ,
7781 9
7882 ] ,
7983 Error : new Error ( )
@@ -86,7 +90,7 @@ function prepareCompiler() {
8690 RE_EXN_ID : "Assert_failure" ,
8791 _1 : [
8892 "DocTests.res" ,
89- 127 ,
93+ 143 ,
9094 11
9195 ] ,
9296 Error : new Error ( )
@@ -99,7 +103,7 @@ function prepareCompiler() {
99103 RE_EXN_ID : "Assert_failure" ,
100104 _1 : [
101105 "DocTests.res" ,
102- 127 ,
106+ 143 ,
103107 11
104108 ] ,
105109 Error : new Error ( )
@@ -110,7 +114,7 @@ function prepareCompiler() {
110114 RE_EXN_ID : "Assert_failure" ,
111115 _1 : [
112116 "DocTests.res" ,
113- 129 ,
117+ 145 ,
114118 9
115119 ] ,
116120 Error : new Error ( )
@@ -130,6 +134,24 @@ function prepareCompiler() {
130134 } ) ;
131135}
132136
137+ var options = Object . fromEntries ( [ [
138+ "ignore-runtime-tests" ,
139+ {
140+ type : "string"
141+ }
142+ ] ] ) ;
143+
144+ var match = Nodeutil . parseArgs ( {
145+ args : process . argv . slice ( 2 ) ,
146+ options : options
147+ } ) ;
148+
149+ var values = match . values ;
150+
151+ var v = values [ "ignore-runtime-tests" ] ;
152+
153+ var ignoreRuntimeTests = v !== undefined ? v . split ( "," ) : [ ] ;
154+
133155prepareCompiler ( ) ;
134156
135157async function run ( command , args , options ) {
@@ -437,7 +459,9 @@ async function compilerResults() {
437459 ]
438460 ] ;
439461 } ) ;
440- var exampleErrors = await Promise . all ( examples . map ( async function ( param ) {
462+ var exampleErrors = await Promise . all ( examples . filter ( function ( param ) {
463+ return ! ignoreRuntimeTests . includes ( param [ 0 ] . id ) ;
464+ } ) . map ( async function ( param ) {
441465 var match = param [ 1 ] ;
442466 var nodeTests = await Promise . all ( match [ 0 ] . map ( async function ( param ) {
443467 var js = param [ 1 ] ;
@@ -513,6 +537,9 @@ export {
513537 makePackageJson ,
514538 rescriptJson ,
515539 prepareCompiler ,
540+ options ,
541+ values ,
542+ ignoreRuntimeTests ,
516543 SpawnAsync ,
517544 createFileInTempDir ,
518545 compileTest ,
0 commit comments