diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-08-07 21:49:54 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-08-07 22:20:49 +0200 |
commit | cef6425bcac678157f58e9eafabb7e63c5831d18 (patch) | |
tree | 3889207c93e092679f9b8d01084c5cc1f9d7794f /run-qtest | |
parent | da71dc6f37c69bdf708f1f9876e63ff348ae2296 (diff) | |
download | qpdf-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-x | run-qtest | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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($_)) |