2021-11-23 01:52:13 +03:00
|
|
|
const sign = require('..');
|
2015-12-21 17:12:45 +03:00
|
|
|
|
2021-11-23 01:52:13 +03:00
|
|
|
const waterfall = require('run-waterfall');
|
2015-12-21 17:12:45 +03:00
|
|
|
|
2021-11-23 01:52:13 +03:00
|
|
|
const config = require('./config');
|
|
|
|
const util = require('./util');
|
2015-12-21 17:12:45 +03:00
|
|
|
|
|
|
|
function createDefaultsTest (release) {
|
|
|
|
return function (t) {
|
2021-11-23 01:52:13 +03:00
|
|
|
t.timeoutAfter(config.timeout);
|
2015-12-21 17:12:45 +03:00
|
|
|
|
2021-11-23 01:52:13 +03:00
|
|
|
const opts = {
|
2019-08-22 10:19:01 +03:00
|
|
|
app: util.generateAppPath(release),
|
2022-03-24 10:11:17 +03:00
|
|
|
identity: 'codesign.electronjs.org (T123456)'
|
2021-11-23 01:52:13 +03:00
|
|
|
}; // test with no other options for self discovery
|
2015-12-21 17:12:45 +03:00
|
|
|
|
2021-11-23 01:52:13 +03:00
|
|
|
waterfall(
|
|
|
|
[
|
|
|
|
function (cb) {
|
|
|
|
sign(
|
|
|
|
{
|
|
|
|
...opts
|
|
|
|
},
|
|
|
|
cb
|
|
|
|
);
|
|
|
|
},
|
|
|
|
function (cb) {
|
|
|
|
t.pass('app signed');
|
|
|
|
cb();
|
|
|
|
}
|
|
|
|
],
|
|
|
|
function (err) {
|
|
|
|
t.end(err);
|
2015-12-21 17:12:45 +03:00
|
|
|
}
|
2021-11-23 01:52:13 +03:00
|
|
|
);
|
|
|
|
};
|
2015-12-21 17:12:45 +03:00
|
|
|
}
|
|
|
|
|
2021-11-23 01:52:13 +03:00
|
|
|
util.testAllReleases('defaults-test', createDefaultsTest);
|