diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-08-12 12:36:54 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-10-07 08:00:49 -0400 |
commit | c5ba8b62219c9e8b895eedc4806176dfe10478b2 (patch) | |
tree | dcf274c2fae0602a92555c77a4e4e6e726baf478 /src/test/unittest_part1.sh | |
parent | f5b94715479e9b7bef5675ab72c8b2e260bcb830 (diff) | |
download | tor-c5ba8b62219c9e8b895eedc4806176dfe10478b2.tar.gz tor-c5ba8b62219c9e8b895eedc4806176dfe10478b2.zip |
Parallelize src/test/test into chunks.
First, we introduce a flag to teach src/test/test to split its work
into chunks. Then we replace our invocation of src/test/test in our
"make check" target with a set of 8 scripts that invoke the first
8th of the tests, the second 8th, and so on.
This change makes our "make -kj4 check" target in our hardened
gitlab build more than twice as fast, since src/test/test was taking
the longest to finish.
Closes 40098.
Diffstat (limited to 'src/test/unittest_part1.sh')
-rwxr-xr-x | src/test/unittest_part1.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/unittest_part1.sh b/src/test/unittest_part1.sh new file mode 100755 index 0000000000..5be0f499f9 --- /dev/null +++ b/src/test/unittest_part1.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +"${abs_top_builddir:-.}/src/test/test" --fraction 1/8 |