From: Tim Kientzle Date: Sat, 2 May 2026 19:00:33 +0000 (-0700) Subject: Minor clarification on test discovery X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b43f61da907ee5f74ffabb0cd9550aae9b568e26;p=thirdparty%2Flibarchive.git Minor clarification on test discovery --- diff --git a/doc/WRITING_TESTS.md b/doc/WRITING_TESTS.md index 3a7704e25..61c05aecf 100644 --- a/doc/WRITING_TESTS.md +++ b/doc/WRITING_TESTS.md @@ -107,8 +107,13 @@ The basic naming convention is `test___.c` wh ### 4. Registering the Test -Adding the new files to build system is sufficient to have them built -and run with the rest of the suite: +The build system searches uses of `DEFINE_TEST` to locate tests +in the relevant sources. +You only need to add the new files to the build system +to have them built +and run with the rest of the suite. +To add them to the build systems, +you need to update two files: 1. `Makefile.am` in the root: - Add `.c` files to `libarchive_test_SOURCES`.