From nobody Tue Sep 22 02:31:41 2026 X-Original-To: dev-commits-src-all@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 4hpkcy69f2z6ss9V for ; Tue, 22 Sep 2026 02:31:46 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hpkcy2t4Dz4bQ2 for ; Tue, 22 Sep 2026 02:31:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790044306; 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=tuJTl+6Uta/imFXsEfQGSDMAN9fgdFw+yVldVECN0ys=; b=f6wvinOKNy2q79vl7BSMLgZxvafd9FE3a839O2kdMeUvzsY0ugHxxAPWG/XSawPOPOmDpl Y4QO9N7ai3REHiFTuGBFrGnwV/EK0phL4X01/0FpCJzm6OWtgFHjZcFGTyCbDUGGFjkIaw 4rPBXNA8QkWWRhFJh9OlD+KjuZ5otI1ajwA0Fc0bdkUziz5gX/gmMbUv6Gtw3ggulxz6nt kKulJfDvWX2QnBzRLAP3Tji6momUFHyRio0KVo9iI3tyVrEMG6FBq4tz6a4FaqTpsPKSEx smYVgQLcVUM6JIZSohOyaWEOR+FTUIBWfM0N8/OXpn+6GhRRzjUN0eUxa+m1rw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1790044306; b=qTD+CK51J46Bhcx+qODtBNW0DrwX4d3thmXRxxDihqUQ51YKzld2LEIYr5zl2rTDqEwHVJ xDjKUb/4k0BnaHCwRFKKQmb2VOYgn4b7Qu3yYbxBHmMIZa109/l+aeVPCPju+0p6MY4HZP zTSP3t8fVd8lKY9PGEtntviiJgPU9KBH34qoYhZ1axa40YZt5mef85zVnaTXwD6nTIvh1i VNwZj4MtcDcGiJWUvoR84uxSULbYS2LSP69zd2eb3LTFm7cqHugflVCLYwudkqcSxkxefN wUzPytS/NmPt7OufH4KOnu/qIpokR4q/BZS4tqyQbsxD+v520mx+qRA+YF3m0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790044306; 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=tuJTl+6Uta/imFXsEfQGSDMAN9fgdFw+yVldVECN0ys=; b=sCy641RNAIeo9RyNuGiVbt5RZcW5CCopF1/TqWfL/sMGUFJYT2x/1dpJB3awWcY7OHDjU6 YY+BSas1k3ADyoCuBzSLzo9PTW5uNTXUo/tA8jLb45VBdarHCwB3gm/7qx+DgXtHCFI321 0rTWRvuQygSwQBHgfN2Ns9hpvfFyLSxsp38toGN1ZniYvtUwpes+kaXT7J5JlPA9zPm5KM iQYlWNLbOnO3QpBdMkVF/yhpmEYZZ2tmdtlZ182jSCBAvC9QcFT5j5QzcBceYjtJDNGApM 8bVw0fEDODX7QerWN0wXAQ89eU09IqBL14P4BB7CMeUDY8HZLAa6+xsTKeumhA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hpkcy1NlKzny3 for ; Tue, 22 Sep 2026 02:31:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1e95e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 22 Sep 2026 02:31:41 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Enji Cooper Subject: git: 30c20ca26e10 - main - Remove Dtrace/ZFS tests if their knobs are disabled List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ngie X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 30c20ca26e105cffc5f37a95964cd9b2cad1b6cd Auto-Submitted: auto-generated Date: Tue, 22 Sep 2026 02:31:41 +0000 Message-Id: <6ab1e88d.1e95e.67f13a84@gitrepo.freebsd.org> The branch main has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=30c20ca26e105cffc5f37a95964cd9b2cad1b6cd commit 30c20ca26e105cffc5f37a95964cd9b2cad1b6cd Author: Enji Cooper AuthorDate: 2026-09-22 02:27:04 +0000 Commit: Enji Cooper CommitDate: 2026-09-22 02:31:34 +0000 Remove Dtrace/ZFS tests if their knobs are disabled Prior to this change, Dtrace and ZFS tests and their respective directories would remain installed even if `${MK_DTRACE_TESTS}` == no or `${MK_ZFS_TESTS}` == no. This change enhances the logic to remove the tests when the respective knobs are disabled so the tests will be removed when `make delete-old` is run. MFC after: 2 weeks --- tools/build/mk/OptionalObsoleteFiles.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc index 70c318f6989a..0511a27a6407 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -1672,6 +1672,18 @@ OLD_DIRS+=usr/share/dtrace/toolkit OLD_DIRS+=usr/share/dtrace .endif +.if ${MK_DTRACE_TESTS} == no +DTRACE_TEST_DIRS= cddl/usr.sbin/dtrace +. for d in ${DTRACE_TEST_DIRS} +. if exists(${DESTDIR}${TESTSBASE}/${d}/) +TESTS_DIRS!=find ${DESTDIR}${TESTSBASE}/${d}/ -type d | sed -e 's,^${DESTDIR}/,,'; echo +OLD_DIRS+=${TESTS_DIRS} +TESTS_FILES!=find ${DESTDIR}${TESTSBASE}/${d}/ -type f | sed -e 's,^${DESTDIR}/,,'; echo +OLD_FILES+=${TESTS_FILES} +. endif +. endfor +.endif + .if ${MK_EE} == no OLD_FILES+=usr/bin/edit OLD_FILES+=usr/bin/ee @@ -9438,6 +9450,19 @@ OLD_DIRS+=usr/share/zfs/compatibility.d OLD_DIRS+=usr/share/zfs .endif +.if ${MK_ZFS_TESTS} == no +ZFS_TEST_DIRS= cddl/usr.bin/ztest +ZFS_TEST_DIRS+= cddl/usr.sbin/zfsd +. for d in ${ZFS_TEST_DIRS} +. if exists(${DESTDIR}${TESTSBASE}/${d}/) +TESTS_DIRS!=find ${DESTDIR}${TESTSBASE}/${d}/ -type d | sed -e 's,^${DESTDIR}/,,'; echo +OLD_DIRS+=${TESTS_DIRS} +TESTS_FILES!=find ${DESTDIR}${TESTSBASE}/${d}/ -type f | sed -e 's,^${DESTDIR}/,,'; echo +OLD_FILES+=${TESTS_FILES} +. endif +. endfor +.endif + .if ${MK_ZONEINFO} == no OLD_FILES+=usr/share/zoneinfo/Africa/Abidjan OLD_FILES+=usr/share/zoneinfo/Africa/Accra