aboutsummaryrefslogtreecommitdiffstats
path: root/run-qtest
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-08-07 21:49:54 +0200
committerJay Berkenbilt <ejb@ql.org>2022-08-07 22:20:49 +0200
commitcef6425bcac678157f58e9eafabb7e63c5831d18 (patch)
tree3889207c93e092679f9b8d01084c5cc1f9d7794f /run-qtest
parentda71dc6f37c69bdf708f1f9876e63ff348ae2296 (diff)
downloadqpdf-cef6425bcac678157f58e9eafabb7e63c5831d18.tar.zst
Disable QTC inside the library by default (fixes #714)
This results in measurable performance improvements to packaged binary libqpdf distributions. QTC remains available for library users and is still selectively enabled in CI.
Diffstat (limited to 'run-qtest')
-rwxr-xr-xrun-qtest7
1 files changed, 6 insertions, 1 deletions
diff --git a/run-qtest b/run-qtest
index 1160589d..481052e9 100755
--- a/run-qtest
+++ b/run-qtest
@@ -13,6 +13,7 @@ my $code = undef;
my @bin = ();
my $color = undef;
my $show_on_failure = 0;
+my $disable_tc = 0;
my @tc = ();
if ($^O =~ m/^MSWin32|msys$/)
@@ -51,6 +52,10 @@ while (@ARGV)
usage() unless @ARGV;
$show_on_failure = cmake_bool(shift(@ARGV));
}
+ elsif ($arg eq '--disable-tc')
+ {
+ $disable_tc = 1;
+ }
elsif ($arg eq '--tc')
{
usage() unless @ARGV;
@@ -94,7 +99,7 @@ push(@cmd,
"-datadir", "$code/qtest",
"-junit-suffix", basename($code));
-if (scalar(@tc))
+if (scalar(@tc) && (! $disable_tc))
{
my @tc_srcs = map {
File::Spec->abs2rel(abs_path($_))