From cef6425bcac678157f58e9eafabb7e63c5831d18 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 7 Aug 2022 15:49:54 -0400 Subject: 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. --- run-qtest | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'run-qtest') 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($_)) -- cgit v1.2.3-54-g00ecf