This is an automated email from the git hooks/post-receive script.
nickm pushed a change to branch main in repository tor.
from 4259bc36af doc: Clarify the release process for a first stable new 8f77db2842 test: Re-init pregenerated RSA keys for NSS only new 8d5692a2f7 Changes file for mr 569
The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
Summary of changes: changes/faster_tests | 3 +++ src/test/testing_common.c | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 changes/faster_tests
This is an automated email from the git hooks/post-receive script.
nickm pushed a commit to branch main in repository tor.
commit 8f77db28427df202d9d6bcbac96da4d1daec099d Author: Alex Xu (Hello71) alex_y_xu@yahoo.ca AuthorDate: Thu Apr 28 15:06:38 2022 -0400
test: Re-init pregenerated RSA keys for NSS only
Not revalidating keys on every fork speeds up make test from about 45 seconds to 10 seconds with OpenSSL 1.1.1n and from 6 minutes to 10 seconds with OpenSSL 3.0.2. --- src/test/testing_common.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/src/test/testing_common.c b/src/test/testing_common.c index 2fd424c07e..88d04e6082 100644 --- a/src/test/testing_common.c +++ b/src/test/testing_common.c @@ -244,14 +244,18 @@ void tinytest_postfork(void); void tinytest_prefork(void) { +#ifdef ENABLE_NSS free_pregenerated_keys(); +#endif subsystems_prefork(); } void tinytest_postfork(void) { subsystems_postfork(); +#ifdef ENABLE_NSS init_pregenerated_keys(); +#endif }
static void
This is an automated email from the git hooks/post-receive script.
nickm pushed a commit to branch main in repository tor.
commit 8d5692a2f7a8d887fdb66b47bf3ec9a6ecb1f6f6 Author: Nick Mathewson nickm@torproject.org AuthorDate: Tue May 3 10:05:04 2022 -0400
Changes file for mr 569 --- changes/faster_tests | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/changes/faster_tests b/changes/faster_tests new file mode 100644 index 0000000000..150dff968f --- /dev/null +++ b/changes/faster_tests @@ -0,0 +1,3 @@ + o Minor features (tests): + - Avoid needless key reinitialization with OpenSSL during unit tests, + saving significant time. Patch from Alex Xu.
tor-commits@lists.torproject.org