Skip to content

Commit

Permalink
Suspend macro define tests
Browse files Browse the repository at this point in the history
..until fixing command line processing in Windows broken by a change making multi-target invokation possible in Windows, just like in other OSes,

nodejs/node-gyp#1164

The change did not account for the special case of passing a define on command line.
  • Loading branch information
ilatypov authored Sep 12, 2018
1 parent be7dc76 commit ea61a6d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ apps.forEach(function(app) {
});
});

/* wait for https://github.com/nodejs/node-gyp/pull/1540
test(app.name + ' configures with unparsed options ' + app.args, function(t) {
run('node-pre-gyp', 'configure', '--loglevel=info -- -Dfoo=bar', app, {}, function(err,stdout,stderr) {
t.ifError(err);
Expand All @@ -284,6 +285,21 @@ apps.forEach(function(app) {
}
t.end();
});
});*/

test(app.name + ' builds ' + app.args, function(t) {
run('node-pre-gyp', 'rebuild', '--loglevel=info', app, {}, function(err,stdout,stderr) {
t.ifError(err);
t.ok(stderr.search(/(gyp info spawn args).*(binding\.gyp)/) > -1);
if (process.platform == 'win32') {
if (app.args.indexOf('--debug') > -1) {
t.stringContains(stdout,'Debug\\'+app.name+'.pdb');
} else {
t.stringContains(stdout,'Release\\'+app.name+'.pdb');
}
}
t.end();
});
});

test(app.name + ' is found ' + app.args, function(t) {
Expand Down

0 comments on commit ea61a6d

Please sign in to comment.