git: e4cacb6623c4 - main - tests: move some files to the tests package

From: Lexi Winter <ivy_at_FreeBSD.org>
Date: Mon, 05 May 2025 15:39:47 UTC
The branch main has been updated by ivy:

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

commit e4cacb6623c457bba19e60d44a51aee7eae2e4d8
Author:     Lexi Winter <ivy@FreeBSD.org>
AuthorDate: 2025-05-05 15:22:51 +0000
Commit:     Lexi Winter <ivy@FreeBSD.org>
CommitDate: 2025-05-05 15:39:25 +0000

    tests: move some files to the tests package
    
    some test support libraries had escaped confinement and were found
    wandering around the utilities package:
    
            /usr/tests/lib/csu/dynamiclib/libh_csu.so
            /usr/tests/lib/libthr/dlopen/h_pthread_dlopen.so
            /usr/tests/lib/libthr/dlopen/h_pthread_dlopen.so.1
            /usr/tests/sys/vm/stack/libsoxstack.so
    
    these aren't built using bsd.test.mk, so they don't get the default
    PACKAGE=tests option; set this by hand in their Makefiles to put them
    back where they belong.
    
    Reviewed by:    manu, des, emaste
    Approved by:    des (mentor)
    Differential Revision:  https://reviews.freebsd.org/D50147
---
 lib/csu/tests/dso/Makefile           | 2 ++
 lib/libthr/tests/dlopen/dso/Makefile | 1 +
 tests/sys/vm/soxstack/Makefile       | 1 +
 3 files changed, 4 insertions(+)

diff --git a/lib/csu/tests/dso/Makefile b/lib/csu/tests/dso/Makefile
index 6c1d00e9fb58..431168de0328 100644
--- a/lib/csu/tests/dso/Makefile
+++ b/lib/csu/tests/dso/Makefile
@@ -1,4 +1,6 @@
 .PATH: ${.CURDIR:H}
+
+PACKAGE=	tests
 SHLIB=		h_csu
 SHLIB_NAME=	libh_csu.so
 SHLIB_MAJOR=	1
diff --git a/lib/libthr/tests/dlopen/dso/Makefile b/lib/libthr/tests/dlopen/dso/Makefile
index 0dac101f7186..74d8ada35ff1 100644
--- a/lib/libthr/tests/dlopen/dso/Makefile
+++ b/lib/libthr/tests/dlopen/dso/Makefile
@@ -1,6 +1,7 @@
 TESTSRC=	${SRCTOP}/contrib/netbsd-tests/lib/libpthread/dlopen/dso
 WARNS?=		3
 
+PACKAGE=	tests
 SHLIB=		h_pthread_dlopen
 SHLIB_MAJOR=    1
 SHLIB_NAME=	h_pthread_dlopen.so.${SHLIB_MAJOR}
diff --git a/tests/sys/vm/soxstack/Makefile b/tests/sys/vm/soxstack/Makefile
index bd159c2fde75..f9f3bd55b50a 100644
--- a/tests/sys/vm/soxstack/Makefile
+++ b/tests/sys/vm/soxstack/Makefile
@@ -1,3 +1,4 @@
+PACKAGE=	tests
 SHLIB=		soxstack
 SHLIB_NAME=	libsoxstack.so
 SHLIB_MAJOR=	1