perf-test: disable SSL mode, with self-signed local certs it fails.
Error: self signed certificate in certificate chain at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34) at TLSSocket.emit (node:events:526:28) at TLSSocket._finishInit (node:_tls_wrap:944:8) at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12) at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17) Change-Id: I27462802a6b1cfaed683277d111a480ca474cd7e Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
This commit is contained in:
parent
02bfa00f50
commit
29fedecd21
2 changed files with 14 additions and 13 deletions
|
@ -798,8 +798,6 @@ check-local: $(MOCHA_TS_JS_FILES)
|
|||
exit 1; \
|
||||
fi
|
||||
|
||||
SSL_FLAG = `xmllint --xpath 'string(/config/ssl/enable)' $(abs_top_builddir)/coolwsd.xml`
|
||||
|
||||
# the delay (in milliseconds) between each emulated key stroke for each view
|
||||
typing_speed=100
|
||||
# The duration of the typing (in milliseconds)
|
||||
|
@ -818,6 +816,6 @@ perf-test:
|
|||
echo 'Making fresh copy of the perf-test-edit.odt document'; \
|
||||
cp $(abs_top_srcdir)/test/data/perf-test.odt $(abs_top_builddir)/test/data/perf-test-edit.odt; \
|
||||
fi
|
||||
$(NODE) $(abs_srcdir)/test/bootstrap.js $(SSL_FLAG) $(abs_top_builddir) $(abs_srcdir) $(typing_speed) $(single_view) $(typing_duration) $(node_inspect) ${record_stats}
|
||||
$(NODE) $(abs_srcdir)/test/bootstrap.js $(abs_top_builddir) $(abs_srcdir) $(typing_speed) $(single_view) $(typing_duration) $(node_inspect) ${record_stats}
|
||||
# for now - unwinding ts and js deps for different targets is a real pain.
|
||||
.NOTPARALLEL:
|
||||
|
|
23
browser/test/bootstrap.js
vendored
23
browser/test/bootstrap.js
vendored
|
@ -2,18 +2,21 @@ const https = require("https");
|
|||
const http = require("http");
|
||||
|
||||
const { spawn, fork } = require('child_process');
|
||||
if (process.argv.length < 5 || process.argv[2] == '--help') {
|
||||
console.debug('bootstrap.js <ssl_true_or_false> <abs_top_builddir> <abs_srcdir>');
|
||||
if (process.argv.length < 4 || process.argv[2] == '--help') {
|
||||
console.debug('bootstrap.js <abs_top_builddir> <abs_srcdir>');
|
||||
process.exit(0);
|
||||
}
|
||||
const ssl_flag = process.argv[2];
|
||||
const top_builddir = process.argv[3];
|
||||
const srcdir = process.argv[4];
|
||||
const typing_speed = process.argv[5];
|
||||
const single_view = process.argv[6];
|
||||
const typing_duration = process.argv[7];
|
||||
const inspect = process.argv[8];
|
||||
const recordStats = process.argv[9];
|
||||
|
||||
// Websocket can't cope with SSL certificates.
|
||||
const ssl_flag = false;
|
||||
|
||||
const top_builddir = process.argv[2];
|
||||
const srcdir = process.argv[3];
|
||||
const typing_speed = process.argv[4];
|
||||
const single_view = process.argv[5];
|
||||
const typing_duration = process.argv[6];
|
||||
const inspect = process.argv[7];
|
||||
const recordStats = process.argv[8];
|
||||
|
||||
// verbose console output
|
||||
const debug = false;
|
||||
|
|
Loading…
Reference in a new issue