From 81b8348d4d290148d06841cce16a7e96e1c373e9 Mon Sep 17 00:00:00 2001 From: Soren Ptak Date: Thu, 4 Apr 2024 22:12:05 -0700 Subject: [PATCH] Update the unit test variable name to match other FreeRTOS Repos. (#52) --- .github/workflows/ci.yml | 2 +- test/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb303e3..bbd870d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index bda37f7..8ea177d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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 ) @@ -62,7 +62,7 @@ endif() # ==================================== Unit Test Configuration ==================================== -if(${BUILD_UNIT_TESTS}) +if(${UNITTEST}) # Include Unity build configuration. include( unit-test/unity_build.cmake )