Skip to content

Commit cfcfd0b

Browse files
committed
disable installation_test
1 parent 06db33b commit cfcfd0b

File tree

4 files changed

+4
-52
lines changed

4 files changed

+4
-52
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jscomp/bin/*.exe
6565
odoc_gen/*.cmxs
6666

6767
# for npm publish
68-
./lib/*.exe
68+
*.exe
6969
!bin/bsppx
7070
!bin/bspack
7171
!/bin/bsb

jscomp/test/build.ninja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ build test/inner_call.cmi test/inner_call.cmj : cc test/inner_call.ml | test/inn
356356
build test/inner_define.cmj : cc_cmi test/inner_define.ml | test/inner_define.cmi $stdlib
357357
build test/inner_define.cmi : cc test/inner_define.mli | $stdlib
358358
build test/inner_unused.cmi test/inner_unused.cmj : cc test/inner_unused.ml | $stdlib
359-
build test/installation_test.cmi test/installation_test.cmj : cc test/installation_test.ml | test/app_root_finder.cmj test/mt.cmj $stdlib
359+
build test/installation_test.cmi test/installation_test.cmj : cc test/installation_test.ml | test/mt.cmj $stdlib
360360
build test/int32_test.cmi test/int32_test.cmj : cc test/int32_test.ml | test/ext_array_test.cmj test/mt.cmj $stdlib
361361
build test/int64_mul_div_test.cmi test/int64_mul_div_test.cmj : cc test/int64_mul_div_test.ml | test/mt.cmj $stdlib
362362
build test/int64_test.cmi test/int64_test.cmj : cc test/int64_test.ml | test/ext_array_test.cmj test/mt.cmj $stdlib

jscomp/test/installation_test.js

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
'use strict';
22

33
var Mt = require("./mt.js");
4-
var Fs = require("fs");
5-
var Path = require("path");
64
var Block = require("../../lib/js/block.js");
7-
var Child_process = require("child_process");
8-
var App_root_finder = require("./app_root_finder.js");
9-
var Caml_builtin_exceptions = require("../../lib/js/caml_builtin_exceptions.js");
105

116
var suites = {
127
contents: /* [] */0
@@ -33,52 +28,9 @@ function eq(loc, x, y) {
3328
return /* () */0;
3429
}
3530

36-
var match = typeof __dirname === "undefined" ? undefined : __dirname;
37-
38-
if (match !== undefined) {
39-
var root = App_root_finder.find_package_json(match);
40-
var bsc_exe = Path.join(root, "bsc");
41-
var exit = 0;
42-
var output;
43-
try {
44-
output = Child_process.execSync(bsc_exe + " -where ", {
45-
encoding: "utf8"
46-
});
47-
exit = 1;
48-
}
49-
catch (e){
50-
throw [
51-
Caml_builtin_exceptions.assert_failure,
52-
/* tuple */[
53-
"installation_test.ml",
54-
33,
55-
8
56-
]
57-
];
58-
}
59-
if (exit === 1) {
60-
var dir = output.trim();
61-
var files = Fs.readdirSync(dir);
62-
var exists = files.indexOf("pervasives.cmi");
63-
var non_exists = files.indexOf("pervasive.cmi");
64-
var v = exists >= 0 && non_exists < 0;
65-
console.log(v);
66-
}
67-
68-
} else {
69-
throw [
70-
Caml_builtin_exceptions.assert_failure,
71-
/* tuple */[
72-
"installation_test.ml",
73-
35,
74-
18
75-
]
76-
];
77-
}
78-
7931
Mt.from_pair_suites("Installation_test", suites.contents);
8032

8133
exports.suites = suites;
8234
exports.test_id = test_id;
8335
exports.eq = eq;
84-
/* match Not a pure module */
36+
/* Not a pure module */

jscomp/test/installation_test.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let eq loc x y =
77

88

99

10-
#if 1 then
10+
#if 0 then
1111
let () =
1212
match [%node __dirname] with | Some p ->
1313
let root = App_root_finder.find_package_json p in

0 commit comments

Comments
 (0)