From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 8DA621FF0AA for ; Tue, 17 Nov 2026 21:40:08 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 58D192160E; Tue, 17 Nov 2026 21:40:05 +0100 (CET) From: "Max R. Carrara" To: pve-devel@lists.proxmox.com Subject: [PATCH pve-storage v3 01/51] test: plugin tests: run tests with at most 4 jobs Date: Tue, 17 Nov 2026 21:38:33 +0100 Message-ID: <20261117203953.913035-2-m.carrara@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261117203953.913035-1-m.carrara@proxmox.com> References: <20261117203953.913035-1-m.carrara@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1794947995602 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.279 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: THKBOCW4ZZ6K3KAQXUI4L5RDFHSCTPFH X-Message-ID-Hash: THKBOCW4ZZ6K3KAQXUI4L5RDFHSCTPFH X-MailFrom: m.carrara@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Wolfgang Bumiller X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Speed up tests by allowing up to 4 jobs to run in parallel. Base the amount of jobs on the output of `nproc` for environments with less than 4 processing units available. Sort tests alphabetically as well, just to make things neater. Signed-off-by: Max R. Carrara --- src/test/run_plugin_tests.pl | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/src/test/run_plugin_tests.pl b/src/test/run_plugin_tests.pl index 2da252b4..33c392f5 100755 --- a/src/test/run_plugin_tests.pl +++ b/src/test/run_plugin_tests.pl @@ -6,22 +6,29 @@ use warnings; # to ensure consistent ctime values on all systems $ENV{TZ} = 'UTC'; use TAP::Harness; -my $harness = TAP::Harness->new({ verbosity => -1 }); +my $MAX_JOBS = 4; + +my $nproc = eval { int(`nproc`) } || $MAX_JOBS; + +my $jobs = $nproc > $MAX_JOBS ? $MAX_JOBS : $nproc; + +my $harness = TAP::Harness->new({ verbosity => -1, jobs => $jobs }); + my $res = $harness->runtests( "archive_info_test.pm", - "parse_volname_test.pm", - "volname_for_format_test.pm", - "list_volumes_test.pm", - "path_to_volume_id_test.pm", - "get_subdir_test.pm", - "filesystem_path_test.pm", - "prune_backups_test.pm", - "free_image_test.pm", - "zfs_list_zvol_test.pm", "content_types_test.pm", + "filesystem_path_test.pm", + "free_image_test.pm", + "get_subdir_test.pm", + "list_volumes_test.pm", + "parse_volname_test.pm", + "path_to_volume_id_test.pm", "plugin_metadata_test.pm", + "prune_backups_test.pm", + "volname_for_format_test.pm", + "zfs_list_zvol_test.pm", ); exit -1 if !$res || $res->{failed} || $res->{parse_errors}; -- 2.47.3