Skip to content

Commit

Permalink
merge benchmark into integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
jieli-matrix committed Jan 26, 2024
1 parent 5d35c57 commit ca35da7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 46 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/benchmark.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Build
run: |
cmake -B build -DBUILD_TESTING=ON -DENABLE_DEEPKS=ON -DENABLE_LIBXC=ON -DENABLE_LIBRI=ON -DENABLE_PAW=ON
cmake -B build -DBUILD_TESTING=ON -DENABLE_DEEPKS=ON -DENABLE_LIBXC=ON -DENABLE_LIBRI=ON -DENABLE_PAW=ON -DENABLE_GOOGLEBENCH=ON
cmake --build build -j8
cmake --install build
Expand Down
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ IF (ENABLE_GOOGLEBENCH)
set(BUILD_TESTING ON)
find_package(benchmark HINTS ${BENCHMARK_DIR})
if(NOT ${benchmark_FOUND})
set(BENCHMARK_USE_BUNDLED_GTEST OFF)
include(FetchContent)
FetchContent_Declare(
benchmark
Expand All @@ -608,11 +609,8 @@ IF (ENABLE_GOOGLEBENCH)
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
)
set(BENCHMARK_ENABLE_TESTING OFF)
FetchContent_MakeAvailable(benchmark)
set(BENCHMARK_USE_BUNDLED_GTEST OFF CACHE INTERNAL "disable benchmark bundled gtest")
set(CMAKE_BUILD_TYPE "Release" CACHE INTERNAL "build benchmark in release mode")
set(BENCHMARK_ENABLE_TESTING OFF CACHE INTERNAL "disable benchmark testing")
add_subdirectory(tests)
endif()
endif()

Expand Down

0 comments on commit ca35da7

Please sign in to comment.