From nobody Sat Dec 20 01:11:03 2025 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 4dY5vD2mrPz6L2cj for ; Sat, 20 Dec 2025 01:11:04 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dY5vC2TV2z3vC6 for ; Sat, 20 Dec 2025 01:11:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766193063; 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=jJPImiwT/ecua3w6CMJv2RwZPPo3QWpXbhPXjGKK6rI=; b=v2240zC0B2cTDFpJZZfExj+tuudm1sqrOBt7AWkD5dkxkRU4tstbMR/m9it2LAenetn9qT wV3sFt9uX/rZVHuEwH37AkbjDeGI6Gl8FJMPbGaIefGGBqwUABm5slcp6ZCPLZ7maL88Gq Cl17Ob3KpZSGn05dmbartJMn/7Us49zEfZeNyvZPFnzKIkZiLdmAxnMXJWxJ4JiBG/1lvX RGhsmNQj2zTXO/FJx00FPGK0ZSrk9D9vNaAh0hXNvWv7mKTkF19QYmW/3HGqF7Tzh9IixQ Zo5l3pV8b9+I8syFGhaZponObVKorQGLv+/5lHEzVQX4XZNmsQMUALJqJKxXSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766193063; 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=jJPImiwT/ecua3w6CMJv2RwZPPo3QWpXbhPXjGKK6rI=; b=jY8i/VmFvbgByEt2g8nRQpS7bTOUgeyHsO/ozMdUBbLCeEN1haHj1LE233PtZ6FE8o6bBH KLqHPXm3g1/fM8lVzB6LKR9Z0BKTboFDoEP6/dMyofU5QmqdKEDWY6jBBcupSKrd7EvE6y PnDk7UREyubKuxPt9Obu56CsHdfkKHrd5Yz/aj9ylSDR3T6X8tr+G5/Vxp/+xQiXqeqg// 5FFUdVnRtZubX/KRUhfCGwVAp9hdAgRnUJq/86LeFNFGK6gHE6Lgoe3eJTVoXx2V03ZuH3 Kb/rUm7UwNdxVX4aCl4YDHEFhztSs5WCZqDuLCKww6K+sEj94sklrJzZn36X8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766193063; a=rsa-sha256; cv=none; b=NnNsiSJwb+99rYZlDdDYwYQe5otq3EXRU6ESZo6RchAGuPO9E9J8T6hNugywfH0TbPx7Tw oTHKSSmUV8WFLEXkGh21ZTkbFOqEF4eLjxeG64F1y6YbXSSH97F8tiDMwOGUYgUgUoNYhK WpONaiuZLXFGddAn7f643LPVhd0qnythI2UABJZ8rR1aUMflMHA9D1Yp0bAWTdWqwbY3SH AWW8mEjKn2UKr9zBBKKCSlk/drLR4Lj1u9t3vakfqL6tm0afN9TYR7i5JXiIQ2x7JO7oii WDM+M16ElEivyx1iARnPb4j8S+JjSY3TUZG3B75gWmNZGTBhNXxjrCRonyVYNQ== 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 4dY5vC22ShzYjb for ; Sat, 20 Dec 2025 01:11:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 34a3e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 20 Dec 2025 01:11:03 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Jose Luis Duran Subject: git: 7cc02662711c - stable/14 - mtree: tests: Import NetBSD's mtree test suite 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jlduran X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 7cc02662711ca0eb036114686f4f293a5e4be8bc Auto-Submitted: auto-generated Date: Sat, 20 Dec 2025 01:11:03 +0000 Message-Id: <6945f7a7.34a3e.5f3f2829@gitrepo.freebsd.org> The branch stable/14 has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=7cc02662711ca0eb036114686f4f293a5e4be8bc commit 7cc02662711ca0eb036114686f4f293a5e4be8bc Author: Jose Luis Duran AuthorDate: 2025-12-09 15:45:01 +0000 Commit: Jose Luis Duran CommitDate: 2025-12-20 01:07:52 +0000 mtree: tests: Import NetBSD's mtree test suite Manually import latest mtree test suite from NetBSD. MFC after: 1 week (cherry picked from commit 2f29d0f3e6d25599c188c94bf1e395d9cbeb2a4d) --- contrib/netbsd-tests/usr.sbin/mtree/t_mtree.sh | 40 +++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/contrib/netbsd-tests/usr.sbin/mtree/t_mtree.sh b/contrib/netbsd-tests/usr.sbin/mtree/t_mtree.sh old mode 100755 new mode 100644 index 5daefd84e928..5e4177c792a5 --- a/contrib/netbsd-tests/usr.sbin/mtree/t_mtree.sh +++ b/contrib/netbsd-tests/usr.sbin/mtree/t_mtree.sh @@ -1,4 +1,4 @@ -# $NetBSD: t_mtree.sh,v 1.7 2017/01/14 20:45:16 christos Exp $ +# $NetBSD: t_mtree.sh,v 1.10 2023/12/02 16:18:17 christos Exp $ # # Copyright (c) 2009, 2012 The NetBSD Foundation, Inc. # All rights reserved. @@ -447,6 +447,42 @@ mtree_specspec_type_body() fi } +atf_test_case mtree_onlyfile +atf_test_case netbsd6_onlyfile +onlyfile_head() +{ + atf_set "descr" "Test -O with same hash value in directory and leaf" +} + +onlyfile_body() +{ + mkdir -p ab/no + echo ./ab/no >onlyfile + mtree -F ${FLAVOR} -c -n -O onlyfile >output + if [ ! -s output ]; then + atf_fail "mtree did not find path in onlyfile" + fi +} + +mtree_onlyfile_head() +{ + FLAVOR=mtree onlyfile_head +} +netbsd6_onlyfile_head() +{ + FLAVOR=netbsd6 onlyfile_head +} + +mtree_onlyfile_body() +{ + FLAVOR=mtree onlyfile_body +} +netbsd6_onlyfile_body() +{ + FLAVOR=netbsd6 onlyfile_body +} + + atf_init_test_cases() { atf_add_test_case mtree_create @@ -459,6 +495,7 @@ atf_init_test_cases() atf_add_test_case mtree_merge atf_add_test_case mtree_nonemptydir atf_add_test_case mtree_specspec_type + atf_add_test_case mtree_onlyfile atf_add_test_case netbsd6_create atf_add_test_case netbsd6_check @@ -469,4 +506,5 @@ atf_init_test_cases() atf_add_test_case netbsd6_ignore atf_add_test_case netbsd6_merge atf_add_test_case netbsd6_nonemptydir + atf_add_test_case netbsd6_onlyfile }