From patchwork Tue Oct 20 15:27:24 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 5495 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7000:848c:b0:8dc:5c83:a4ec with SMTP id z12csp2839150max; Tue, 20 Oct 2026 08:27:56 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvBzoO4ew//tXYOQ+ePqR+PAefP/GddLwBa7Puyc3DErvtvxl3EMe9PD2/86fPaNCOKJzVJs2E07azPI=@openvpn.net X-Received: by 2002:a05:6820:1506:b0:6da:29e4:35b1 with SMTP id 006d021491bc7-7035598a606mr7497650eaf.31.1792510076210; Tue, 20 Oct 2026 08:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1792510076; cv=none; d=google.com; s=arc-20260327; b=Pu4nTFVqbFs1Hm+Vsk74UgDNSambtu8NFSL3FCiwm+jL/OrYOU9+f0WqD5pXlu11rc ah1R2U6AxiJY4qEMYmeC60lcDi1hceEJ97flagpPPWenF/liBoXfUGrQN7kZj33llntA oQ97NapzvOB+E+ax5yaOQgsEBQrcquGxHVW2cITfnsah51m1VTmaJ/ETW1e7SUML2cFg YNjQc3kLjhoHYdN6Xnak6m7cXDPPXAI/k+HX7Qi2Q6fXF7CaTnnI+RF93DVJ457UAQ+P cwCter608GthT7n0mjp5FClGeWGH2SrovA1cPynFtfeDPFRNSbUwma2G8rlk4GFtmPMd jVKA== 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=rLVAY/MQodlerZGsncbaSVY5hhSx9j72KNejYFiDdss=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=BiloIEoX19TP5L2kds2QM2Ze0kTS+R9YYrHwgd29WYlTazQooGnUDJ09LTr+pP3pp4 YZDnyaX1e3+xiYfnMQlacMgDPDcuOQBS7B6frSnIVOknRYD9Mjt0/E/do5tlWkcZRX+r WHm7TN6aOiFkylOypcQ9QaSki4kSt57+CZJUSPeZktmoD+cJxpgiC6in2QK1KOsYNLkR /DcJsp/voqhWSkCCPrxJNCB87CeXBi6rKdMqyzOoD0kyaoINQHieDze2d5RaLOK1KgDY xTEjyvn/RSf66W3D5BcjnpRLBlpozWRd59/ez174T+0knBybZ6LBDLL6Ya2E/IlIJEl2 RsPg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=HIHvAg+G; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=HXu6m5fN; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=LCKJgUQb; 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-4a7d3d4542bsi202837fac.197.2026.10.20.08.27.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Oct 2026 08:27:56 -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=HIHvAg+G; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=HXu6m5fN; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=LCKJgUQb; 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=rLVAY/MQodlerZGsncbaSVY5hhSx9j72KNejYFiDdss=; b=HIHvAg+GnpSLSxkxcAJJwYO0Kc TrpWMcWs9pvD9aZhj1eUp6O90gQLYvMl814IPmFNJ+adtV9Yudr04yALShfUSHc68Jkp+3nJ1fE1U xJce6SVhwT4O9PWVoGCw6mdMpwfMKaqV4awVu1fWDvB0DH2WZonPM+IX26eWQwDl0Ft8=; Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1xJBkg-0000DV-JG; Tue, 20 Oct 2026 15:27:44 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1xJBkf-0000DP-95 for openvpn-devel@lists.sourceforge.net; Tue, 20 Oct 2026 15:27:42 +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=P3mkniU5Bl9jbUONJSNLIsYeWvQ4hD1EWKB0FHfM2WU=; b=HXu6m5fNhwaM1YGr2Bc/K8KZmK nW/xdIiDarf1Iui66+1Va/BYG+fVoJ3eJacqXbUcjgQVdsBCi3BVCygJvEOFMyEf3+75SRMNB4CyN j+/eCxNCh3XCAp2wQju0X8teubuAljHAKk8244nn2aSpOwsDq7imJIP/v+ZSe78fZIpU=; 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=P3mkniU5Bl9jbUONJSNLIsYeWvQ4hD1EWKB0FHfM2WU=; b=LCKJgUQbmCuR/en6yLGTO2zY2+ JICW74a3cO1ju+xJPzqhpo6KEhvSRVwNNhR89fgPKJxS7TlmickjdIRb8RO94KetVlBqr2Su+Q15l nI3P8UX5pRCXlVbha2seps9T9HWjP5qkcUjrtryvnCTXaBSA9jDMLmlM7DoQpr5J5VR4=; 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 1xJBkY-0008GG-SN for openvpn-devel@lists.sourceforge.net; Tue, 20 Oct 2026 15:27:42 +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 69KFRWUf004309 for ; Tue, 20 Oct 2026 17:27:32 +0200 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 69KFRW8Z004308 for openvpn-devel@lists.sourceforge.net; Tue, 20 Oct 2026 17:27:32 +0200 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Tue, 20 Oct 2026 17:27:24 +0200 Message-ID: <20261020152730.4293-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.55.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-2.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 So that we can build unit-tests without running them. Something automake doesn't seem to offer out of the box. Change-Id: I149d0ba7011e62a115a565813e1f5873907d464e Signed-off-by: Frank Lichtenheld Acked-by: Razvan Cojocaru Gerrit URL: https://gerrit.openvpn.net/c/o [...] 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: 1xJBkY-0008GG-SN Subject: [Openvpn-devel] [PATCH v2] automake: Add build-tests recursive target 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: 1879583045728392957 X-GMAIL-MSGID: 1879583045728392957 From: Frank Lichtenheld So that we can build unit-tests without running them. Something automake doesn't seem to offer out of the box. Change-Id: I149d0ba7011e62a115a565813e1f5873907d464e Signed-off-by: Frank Lichtenheld Acked-by: Razvan Cojocaru Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2022 --- 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/+/2022 This mail reflects revision 2 of this Change. Acked-by according to Gerrit (reflected above): Razvan Cojocaru diff --git a/configure.ac b/configure.ac index 52b0d20..8bf2c8a 100644 --- a/configure.ac +++ b/configure.ac @@ -47,6 +47,8 @@ AC_CANONICAL_HOST AC_USE_SYSTEM_EXTENSIONS +AM_EXTRA_RECURSIVE_TARGETS([build-tests]) + AX_CODE_COVERAGE AC_ARG_ENABLE( diff --git a/tests/unit_tests/example_test/Makefile.am b/tests/unit_tests/example_test/Makefile.am index 1ae80c8..942e9d1 100644 --- a/tests/unit_tests/example_test/Makefile.am +++ b/tests/unit_tests/example_test/Makefile.am @@ -15,3 +15,5 @@ example2_testdriver_CFLAGS = @TEST_CFLAGS@ example2_testdriver_LDFLAGS = @TEST_LDFLAGS@ example2_testdriver_SOURCES = test2.c + +build-tests-local: $(check_PROGRAMS) diff --git a/tests/unit_tests/openvpn/Makefile.am b/tests/unit_tests/openvpn/Makefile.am index 38299f5..43a6743 100644 --- a/tests/unit_tests/openvpn/Makefile.am +++ b/tests/unit_tests/openvpn/Makefile.am @@ -445,3 +445,5 @@ $(top_srcdir)/src/openvpn/env_set.c \ $(top_srcdir)/src/openvpn/run_command.c \ $(top_srcdir)/src/openvpn/socket_util.c + +build-tests-local: $(check_PROGRAMS) diff --git a/tests/unit_tests/openvpnserv/Makefile.am b/tests/unit_tests/openvpnserv/Makefile.am index 19de666..210c9e6 100644 --- a/tests/unit_tests/openvpnserv/Makefile.am +++ b/tests/unit_tests/openvpnserv/Makefile.am @@ -14,3 +14,5 @@ $(top_srcdir)/src/openvpnserv/validate.c \ $(top_srcdir)/src//openvpn/wfp_block.c \ $(top_srcdir)/src//openvpn/wfp_block.h + +build-tests-local: $(check_PROGRAMS) diff --git a/tests/unit_tests/plugins/auth-pam/Makefile.am b/tests/unit_tests/plugins/auth-pam/Makefile.am index 7da299c..fd7cf91 100644 --- a/tests/unit_tests/plugins/auth-pam/Makefile.am +++ b/tests/unit_tests/plugins/auth-pam/Makefile.am @@ -12,3 +12,5 @@ auth_pam_testdriver_SOURCES = test_search_and_replace.c $(top_srcdir)/src/plugins/auth-pam/utils.h $(top_srcdir)/src/plugins/auth-pam/utils.c auth_pam_testdriver_CFLAGS = @TEST_CFLAGS@ -I$(top_srcdir)/src/plugins/auth-pam auth_pam_testdriver_LDFLAGS = @TEST_LDFLAGS@ + +build-tests-local: $(check_PROGRAMS)