From nobody Mon Oct 21 01:32:42 2024 X-Original-To: dev-commits-src-main@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 4XWyVL5rKkz5b2Gg; Mon, 21 Oct 2024 01:32:42 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XWyVL5J9qz58yZ; Mon, 21 Oct 2024 01:32:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729474362; 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=Y3ZVUy9B9u595oznzXg8TfOrsft1pWbE2/5k1iz2bRk=; b=HROKQKdvrk1gSHqXh/IpN3YetdDhkuetIXesh5rvnZTT6QAJwKYGwMV4a5vO9bgk+0Q+fk coTnowcT0BpYxrChSMw2edsnP9OUHi2MT+bQZydjLNYovY75rlalr5/WNfryYpKmqKfvKP TDW0x/ZanR2iQeIhvpLcsgjRCIM/21o0wkDW3vKRxCD/OtsnaBVyfBDaC18mqpGbBXiqmD TLLucH9DYSlalJI1hVPw8r8zWUyVcfiLY1Bq1T9Mz64UeH+QeUlL21bPv9ttikC/e4KIUA qs8cWvijwpBXYsiNDE+PmwdZFjDYZ2kR7VxDlw7TuxaKjBcrwgQ1pY7Ke17u8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729474362; 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=Y3ZVUy9B9u595oznzXg8TfOrsft1pWbE2/5k1iz2bRk=; b=CXDnpXfuXV8Vd3bDANZuUkAaWcFwAIXlCP1sqQfvJYmMf3MZbovnm4sueLv/BVp9CSemoA 9fO09z3tOI6dMozB6WuAexQWksu/Nhh5dCT8iyncWsqkTCmJYAMZ9nHy5ID+uh0wzYoJYW beppcuMnvLjSO+nq1slMiyLYZbCBca08VxFlt8ZfAscIuZr8lfj2AuvNJTYArbP1vT7hoR efS8R+Ed4W92xguwbEQFn+H1jh99K6y11ymzY6tCVQCQXvYm6kY4Dh1K0xCYpkGupwZ6b/ NxDgdRRU5umH1ZRlMLdEYLHUAqhNlWlMAVcMcZ5fgqe2yZUCtt0SIzbPkg9nPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729474362; a=rsa-sha256; cv=none; b=UN8KztPmbx2dERbw+ruKK1J5U/ycgtX7BvcOzCndy+jZZIKp+mjJI6vabCxtIlkPhjtlXy ex2+kJclwXQk/CMb7+4O22BSsujz/7XNROUjL7Sq4DCsIiepc6OSgj4WhIk0qAFI1S0svc VY15saTWjfiJOlD1IKhMFU6LRQu2Xl4hwdKmCuIHRBCFoBpAAIce+Rl7S9vb8ESrV0qGVz zs7fSCn4wsMt2bl6UxNSdR4g3uaOjS0wYN2q7NAfXVv0NpfxgBSAHBRvM8KJcsuT1q07f/ r4bRwltUlUCpx7ieqRqIVvwU9+y1A+tMLLcYR3g6SLdipvkk4RuiskPtYhWUvg== 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 4XWyVL4vTjz1PwR; Mon, 21 Oct 2024 01:32:42 +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 49L1WgFB036863; Mon, 21 Oct 2024 01:32:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49L1Wg0u036860; Mon, 21 Oct 2024 01:32:42 GMT (envelope-from git) Date: Mon, 21 Oct 2024 01:32:42 GMT Message-Id: <202410210132.49L1Wg0u036860@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 44f736c385f6 - main - mk: add PLAIN_TESTS_PORCH support List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 44f736c385f6b8d451feb9d6543220e8e61abcaa Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=44f736c385f6b8d451feb9d6543220e8e61abcaa commit 44f736c385f6b8d451feb9d6543220e8e61abcaa Author: Kyle Evans AuthorDate: 2024-10-21 01:31:50 +0000 Commit: Kyle Evans CommitDate: 2024-10-21 01:32:31 +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 Differential Revision: https://reviews.freebsd.org/D46805 --- 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 70d489a9f59f..e957e9cdd48b 100644 --- a/share/mk/bsd.README +++ b/share/mk/bsd.README @@ -701,6 +701,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}