Why is /usr/tests part of binary installs/upgrades?

From: Patrick M. Hausen <hausen_at_punkt.de>
Date: Thu, 12 Jun 2025 19:32:29 UTC
Hi all,

on my large production servers in the DC I couldn't care less about
a small directory with a bunch of (for me) unnecessary files.

But on my tiny Raspberry Pi cluster at home I delete all of

- /usr/lib32
- /usr/lib/debug
- /usr/tests

to save as much as possible of that 32G of eMMC space.


I just upgraded the Pis to 14.3 and I don't understand why every

	freebsd-update upgrade -r ...
	freebsd-update install
	shutdown -r now
	freebsd-update install

first repopulates /usr/tests and then bitches about e.g.

	Installing updates...install: ///usr/tests/lib/libc/stdlib: No such file or directory
?

The man page tests(7) has a section right at the top: "Installing the test suite".

I think this should not be part of default binary installs and neither of upgrades ever.

What's the purpose on a production system?

Kind regards,
Patrick
-- 
punkt.de GmbH
Patrick M. Hausen
.infrastructure

Sophienstr. 187
76185 Karlsruhe

Tel. +49 721 9109500

https://infrastructure.punkt.de
info@punkt.de

AG Mannheim 108285
Geschäftsführer: Daniel Lienert, Fabian Stein