mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Improve Version tests
This also updates the DLL version extraction test to use the new
API DLL name introduced in 939ca1f1dd.
This commit is contained in:
+1
-1
@@ -242,7 +242,7 @@ set (LOOT_TESTS_HEADERS "${CMAKE_SOURCE_DIR}/src/tests/base_game_test.h"
|
||||
"${CMAKE_SOURCE_DIR}/src/tests/backend/helpers/git_helper_test.h"
|
||||
"${CMAKE_SOURCE_DIR}/src/tests/backend/helpers/helpers_test.h"
|
||||
"${CMAKE_SOURCE_DIR}/src/tests/backend/helpers/language_test.h"
|
||||
"${CMAKE_SOURCE_DIR}/src/tests/backend/helpers/test_version.h"
|
||||
"${CMAKE_SOURCE_DIR}/src/tests/backend/helpers/version_test.h"
|
||||
"${CMAKE_SOURCE_DIR}/src/tests/backend/helpers/test_yaml_set_helpers.h"
|
||||
"${CMAKE_SOURCE_DIR}/src/tests/backend/metadata/test_condition_grammar.h"
|
||||
"${CMAKE_SOURCE_DIR}/src/tests/backend/metadata/test_conditional_metadata.h"
|
||||
|
||||
@@ -27,14 +27,15 @@ along with LOOT. If not, see
|
||||
|
||||
#include "backend/globals.h"
|
||||
#include "backend/helpers/version.h"
|
||||
#include "tests/fixtures.h"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
namespace loot {
|
||||
namespace test {
|
||||
#ifdef _WIN32
|
||||
TEST(Version, shouldExtractVersionFromApiDll) {
|
||||
// Use the API DLL built.
|
||||
Version version(boost::filesystem::path("loot32.dll"));
|
||||
Version version(boost::filesystem::path("loot_api.dll"));
|
||||
std::string expected(
|
||||
std::to_string(g_version_major) + "." +
|
||||
std::to_string(g_version_minor) + "." +
|
||||
+1
-1
@@ -48,7 +48,7 @@
|
||||
#include "backend/helpers/git_helper_test.h"
|
||||
#include "backend/helpers/helpers_test.h"
|
||||
#include "backend/helpers/language_test.h"
|
||||
#include "backend/helpers/test_version.h"
|
||||
#include "backend/helpers/version_test.h"
|
||||
#include "backend/helpers/test_yaml_set_helpers.h"
|
||||
#include "backend/metadata/test_condition_grammar.h"
|
||||
#include "backend/metadata/test_conditional_metadata.h"
|
||||
|
||||
Reference in New Issue
Block a user