Skip to content

Commit 7abc713

Browse files
committed
tmp: is it building?
1 parent 9f2b579 commit 7abc713

File tree

1 file changed

+34
-33
lines changed

1 file changed

+34
-33
lines changed

jscomp/build_tests/cli_help/input.js

+34-33
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,16 @@ const dumpHelp =
7373
"`rescript dump` dumps the information for the target\n";
7474

7575
// Shows build help with --help arg
76-
console.group("build --help");
77-
let out = child_process.spawnSync(`../../../rescript`, ["build", "--help"], {
78-
encoding: "utf8",
79-
cwd: __dirname,
80-
});
81-
assert.equal(out.stdout, buildHelp);
82-
assert.equal(out.stderr, "");
83-
assert.equal(out.status, 0);
84-
console.groupEnd();
76+
// console.group("build --help");
77+
let out;
78+
// let out = child_process.spawnSync(`../../../rescript`, ["build", "--help"], {
79+
// encoding: "utf8",
80+
// cwd: __dirname,
81+
// });
82+
// assert.equal(out.stdout, buildHelp);
83+
// assert.equal(out.stderr, "");
84+
// assert.equal(out.status, 0);
85+
// console.groupEnd();
8586

8687
// console.group("build -w --help");
8788
// out = child_process.spawnSync(`../../../rescript`, ["build", "-w", "--help"], {
@@ -119,30 +120,30 @@ console.log("@@ done");
119120
console.groupEnd();
120121

121122
// Shows build help with -h arg
122-
console.group("build -h");
123-
console.log("@@ begin ");
124-
out = child_process.spawnSync(`../../../rescript`, ["build", "-h"], {
125-
encoding: "utf8",
126-
cwd: __dirname,
127-
});
128-
assert.equal(out.stdout, buildHelp);
129-
assert.equal(out.stderr, "");
130-
assert.equal(out.status, 0);
131-
console.log("@@ done ");
132-
console.groupEnd();
133-
134-
// Exits with build help with unknown arg
135-
console.group("build -foo");
136-
console.log("@@ begin ");
137-
out = child_process.spawnSync(`../../../rescript`, ["build", "-foo"], {
138-
encoding: "utf8",
139-
cwd: __dirname,
140-
});
141-
assert.equal(out.stdout, "");
142-
assert.equal(out.stderr, 'Error: Unknown option "-foo".\n' + buildHelp);
143-
assert.equal(out.status, 2);
144-
console.log("@@ done ");
145-
console.groupEnd();
123+
// console.group("build -h");
124+
// console.log("@@ begin ");
125+
// out = child_process.spawnSync(`../../../rescript`, ["build", "-h"], {
126+
// encoding: "utf8",
127+
// cwd: __dirname,
128+
// });
129+
// assert.equal(out.stdout, buildHelp);
130+
// assert.equal(out.stderr, "");
131+
// assert.equal(out.status, 0);
132+
// console.log("@@ done ");
133+
// console.groupEnd();
134+
//
135+
// // Exits with build help with unknown arg
136+
// console.group("build -foo");
137+
// console.log("@@ begin ");
138+
// out = child_process.spawnSync(`../../../rescript`, ["build", "-foo"], {
139+
// encoding: "utf8",
140+
// cwd: __dirname,
141+
// });
142+
// assert.equal(out.stdout, "");
143+
// assert.equal(out.stderr, 'Error: Unknown option "-foo".\n' + buildHelp);
144+
// assert.equal(out.status, 2);
145+
// console.log("@@ done ");
146+
// console.groupEnd();
146147

147148
// Shows cli help with --help arg
148149
console.group("--help");

0 commit comments

Comments
 (0)