From c5ba8b62219c9e8b895eedc4806176dfe10478b2 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 12 Aug 2020 12:36:54 -0400 Subject: 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. --- src/test/unittest_part2.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 src/test/unittest_part2.sh (limited to 'src/test/unittest_part2.sh') diff --git a/src/test/unittest_part2.sh b/src/test/unittest_part2.sh new file mode 100755 index 0000000000..9a614eb8c1 --- /dev/null +++ b/src/test/unittest_part2.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +"${abs_top_builddir:-.}/src/test/test" --fraction 2/8 -- cgit v1.2.3-54-g00ecf