Skip to content

Commit e65c6cd

Browse files
authored
Merge pull request #855 from wildmeshing/mtao/update_hashes
updating repo locations
2 parents d81f349 + 3a5dd55 commit e65c6cd

File tree

18 files changed

+44
-76
lines changed

18 files changed

+44
-76
lines changed

.github/workflows/continuous.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
env:
1313
CTEST_OUTPUT_ON_FAILURE: ON
14-
CTEST_PARALLEL_LEVEL: 2
14+
CTEST_PARALLEL_LEVEL: 8
1515

1616
jobs:
1717
####################

.github/workflows/coverage.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ on:
1010

1111
env:
1212
CTEST_OUTPUT_ON_FAILURE: ON
13-
CTEST_PARALLEL_LEVEL: 2
13+
CTEST_PARALLEL_LEVEL: 8
1414

1515
jobs:
1616
Linux:
1717
name: ${{ matrix.name }}
18-
runs-on: ${{ matrix.os }}
18+
runs-on: [self-hosted,Linux]
19+
# runs-on: ${{ matrix.os }}
1920
strategy:
2021
fail-fast: false
2122
matrix:
@@ -30,12 +31,7 @@ jobs:
3031
fetch-depth: 10
3132

3233
- name: Dependencies
33-
run: |
34-
sudo apt-get update
35-
sudo apt-get -o Acquire::Retries=3 install \
36-
lcov \
37-
ccache
38-
echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV"
34+
run: echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV"
3935

4036
- name: Cache Build
4137
id: cache-build
@@ -47,7 +43,7 @@ jobs:
4743

4844
- name: Prepare ccache
4945
run: |
50-
ccache --max-size=1.0G
46+
ccache --max-size=10.0G
5147
ccache -V && ccache --show-stats && ccache --zero-stats
5248
5349
- name: Configure
@@ -60,7 +56,7 @@ jobs:
6056
-DWMTK_CODE_COVERAGE=ON
6157
6258
- name: Build
63-
run: cd build; make -j2; ccache --show-stats
59+
run: cd build; make -j8; ccache --show-stats
6460

6561
- name: Run Coverage
6662
run: |

CMakeLists.txt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ option(WMTK_ENABLE_APPLICATIONS "Enable applications (required for any applicati
4848
option(WMTK_BUILD_DOCS "Build doxygen" OFF)
4949
option (BUILD_SHARED_LIBS "Build Shared Libraries" OFF) # we globally want to disable this option due to use of TBB
5050

51+
52+
53+
5154
option(WMTK_CODE_COVERAGE "Enable coverage reporting" OFF)
5255

5356
add_library(wmtk_coverage_config INTERFACE)
@@ -167,12 +170,11 @@ if(MSVC)
167170
target_compile_definitions(wildmeshing_toolkit PUBLIC _SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS)
168171
endif()
169172

170-
if(WILDMESHING_TOOLKIT_TOPLEVEL_PROJECT)
171-
# Unit tests
172-
enable_testing()
173-
# data for unit tests
174-
set(WMTK_DATA_ROOT "${CPM_SOURCE_CACHE}/wmtk_data/" CACHE PATH "Where should the toolkit download and look for test data?")
175-
endif()
173+
174+
# git repo used for wmtk data if it is required.
175+
# use wmtk_download_data to obtain the path to the data
176+
set(WMTK_DATA_REPOSITORY https://github.com/wildmeshing/data.git CACHE STRING "Git repo for testing data" )
177+
set(WMTK_DATA_TAG 6f171d11283d2977913a1b4e6129f9808357baf9 CACHE STRING "git tag for testing data" )
176178

177179

178180
add_subdirectory(components)
@@ -205,8 +207,11 @@ if(WMTK_BUILD_DOCS)
205207
endif(DOXYGEN_FOUND)
206208
endif()
207209

210+
211+
208212
# Compile extras only if this is a top-level project
209213
if(WILDMESHING_TOOLKIT_TOPLEVEL_PROJECT)
214+
enable_testing()
210215
add_subdirectory(tests)
211216
endif()
212217
if(WMTK_ENABLE_APPLICATIONS)

applications/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ include(wmtk_add_application)
1010
include(wmtk_register_integration_test)
1111
include(wmtk_generate_test_config)
1212

13+
1314
add_subdirectory(utils)
1415

1516

applications/cdt_opt/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ wmtk::wildmeshing
1313
wmtk::output)
1414

1515
wmtk_register_integration_test(EXEC_NAME cdt_opt_app
16-
CONFIG_FILE ${CMAKE_CURRENT_SOURCE_DIR}/cdt_opt_test_config.json
17-
GIT_REPOSITORY "https://github.com/wildmeshing/data.git"
18-
GIT_TAG d1063ed50de45a1bcae9f8b6ae9b8b1d42885abe)
16+
CONFIG_FILE ${CMAKE_CURRENT_SOURCE_DIR}/cdt_opt_test_config.json)

