From fef7fc970d73328ecf91a1299378b96826244a83 Mon Sep 17 00:00:00 2001 From: Parvathi Date: Thu, 7 Nov 2024 11:14:57 +0530 Subject: [PATCH] changes made on workflow and cmake --- .github/workflows/gnome_unit_test.yml | 1 + CMakeLists.txt | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gnome_unit_test.yml b/.github/workflows/gnome_unit_test.yml index 6934e55..85499b2 100644 --- a/.github/workflows/gnome_unit_test.yml +++ b/.github/workflows/gnome_unit_test.yml @@ -100,6 +100,7 @@ jobs: -DCMAKE_INSTALL_PREFIX="${{github.workspace}}/install/usr" -DCMAKE_MODULE_PATH="${{github.workspace}}/install/tools/cmake" -DENABLE_GNOME_NETWORKMANAGER=ON + -DENABLE_UNIT_TESTING=ON && cmake --build build/GnomeNetworkmanager --target install -j8 diff --git a/CMakeLists.txt b/CMakeLists.txt index b3fdf76..a0715c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,8 @@ set(PROJECT_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) include(CmakeHelperFunctions) option(USE_RDK_LOGGER "Enable RDK Logger for logging" OFF ) +option(ENABLE_UNIT_TESTING "Enable unit tests" ON) + string(TOLOWER ${NAMESPACE} STORAGE_DIRECTORY) get_directory_property(SEVICES_DEFINES COMPILE_DEFINITIONS) @@ -166,4 +168,8 @@ install(TARGETS ${PLUGIN_LEGACY_DEPRECATED_WIFI} DESTINATION ${CMAKE_INSTALL_PRE write_config() write_config(PLUGINS LegacyPlugin_NetworkAPIs CLASSNAME Network LOCATOR lib${PLUGIN_LEGACY_DEPRECATED_NETWORK}.so) write_config(PLUGINS LegacyPlugin_WiFiManagerAPIs CLASSNAME WiFiManager LOCATOR lib${PLUGIN_LEGACY_DEPRECATED_WIFI}.so) -include(Tests/WiFi/wifiTest.cmake) + +if(ENABLE_UNIT_TESTING) + include(Tests/WiFi/wifiTest.cmake) +endif(ENABLE_UNIT_TESTING) +