mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 23:33:04 +01:00
Fix tests for new source layout
This commit is contained in:
committed by
Ted John
parent
a2e3f10ca1
commit
0d88276abe
@@ -57,7 +57,12 @@ set(GTEST_LIBRARIES gtest gtest_main pthread)
|
||||
|
||||
# sawyercoding test
|
||||
|
||||
set(SAWYERCODING_TEST_SOURCES "sawyercoding_test.cpp" "../../src/diagnostic.c" "../../src/util/sawyercoding.c" "../../src/localisation/utf8.c")
|
||||
set(SAWYERCODING_TEST_SOURCES
|
||||
"sawyercoding_test.cpp"
|
||||
"../../src/openrct2/diagnostic.c"
|
||||
"../../src/openrct2/util/sawyercoding.c"
|
||||
"../../src/openrct2/localisation/utf8.c"
|
||||
)
|
||||
add_executable(test_sawyercoding ${SAWYERCODING_TEST_SOURCES})
|
||||
target_link_libraries(test_sawyercoding ${GTEST_LIBRARIES})
|
||||
add_test(NAME sawyercoding COMMAND test_sawyercoding)
|
||||
@@ -65,15 +70,15 @@ add_test(NAME sawyercoding COMMAND test_sawyercoding)
|
||||
# LanguagePack test
|
||||
set(LANGUAGEPACK_TEST_SOURCES
|
||||
"LanguagePackTest.cpp"
|
||||
"../../src/localisation/LanguagePack.cpp"
|
||||
"../../src/core/Console.cpp"
|
||||
"../../src/core/Diagnostics.cpp"
|
||||
"../../src/core/Guard.cpp"
|
||||
"../../src/core/String.cpp"
|
||||
"../../src/diagnostic.c"
|
||||
"../../src/localisation/format_codes.c"
|
||||
"../../src/localisation/utf8.c"
|
||||
"../../src/util/util.c"
|
||||
"../../src/openrct2/localisation/LanguagePack.cpp"
|
||||
"../../src/openrct2/core/Console.cpp"
|
||||
"../../src/openrct2/core/Diagnostics.cpp"
|
||||
"../../src/openrct2/core/Guard.cpp"
|
||||
"../../src/openrct2/core/String.cpp"
|
||||
"../../src/openrct2/diagnostic.c"
|
||||
"../../src/openrct2/localisation/format_codes.c"
|
||||
"../../src/openrct2/localisation/utf8.c"
|
||||
"../../src/openrct2/util/util.c"
|
||||
)
|
||||
add_executable(test_languagepack ${LANGUAGEPACK_TEST_SOURCES})
|
||||
target_link_libraries(test_languagepack ${GTEST_LIBRARIES} dl z SDL2 SDL2_ttf ssl crypto)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "localisation/LanguagePack.h"
|
||||
#include "localisation/string_ids.h"
|
||||
#include "openrct2/localisation/LanguagePack.h"
|
||||
#include "openrct2/localisation/string_ids.h"
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
class LanguagePackTest : public testing::Test
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include <cmath>
|
||||
|
||||
extern "C" {
|
||||
#include "util/sawyercoding.h"
|
||||
#include "openrct2/util/sawyercoding.h"
|
||||
}
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
Reference in New Issue
Block a user