Skip to content

Commit

Permalink
ci: enable asan in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Sep 20, 2024
1 parent f85cd46 commit 358a856
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ jobs:
- name: Run unit tests
run: |
cmake -S . -B build -DUA2F_BUILD_TESTS=OFF -DUA2F_ENABLE_UCI=OFF
cmake -S . -B build -DUA2F_BUILD_TESTS=OFF -DUA2F_ENABLE_UCI=OFF -DUA2F_ENABLE_ASAN=ON
cmake --build build
./build/ua2f --version
sudo python scripts/test.py ./build/ua2f
Expand Down
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ if (DEFINED ENV{UA2F_ENABLE_ASAN})
set(UA2F_ENABLE_ASAN $ENV{UA2F_ENABLE_ASAN})
message(STATUS "UA2F_ENABLE_ASAN set from environment: ${UA2F_ENABLE_ASAN}")
else ()
set(UA2F_ENABLE_ASAN OFF)
message(STATUS "UA2F_ENABLE_ASAN not set in environment, using default: OFF")
message(STATUS "UA2F_ENABLE_ASAN not set in environment")
endif ()

if (UA2F_ENABLE_ASAN)
Expand Down

0 comments on commit 358a856

Please sign in to comment.