From patchwork Thu Aug 27 17:03:20 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 5285 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7000:2a5c:b0:87d:ab56:3700 with SMTP id l28csp98465maz; Thu, 27 Aug 2026 10:04:00 -0700 (PDT) X-Forwarded-Encrypted: i=2; AHgh+RqfiuvbDc8udWWN6rT3YLS+7ICcusnVwPQTG3satYgSgNFs+WbQQxDV+NDjJuHUizQrbcYBcvADfTs=@openvpn.net X-Received: by 2002:a05:6820:a513:20b0:6a3:c52b:b94d with SMTP id 006d021491bc7-6b1a03b1611mr13478245eaf.4.1787850239678; Thu, 27 Aug 2026 10:03:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1787850239; cv=none; d=google.com; s=arc-20260327; b=g7BG7fwXA+jP/sq6mKJD9l2coCo92ODp8tZg90i7TbLZeQPXvzsXelGeK/mb+YIHIG TWpdcx4eRuhgaZW523VhqN0ixtqdmh5hLWwJBdkzgfNHv81C9SZMIPCYYrUXsoM9kYAr YeUPLO18b1l+vHBGhRHSWMKTbRmHxZV23QO3KdqTaHoBoaLiM2K1U0NjzaV+4mOyHOEu pfEPlxD0NoMeG5DXM9YB/g5vNLXpcKrx08y/A1BERsieyQ9eEVQzpOi0gRFJqb7dItI7 P4mC9R+0+h3UXptMj1q0hj1+vYT1VRUr5O3WBzA5FvPt0D4nZ2w1p3/kqFCo4UCgwj5t Jtlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-signature:dkim-signature; bh=gWMfSQ+ZBTb9xS0jjhOgU3it/QWtdkDBsvKuZwTrUu0=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=JnS3c3KWW2M0HjISz/I4iij38Eh924fpU9PTAs2+6FygH5OgDLXvATDhxLXSp2G35l 6du3zh9AoliiTFqVXePuPsHzdFbLXcAkFrATP6t66SBMMiNKooDo/XVpuDH+6qhFeZKw z1OIUXzSOOizFc1D3gNCHMLp1ernmoyqQlIQq8wo1GGg7I2A/S7S3PkyGLk6f+EPgagS w6JyVnzlfgWG7vkFvIpmPA6qdTNcWgBM5WFVVaCZI7WteiKuONRZPb+Eemp+xNHKRB2J nBf51siawQvrbuLYbJms6PjI7iqbJwxqMD10ni8ilukNsm7J1a80bQ7R/2HIxSRe0hJR +mCg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b="N/i1STKm"; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=k+Hm4pSI; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b="L/oKjjv3"; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id 586e51a60fabf-46736666f68si3135449fac.9.2026.08.27.10.03.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Aug 2026 10:03:59 -0700 (PDT) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b="N/i1STKm"; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=k+Hm4pSI; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b="L/oKjjv3"; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gWMfSQ+ZBTb9xS0jjhOgU3it/QWtdkDBsvKuZwTrUu0=; b=N/i1STKm0fB8LunI/468bDPxhZ kuoQP6fXjJ5MzwEYb5PufvjjinBRNE+nsMaWemVQoSpmsBwb0c7D7D23E+d+rcHaqiNc1m7X6BaVG PkGGkcL+JF5o5ue/WY4L2zvavlo36krIrQqz/rMD3k1UY9xUF/fk35NcXsRADXbiZeok=; Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1wzdVz-0005If-DQ; Thu, 27 Aug 2026 17:03:48 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1wzdVm-0005Gz-IJ for openvpn-devel@lists.sourceforge.net; Thu, 27 Aug 2026 17:03:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=IHA/gHyJtuKwzkbzv3iaAbt5EsNwUkxhj8pXBHwYNBU=; b=k+Hm4pSIzWxICC/6dJ36hY75uO QpctBGtbyP3yPvNDAxu2T/eLsMEhQ7du7Vcds9ghvY+e55tGvcZf2d+mZ4Siodm4QEPJi6m+IfVgi vcUuABerQp6tans3ZJAVflMb9WyCg6SbV9frpo6qO1N7xItS4FJp6XP53h4OlH6xkwuI=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=IHA/gHyJtuKwzkbzv3iaAbt5EsNwUkxhj8pXBHwYNBU=; b=L/oKjjv3vWKzHbKxXwY7E2AMbD RwtyL3IIkHa8NYqxxL0Yak9TANr/n/YSFlS7VbGmLIpF27ltH1rTDYpjerCGkGjLHY0Qgwsg7p8kt lOTguaIGNDakRiLKFDCu13DVTkaJgc/3JguwzXQ30WM+oPu6gbsj5Ff1fv8Z1EF+Ax54=; Received: from [193.149.48.129] (helo=blue.greenie.muc.de) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1wzdVl-0005vF-TP for openvpn-devel@lists.sourceforge.net; Thu, 27 Aug 2026 17:03:35 +0000 Received: from blue.greenie.muc.de (localhost [127.0.0.1]) by blue.greenie.muc.de (8.18.1/8.18.1) with ESMTP id 67RH3QiO013177 for ; Thu, 27 Aug 2026 19:03:26 +0200 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 67RH3Qgr013176 for openvpn-devel@lists.sourceforge.net; Thu, 27 Aug 2026 19:03:26 +0200 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Thu, 27 Aug 2026 19:03:20 +0200 Message-ID: <20260827170326.13161-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "sfi-spamd-1.hosts.colo.sdot.me", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Frank Lichtenheld Since we generally set this up in a way that one test group corresponds to one server, it can be useful to filter by the group. E.g. this allows one to potentially parallelize test runs against differ [...] Content analysis details: (1.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Headers-End: 1wzdVl-0005vF-TP Subject: [Openvpn-devel] [PATCH v7] t_client.sh.in: Add ability to filter by test group X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: 1874696853087762202 X-GMAIL-MSGID: 1874696853087762202 From: Frank Lichtenheld Since we generally set this up in a way that one test group corresponds to one server, it can be useful to filter by the group. E.g. this allows one to potentially parallelize test runs against different servers. Change-Id: I4ebeb8c1f0f942da9b2e25f18f88566f8372fabf Signed-off-by: Frank Lichtenheld Acked-by: Razvan Cojocaru Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1777 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1777 This mail reflects revision 7 of this Change. Acked-by according to Gerrit (reflected above): Razvan Cojocaru diff --git a/tests/t_client.rc-sample b/tests/t_client.rc-sample index 4c87436..defa4aa 100644 --- a/tests/t_client.rc-sample +++ b/tests/t_client.rc-sample @@ -31,6 +31,21 @@ # # tests to run (list suffixes for config stanzas below) # +# The general idea is to use one number per server, so +# e.g. use 1 for all tests talking to a UDP server, use +# 2 for tests talking to a TCP server, and 3 for tests +# talking to a P2P server. +# +# The indivdiual tests should then be indexed by using +# letters. +# +# If you set TEST_RUN_GROUP= then t_client.sh +# will only run tests starting with that number. So +# e.g. setting TEST_RUN_GROUP=1 will run 1 and 1a, but +# not 2. This can be used to excercise only a specific +# server, or to run tests against separate servers in +# parallel. +# TEST_RUN_LIST="1 2 2n" # diff --git a/tests/t_client.sh.in b/tests/t_client.sh.in index c3a9655..0568007 100755 --- a/tests/t_client.sh.in +++ b/tests/t_client.sh.in @@ -82,6 +82,21 @@ exit "${TCLIENT_SKIP_RC}" fi +if [ -n "$TEST_RUN_GROUP" ]; then + FILTERED_LIST= + for test in $TEST_RUN_LIST; do + group=$(echo $test | sed -E 's/^([0123456789]+).*/\1/') + if [ "$group" = "$TEST_RUN_GROUP" ]; then + FILTERED_LIST="$FILTERED_LIST $test" + fi + done + if [ -z "$FILTERED_LIST" ]; then + echo "Filtered TEST_RUN_LIST empty (group=$TEST_RUN_GROUP), no tests defined. SKIP test." >&2 + exit "${TCLIENT_SKIP_RC}" + fi + TEST_RUN_LIST=$FILTERED_LIST +fi + # Ensure PREFER_KSU is in a known state PREFER_KSU="${PREFER_KSU:-0}" @@ -121,6 +136,9 @@ fi LOGDIR=t_client-$(hostname)-$(date +%Y%m%d-%H%M%S) +if [ -n "$TEST_RUN_GROUP" ]; then + LOGDIR="${LOGDIR}-${TEST_RUN_GROUP}" +fi LOGDIR_ABS="$PWD/$LOGDIR" if mkdir $LOGDIR; then :