LibLocale: Move locale test files to the LibLocale folder

This commit is contained in:
Timothy Flynn 2022-09-02 12:59:34 -04:00 committed by Tim Flynn
parent 43a3471298
commit b2d2bb43ce
6 changed files with 14 additions and 3 deletions

View file

@ -727,7 +727,8 @@ if (BUILD_LAGOM)
# Unicode
file(GLOB LIBUNICODE_TEST_SOURCES CONFIGURE_DEPENDS "../../Tests/LibUnicode/*.cpp")
foreach(source ${LIBUNICODE_TEST_SOURCES})
file(GLOB LIBLOCALE_TEST_SOURCES CONFIGURE_DEPENDS "../../Tests/LibLocale/*.cpp")
foreach(source ${LIBUNICODE_TEST_SOURCES} ${LIBLOCALE_TEST_SOURCES})
lagom_test(${source} LIBS LibUnicode)
endforeach()

View file

@ -11,6 +11,7 @@ add_subdirectory(LibGfx)
add_subdirectory(LibGL)
add_subdirectory(LibIMAP)
add_subdirectory(LibJS)
add_subdirectory(LibLocale)
add_subdirectory(LibM)
add_subdirectory(LibMarkdown)
add_subdirectory(LibPDF)

View file

@ -0,0 +1,11 @@
set(TEST_SOURCES
TestDateTimeFormat.cpp
TestLocale.cpp
)
foreach(source IN LISTS TEST_SOURCES)
serenity_test("${source}" LibLocale LIBS LibUnicode)
get_filename_component(target "${source}" NAME_WLE)
link_with_locale_data("${target}")
endforeach()

View file

@ -1,7 +1,5 @@
set(TEST_SOURCES
TestUnicodeCharacterTypes.cpp
TestUnicodeDateTimeFormat.cpp
TestUnicodeLocale.cpp
)
foreach(source IN LISTS TEST_SOURCES)