git: 4b342830abd3 - main - atf: Move the tests back to the tests package

From: Lexi Winter <ivy_at_FreeBSD.org>
Date: Wed, 05 Nov 2025 21:26:24 UTC
The branch main has been updated by ivy:

URL: https://cgit.FreeBSD.org/src/commit/?id=4b342830abd39cdc20b67a215e15309293673e75

commit 4b342830abd39cdc20b67a215e15309293673e75
Author:     Lexi Winter <ivy@FreeBSD.org>
AuthorDate: 2025-11-05 21:16:32 +0000
Commit:     Lexi Winter <ivy@FreeBSD.org>
CommitDate: 2025-11-05 21:16:32 +0000

    atf: Move the tests back to the tests package
    
    Commit 9065390ddc7b moved atf to its own package, but mistakenly moved
    the tests as well.  Put the tests back into the test package.
    
    Fixes:  9065390ddc7b ("packages: Remove the tests-dev package")
    MFC after:      1 day
    Reviewed by:    emaste
    Sponsored by:   https://www.patreon.com/bsdivy
    Differential Revision:  https://reviews.freebsd.org/D53594
---
 lib/atf/Makefile.inc                     | 2 +-
 lib/atf/libatf-c++/tests/Makefile        | 2 ++
 lib/atf/libatf-c++/tests/detail/Makefile | 2 ++
 lib/atf/libatf-c/tests/Makefile          | 2 ++
 lib/atf/libatf-c/tests/detail/Makefile   | 2 ++
 lib/atf/tests/Makefile                   | 3 +++
 libexec/atf/Makefile.inc                 | 2 +-
 libexec/atf/atf-check/tests/Makefile     | 2 ++
 libexec/atf/tests/Makefile               | 3 +++
 9 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/lib/atf/Makefile.inc b/lib/atf/Makefile.inc
index bebed0280596..af176036f136 100644
--- a/lib/atf/Makefile.inc
+++ b/lib/atf/Makefile.inc
@@ -24,7 +24,7 @@
 # SUCH DAMAGE.
 #
 
-PACKAGE=	atf
+PACKAGE?=	atf
 LIB_PACKAGE=
 CFLAGS+=	-DHAVE_CONFIG_H
 
diff --git a/lib/atf/libatf-c++/tests/Makefile b/lib/atf/libatf-c++/tests/Makefile
index 839c6902d6b1..dc052c19df67 100644
--- a/lib/atf/libatf-c++/tests/Makefile
+++ b/lib/atf/libatf-c++/tests/Makefile
@@ -1,5 +1,7 @@
 .include <bsd.init.mk>
 
+PACKAGE=	tests
+
 TESTS_SUBDIRS=	detail
 
 ATF=		${SRCTOP}/contrib/atf
diff --git a/lib/atf/libatf-c++/tests/detail/Makefile b/lib/atf/libatf-c++/tests/detail/Makefile
index 4b95f8dbd663..55cefe524068 100644
--- a/lib/atf/libatf-c++/tests/detail/Makefile
+++ b/lib/atf/libatf-c++/tests/detail/Makefile
@@ -1,5 +1,7 @@
 .include <bsd.init.mk>
 
+PACKAGE=	tests
+
 TESTSDIR=	${TESTSBASE}/lib/atf/libatf-c++/detail
 
 ATF=		${SRCTOP}/contrib/atf
diff --git a/lib/atf/libatf-c/tests/Makefile b/lib/atf/libatf-c/tests/Makefile
index 5647e7b9fcbe..c81c18a91f00 100644
--- a/lib/atf/libatf-c/tests/Makefile
+++ b/lib/atf/libatf-c/tests/Makefile
@@ -1,5 +1,7 @@
 .include <bsd.init.mk>
 
+PACKAGE=	tests
+
 TESTS_SUBDIRS=	detail
 
 ATF=		${SRCTOP}/contrib/atf
diff --git a/lib/atf/libatf-c/tests/detail/Makefile b/lib/atf/libatf-c/tests/detail/Makefile
index 5123f6f4d796..3fa2919b98b9 100644
--- a/lib/atf/libatf-c/tests/detail/Makefile
+++ b/lib/atf/libatf-c/tests/detail/Makefile
@@ -1,5 +1,7 @@
 .include <bsd.init.mk>
 
+PACKAGE=	tests
+
 TESTSDIR=	${TESTSBASE}/lib/atf/libatf-c/detail
 
 ATF=		${SRCTOP}/contrib/atf
diff --git a/lib/atf/tests/Makefile b/lib/atf/tests/Makefile
index 500ff0f20c3b..2609bb593d57 100644
--- a/lib/atf/tests/Makefile
+++ b/lib/atf/tests/Makefile
@@ -1,4 +1,7 @@
 .PATH:		${SRCTOP}/tests
+
+PACKAGE=	tests
+
 KYUAFILE=	yes
 
 SUBDIR=		test-programs
diff --git a/libexec/atf/Makefile.inc b/libexec/atf/Makefile.inc
index e40827fa0b69..5fd06c35cd09 100644
--- a/libexec/atf/Makefile.inc
+++ b/libexec/atf/Makefile.inc
@@ -24,7 +24,7 @@
 # SUCH DAMAGE.
 #
 
-PACKAGE=	atf
+PACKAGE?=	atf
 LIB_PACKAGE=
 CFLAGS+=	-DHAVE_CONFIG_H
 
diff --git a/libexec/atf/atf-check/tests/Makefile b/libexec/atf/atf-check/tests/Makefile
index e98f82d941cd..6e21e4ede211 100644
--- a/libexec/atf/atf-check/tests/Makefile
+++ b/libexec/atf/atf-check/tests/Makefile
@@ -1,6 +1,8 @@
 ATF=		${SRCTOP}/contrib/atf
 .PATH:		${ATF}/atf-sh
 
+PACKAGE=	tests
+
 ATF_TESTS_SH=	atf-check_test
 
 .include <bsd.test.mk>
diff --git a/libexec/atf/tests/Makefile b/libexec/atf/tests/Makefile
index 29b1b564beca..ad9431e75a63 100644
--- a/libexec/atf/tests/Makefile
+++ b/libexec/atf/tests/Makefile
@@ -1,4 +1,7 @@
 .PATH:		${SRCTOP}/tests
+
+PACKAGE=	tests
+
 KYUAFILE=	yes
 
 .include <bsd.test.mk>