Skip to content

Commit

Permalink
add testing for latch (read write lock)
Browse files Browse the repository at this point in the history
It includes testing for meson build and cmake build.
  • Loading branch information
janbar committed Jan 30, 2024
1 parent ab22b9f commit 219186c
Show file tree
Hide file tree
Showing 3 changed files with 505 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ osmscout_test_project(NAME ColorParse SOURCES src/ColorParse.cpp)
#---- CoordinateEncoding
osmscout_test_project(NAME CoordinateEncoding SOURCES src/CoordinateEncoding.cpp COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/data/testregion")

#---- Latch
osmscout_test_project(NAME Latch SOURCES src/Latch.cpp)

#---- LocationLookup
osmscout_test_project(NAME LocationLookupTest SOURCES src/LocationServiceTest.cpp src/SearchForLocationByStringTest.cpp src/SearchForLocationByFormTest.cpp src/SearchForPOIByFormTest.cpp TARGET OSMScout::Test OSMScout::Import)
set_source_files_properties(src/SearchForLocationByStringTest.cpp src/SearchForLocationByFormTest.cpp src/SearchForPOIByFormTest.cpp src/LocationServiceTest.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION TRUE)
Expand Down
8 changes: 8 additions & 0 deletions Tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,14 @@ HeaderCheck = executable('HeaderCheck',

test('Check use of \'<\'...\'>\' for includes', HeaderCheck, env: headerCheckEnv)

Latch = executable('Latch',
'src/Latch.cpp',
include_directories: [osmscoutIncDir],
dependencies: [mathDep, threadDep, openmpDep],
link_with: [osmscout],
install: true,
install_dir: testInstallDir)

if buildImport
LocationServiceTest = executable('LocationServiceTest',
[
Expand Down
Loading

0 comments on commit 219186c

Please sign in to comment.