]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Minor clarification on test discovery 2989/head
authorTim Kientzle <kientzle@acm.org>
Sat, 2 May 2026 19:00:33 +0000 (12:00 -0700)
committerTim Kientzle <kientzle@acm.org>
Sat, 2 May 2026 19:00:33 +0000 (12:00 -0700)
doc/WRITING_TESTS.md

index 3a7704e25c20c2217ab52b050d4b25269d26979f..61c05aecfe5f71c6e650b88d3270bd9e39c1040c 100644 (file)
@@ -107,8 +107,13 @@ The basic naming convention is `test_<functionality>_<format/API>_<detail>.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`.