From nobody Mon Jul 21 02:13:39 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4blkTb5XLXz61xtj; Mon, 21 Jul 2025 02:13:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4blkTb4z2Nz3Mtj; Mon, 21 Jul 2025 02:13:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753064019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Byq2GWoZsapLqJDuLirx2wC4fItkwRJ8YgmxN01ZX2Q=; b=HJWtwZhbgXMUIvvR+HAOMvT3t9m4viB/AIvIrjXDK6+8kVbwG1FE3GkxCblbFhFEAWK1QL 6JAWnDfz4L4vNSSjJMosanqjoJuveoujvC2k3sOEkBCPUliKC1hQHeeYVkYyzlDcsr2QoB YVVCNzMGFM4pd4EamIfGSlWy7oEQ5ZU0NkFMWu6WfM0lTF/ylX33e/MWmieRpuIqKCUvVt 8Gj+69up2DOM73uhawJy95Is1fcA/kMGWylwg/mqaxZ5tQONAT0/nu8IBr9WPHoRThU53j pwhNt9NJ/O914lG0e8tZ5zhGj96k2g7R7AemKwwZeLyRfZ/4NrVAzOVFPzPTqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753064019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Byq2GWoZsapLqJDuLirx2wC4fItkwRJ8YgmxN01ZX2Q=; b=YA3JIKvkceuRM482d388y2p8L6CHFlM/ZMZq5fFdlZuoe2nCy3Nm93y4I+vfofd5Sz9aFl lX4wjuGPne5mr6JITP9ltbULJoMsGQXxexVbeuZfNoU145mr/cKVd6uNvhyyJxN8ipINsK on/aVUorK4TGYy+GzgySwrp/9Vl4bqyqZIo5q8F3XJDPlWl7yAzDg9Ufzw4anjgjL3+sqz r9Twv5wQ2OVj5kETeJMae8yygvjBpuqrgdW014AqbqKSuLaegkgbM7WN9hgWOfyhjBOfcj AQ06jeN4UCu1QzaTfBC2yE4IZhk7dD9XOtdurOCZ3tlH+H3IL9170YaDOieLbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1753064019; a=rsa-sha256; cv=none; b=fPK8zNa+uzNFaJRFR+p6iJvljgdimxXrS6VRzATOnXgEO+dBCfr17FyB/HVNtyM5jOHyAK gWwtoVw3dE9+qOzu12iHQq1pGuXLjwq7AkOlXdxryyoXKoi660Kw2R8jNUk/pgz0iVfKXg U4K+R8MVyJrwvLABIOmnS5VFe6DDxQYJPx09fzmVyVEWVyT4XW7nx7fZXxSgs8EbGWcs3H V36bVI8/aOVfuGP5EMVM6CDUfMos3iGf3EdhP26GBBkunylb1iEmhfFJ8PUgJtkfjRS0Sn 17WGSLP4kCklQyQKN0hRR0agf5v/4k0ZG4KnJ2K9Xicp1+sesZrAPPfAqAVviw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4blkTb4Zk6zdym; Mon, 21 Jul 2025 02:13:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 56L2DdXd013335; Mon, 21 Jul 2025 02:13:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 56L2DdSp013332; Mon, 21 Jul 2025 02:13:39 GMT (envelope-from git) Date: Mon, 21 Jul 2025 02:13:39 GMT Message-Id: <202507210213.56L2DdSp013332@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: a2328a1338e0 - stable/14 - mk: add PLAIN_TESTS_PORCH support List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: a2328a1338e0bd17fc4c751228ba49b6de4ca5ec Auto-Submitted: auto-generated The branch stable/14 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=a2328a1338e0bd17fc4c751228ba49b6de4ca5ec commit a2328a1338e0bd17fc4c751228ba49b6de4ca5ec Author: Kyle Evans AuthorDate: 2024-10-21 01:31:50 +0000 Commit: Kyle Evans CommitDate: 2025-07-21 02:12:23 +0000 mk: add PLAIN_TESTS_PORCH support porch(1), available via sysutils/porch, is an expect(1)-like program that uses lua instead of tcl for scripting. Imminent use will be to execute tests of tty canonicalization to ensure we don't regress some of the corner cases we've fixed, but tests for other interactive programs are being considered as well. PLAIN_TESTS_PORCH is being introduced primarily to get the metadata right without writing it out for every single test; required_programs ensures that we skip the tests if the port is not installed. Reviewed by: 0mp (previous version), ngie (cherry picked from commit 44f736c385f6b8d451feb9d6543220e8e61abcaa) --- share/mk/bsd.README | 3 +++ share/mk/plain.test.mk | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/share/mk/bsd.README b/share/mk/bsd.README index 24acc355b9b5..b68d7b66402d 100644 --- a/share/mk/bsd.README +++ b/share/mk/bsd.README @@ -702,6 +702,9 @@ PLAIN_TESTS_C The names of the plain (legacy) programs to build. PLAIN_TESTS_CXX The names of the plain (legacy) test programs to build. +PLAIN_TESTS_PORCH The names of the plain (legacy) porch(1)-based + test programs to build. + PLAIN_TESTS_SH The names of the plain (legacy) test programs to build. TAP_PERL_INTERPRETER diff --git a/share/mk/plain.test.mk b/share/mk/plain.test.mk index cc6d268185da..485a78f8ea47 100644 --- a/share/mk/plain.test.mk +++ b/share/mk/plain.test.mk @@ -43,6 +43,17 @@ TEST_INTERFACE.${_T}= plain .endfor .endif +.if !empty(PLAIN_TESTS_PORCH) +SCRIPTS+= ${PLAIN_TESTS_PORCH:S/$/.orch/} +_TESTS+= ${PLAIN_TESTS_PORCH} +.for _T in ${PLAIN_TESTS_PORCH} +SCRIPTSDIR_${_T}.orch= ${TESTSDIR} + +TEST_INTERFACE.${_T}= plain +TEST_METADATA.${_T}+= required_programs="porch" +.endfor +.endif + .if !empty(PLAIN_TESTS_SH) SCRIPTS+= ${PLAIN_TESTS_SH} _TESTS+= ${PLAIN_TESTS_SH}