diff options
author | jmmv <jmmv@FreeBSD.org> | 2013-11-08 14:29:06 +0000 |
---|---|---|
committer | jmmv <jmmv@FreeBSD.org> | 2013-11-08 14:29:06 +0000 |
commit | 39ac592d96a91fc379d17655201b826e2da0d2e5 (patch) | |
tree | 201fabb8fb971756a725c0a9e23864b7ed66d5f4 /tests | |
parent | 86297e7ee9417b9f183807f352ce416273f5a93c (diff) | |
download | FreeBSD-src-39ac592d96a91fc379d17655201b826e2da0d2e5.zip FreeBSD-src-39ac592d96a91fc379d17655201b826e2da0d2e5.tar.gz |
Install category Kyuafiles from their category directories.
Move the installation of /usr/tests/lib/Kyuafile from src/tests/lib/
to src/lib/. This is to keep the src/tests/ hierarchy unaware of the
rest of the tree, which makes things clearer in general. In particular:
1) Everything related to the construction of /usr/tests/lib/ is kept
in src/lib/. There is no need to think about different directories
and how they relate to each other. (The same applies for libexec,
usr.bin, etc. but these are not yet handled.)
2) src/tests becomes the place to keep cross-functional test programs
and nothing else, which also helps in simplifying things.
Reviewed by: freebsd-testing
Approved by: rpaulo (mentor)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile | 3 | ||||
-rw-r--r-- | tests/README | 13 |
2 files changed, 7 insertions, 9 deletions
diff --git a/tests/Makefile b/tests/Makefile index 1e25954..88386eb 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -2,10 +2,9 @@ .include <bsd.own.mk> -TESTS_SUBDIRS= lib +SUBDIR= # still empty TESTSDIR= ${TESTSBASE} - KYUAFILE= yes .include <bsd.test.mk> diff --git a/tests/README b/tests/README index 2dfbc76..416cea7 100644 --- a/tests/README +++ b/tests/README @@ -44,13 +44,12 @@ tree-- the top-level Kyuafile does not know which subdirectories may exist upfront. Instead, such Kyuafile automatically detects, at run-time, which */Kyuafile files exist and uses those directly. -Similarly, every category subdirectory within src/tests/ provides the -same Kyuafile with auto-discovery features. For example: src/tests/lib/ -holds a generic Makefile to install test-suite related material but such -directory does not know upfront which libraries within src/lib/ will -install tests. For this reason, the Kyuafile in src/tests/lib/ has to -also use the auto-discovery features. The same applies for any other -category subdirectory (e.g. bin, usr.sbin, etc.). +Similarly, every directory in src/ that wants to install a Kyuafile to +just recurse into other subdirectories reuses this Kyuafile with +auto-discovery features. As an example, take a look at src/lib/tests/ +whose sole purpose is to install a Kyuafile into /usr/tests/lib/. +The goal in this specific case is for /usr/tests/lib/ to be generated +entirely from src/lib/. -- $FreeBSD$ |