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:
Oliver Hamlet
2016-03-24 11:53:30 +00:00
parent b03f0e493c
commit 5db35de967
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -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
View File
@@ -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"