applications/cmake/wmtk_register_integration_test.cmake

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
macro(wmtk_register_integration_test )
22

33
set(options )
4-
set(oneValueArgs EXEC_NAME CONFIG_FILE GIT_REPOSITORY GIT_TAG CONFIG_PATH EXTRA_ARGUMENTS)
4+
set(oneValueArgs EXEC_NAME CONFIG_FILE CONFIG_PATH EXTRA_ARGUMENTS)
55
set(multiValueArgs)
66
cmake_parse_arguments("" "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
77
include(CPM)
88

99

1010
MESSAGE(STATUS "Registering integration test for ${_EXEC_NAME}")
1111

12-
if(_GIT_REPOSITORY)
13-
string(MD5 REPO_HASH "${_GIT_REPOSITORY}${_GIT_TAG}")
1412

15-
include(wmtk_download_data)
16-
wmtk_download_data(DATA_DIR ${_GIT_REPOSITORY} ${_GIT_TAG})
17-
set(DATA_DIR_LINE "\"data_folder\":\"${DATA_DIR}\"," )
18-
endif()
13+
include(wmtk_download_data)
14+
wmtk_download_data()
15+
set(DATA_DIR_LINE "\"data_folder\":\"${DATA_DIR}\"," )
1916

2017
if(NOT _CONFIG_PATH)
2118
set(_CONFIG_PATH ${DATA_DIR})

applications/convert/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,5 @@ wmtk_register_integration_test(
1919
EXEC_NAME convert_app
2020
CONFIG_FILE ${CMAKE_CURRENT_SOURCE_DIR}/test_config.json
2121
CONFIG_PATH ${CMAKE_CURRENT_SOURCE_DIR}/examples
22-
GIT_REPOSITORY "https://github.com/wildmeshing/data.git"
23-
GIT_TAG 363f8e860673a4e4f68df6465b99e86809c96283
2422
#EXTRA_ARGUMENTS run
2523
)

applications/delaunay/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ wmtk::application_utils
1818
wmtk_register_integration_test(
1919
EXEC_NAME delaunay_app
2020
CONFIG_FILE ${CMAKE_CURRENT_SOURCE_DIR}/delaunay_test_config.json
21-
GIT_REPOSITORY "https://github.com/wildmeshing/data.git"
22-
GIT_TAG 152a561697a6e923451ca8535309cbe1e116a9fa)
21+
)

applications/insertion/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ wmtk::output)
1515
wmtk_register_integration_test(
1616
EXEC_NAME insertion_app
1717
CONFIG_FILE ${CMAKE_CURRENT_SOURCE_DIR}/insertion_test_config.json
18-
GIT_REPOSITORY "https://github.com/wildmeshing/data.git"
19-
GIT_TAG 3e2332c70755b4f9ad5b5ebdbbabeeb70ff20d28)
18+
)

applications/isotropic_remeshing/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,11 @@ wmtk::application_utils
4343
wmtk_register_integration_test(
4444
EXEC_NAME isotropic_remeshing_3d_app
4545
CONFIG_FILE ${CMAKE_CURRENT_SOURCE_DIR}/test_config_3d.json
46-
GIT_REPOSITORY "https://github.com/wildmeshing/data.git"
47-
GIT_TAG 152a561697a6e923451ca8535309cbe1e116a9fa
4846
CONFIG_PATH ${CMAKE_CURRENT_SOURCE_DIR}
4947
)
5048

5149
wmtk_register_integration_test(
5250
EXEC_NAME isotropic_remeshing_uv_app
5351
CONFIG_FILE ${CMAKE_CURRENT_SOURCE_DIR}/test_config_uv.json
54-
GIT_REPOSITORY "https://github.com/wildmeshing/data.git"
55-
GIT_TAG 152a561697a6e923451ca8535309cbe1e116a9fa
5652
CONFIG_PATH ${CMAKE_CURRENT_SOURCE_DIR}
5753
)

0 commit comments

Comments
 (0)