]> git.ipfire.org Git - thirdparty/libarchive.git/commit
[CMake] Automatically update `list.h` 3005/head
authorTim Kientzle <kientzle@acm.org>
Wed, 6 May 2026 03:54:12 +0000 (20:54 -0700)
committerTim Kientzle <kientzle@acm.org>
Wed, 6 May 2026 03:54:12 +0000 (20:54 -0700)
commit2f5ed45e4c2043066aafeabe414391906c407861
tree370da8a75bd7b44c121394d671e4421f02cf3ff4
parente9d68b030d3ffa40402fc0f8c7ec81c5c0543c15
[CMake] Automatically update `list.h`

`list.h` contains a list of all the tests and is generated
by grepping the test source files for `DEFINE_TEST`.
Previously, it was generated at configure time.
This meant that if you added a new test to an existing
source file, you had to manually reconfigure.

This adds the necessary dependencies so that `list.h`
is regenerated whenever any C test source changes.
This ensures that new tests are always discovered automatically.

Note:  If someone wants to update the autoconf-based
build system to do this, please send a PR.
CMakeLists.txt
build/cmake/discover_tests.cmake.in [new file with mode: 0644]
cat/test/CMakeLists.txt
cpio/test/CMakeLists.txt
libarchive/test/CMakeLists.txt
tar/test/CMakeLists.txt
unzip/test/CMakeLists.txt