Skip to content

Commit

Permalink
Update the unit test variable name to match other FreeRTOS Repos. (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skptak committed Apr 5, 2024
1 parent 0b4f992 commit 81b8348
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
cmake -S test -B build/ \
-G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_UNIT_TESTS=ON \
-DUNITTEST=ON \
-DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror'
make -C build/ all
- name: Test
Expand Down
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ set( UNIT_TEST_DIR ${MODULE_ROOT_DIR}/test/unit-test CACHE INTERNAL "backoffAlgo
set( UNITY_DIR ${UNIT_TEST_DIR}/Unity CACHE INTERNAL "Unity library source directory." )

# Configure options to always show in CMake GUI.
option( BUILD_UNIT_TESTS
option( UNITTEST
"Set this to ON to build unit tests. This will clone the required Unity test framework submodule if it is not cloned already."
OFF )

Expand Down Expand Up @@ -62,7 +62,7 @@ endif()

# ==================================== Unit Test Configuration ====================================

if(${BUILD_UNIT_TESTS})
if(${UNITTEST})

# Include Unity build configuration.
include( unit-test/unity_build.cmake )
Expand Down

0 comments on commit 81b8348

Please sign in to comment.