20 Commits
Author SHA1 Message Date
Oliver Hamlet ca689727a1 Make some plugin tests interface tests 2025-05-01 21:48:52 +01:00
Oliver Hamlet e61171bdbe Split metadata class test files in two
So that the classes that are part of the public API get treated as interface tests, and the YAML serialisation and deserialisation are tested as internal tests.
2025-04-29 17:26:39 +01:00
Oliver Hamlet 3b47e4ac38 Set /Zc:__cplusplus when building on MSVC
This may trigger dependencies to use C++11/14/17 code paths.
2025-04-04 18:45:50 +01:00
Oliver Hamlet 0b5a8b5767 Remove YAML set helpers tests
The code they're testing no longer exists in this repo.
2025-04-04 18:44:24 +01:00
Oliver Hamlet 73fbf73bd2 Update Google Test to v1.16.0 2025-03-30 17:05:20 +01:00
Oliver Hamlet aac3f68a4c Fix running tests using ctest 2025-01-15 18:13:54 +00:00
Oliver Hamlet 7442a16706 Remove dependency on Boost's UUID and Lexical Cast libraries 2025-01-15 17:10:48 +00:00
Oliver Hamlet 183255240f Use separate fmt dependency
Instead of the library that may be bundled with spdlog, because spdlog may be distributed without a bundled fmt (e.g. in Arch Linux's repositories).

This also changes both fmt and spdlog to be built as static libraries instead of used as header-only libraries, as that's the recommended approach.
2024-09-15 12:46:45 +01:00
Oliver Hamlet 10fa75b60c Remove unnecessary rpath config 2024-09-04 19:45:21 +01:00
Oliver Hamlet 3ca8d8b179 Increase test discovery timeout
When running test discovery through Wine the executable startup is
very slow, so it can take longer than the default 5 second timeout.
2024-09-04 19:42:41 +01:00
Oliver Hamlet a9e5b3d1bb Update Google Test to 1.15.2 2024-08-24 11:12:59 +01:00
Oliver Hamlet 35bbc28dba Integrate tests with CTest 2024-08-09 19:16:01 +01:00
Oliver Hamlet e6cdbb2e71 Use Starfield plugins in Starfield tests 2024-06-28 18:38:36 +01:00
Oliver Hamlet 8a02621bb2 Recognise new Fallout 4 BA2 versions
This assumes that there are no relevant differences in how the new versions store file paths and hashes.
2024-04-29 18:02:13 +01:00
Oliver Hamlet b7f9dfef4a Tidy up setting target-specific flags 2024-04-28 15:18:03 +01:00
Oliver Hamlet 69b0cee405 Remove linking to stdc++fs on Linux
It's not been necessary since GCC 9.1 and isn't present with GCC 12.
2024-04-28 15:17:29 +01:00
Oliver Hamlet f49cb27d4c Improve handling of Boost dependency 2024-04-28 15:17:16 +01:00
Oliver Hamlet 87504b9b26 Switch yaml-cpp to FetchContent
So that an existing installed copy it can be used more easily.
2024-04-28 15:17:15 +01:00
Oliver Hamlet dd9755b26c Switch spdlog to FetchContent
So that an existing installed copy it can be used more easily.
2024-04-28 15:17:15 +01:00
Oliver Hamlet 9c17322340 Make the CMake config for tests optional
Managed using the new LIBLOOT_BUILD_TESTS config option, which defaults to ON.

Also manage the Google Test and testing-plugins dependencies using FetchContent, as it integrates more neatly with FindPackage.

This means that if you're not interested in the tests, you don't need to build them or download and build Google Test or download the testing plugins.
2024-04-28 15:17:12 +01:00