From 7d24ce13858cd4a442f7b74228dfbbe808147063 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Tue, 21 Mar 2017 21:52:33 -0600 Subject: [PATCH] t/harness: Run APItests in parallel This commit changes these tests to be run like the tests in t/lib, in parallel with each other, when available. This is the longest running directory, and prior to this commit, on many-core systems it can be the final thing chugging along, a test at-a-time, while the other cores are idle. --- t/harness | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/harness b/t/harness index 0ff4d85..3fc3ae08 100644 --- a/t/harness +++ b/t/harness @@ -163,7 +163,9 @@ if (@ARGV) { s,\\,/,g; # canonicalize path }; # Treat every file matching lib/*.t as a "directory" - m!\A(\.\./lib/[^/]+\.t\z|.*[/])! or die "'$_'"; + m! \A ( \.\. / (?: lib | ext/XS-APItest/t ) + / [^/]+ \.t \z | .* [/] ) !x + or die "'$_'"; push @{$dir{$1}}, $_; $total_time{$1} += $times{$_} || 0; } -- 1.8.3.1