Skip to content

Commit 81b8348

Browse files
authored
Update the unit test variable name to match other FreeRTOS Repos. (#52)
1 parent 0b4f992 commit 81b8348

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
cmake -S test -B build/ \
1818
-G "Unix Makefiles" \
1919
-DCMAKE_BUILD_TYPE=Debug \
20-
-DBUILD_UNIT_TESTS=ON \
20+
-DUNITTEST=ON \
2121
-DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror'
2222
make -C build/ all
2323
- name: Test

test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ set( UNIT_TEST_DIR ${MODULE_ROOT_DIR}/test/unit-test CACHE INTERNAL "backoffAlgo
2222
set( UNITY_DIR ${UNIT_TEST_DIR}/Unity CACHE INTERNAL "Unity library source directory." )
2323

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

@@ -62,7 +62,7 @@ endif()
6262

6363
# ==================================== Unit Test Configuration ====================================
6464

65-
if(${BUILD_UNIT_TESTS})
65+
if(${UNITTEST})
6666

6767
# Include Unity build configuration.
6868
include( unit-test/unity_build.cmake )

0 commit comments

Comments
 (0)