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 )