Skip to content

Commit

Permalink
file test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuhammedrafi committed Oct 23, 2024
1 parent 875adb2 commit 03e8c7c
Show file tree
Hide file tree
Showing 12 changed files with 635 additions and 378 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,4 @@ 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/raspberrypi/rpiTest.cmake)
include(Tests/raspberrypi/NetworkManagerGdbusTest.cmake)
323 changes: 0 additions & 323 deletions GnomeProxy/NetworkManagerGnomeEvent.cpp

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
message("building rpi test build")
# Define the project
set(RPI_TEST "rpiTest")
set(RPI_TEST "NetworkManagerGdbusTest")

# Required packages
find_package(PkgConfig REQUIRED)
Expand All @@ -10,11 +10,12 @@ pkg_check_modules(LIBNM REQUIRED libnm)

# Create the executable target
add_executable(${RPI_TEST}
Tests/raspberrypi/rpiUnitTest.cpp
Tests/raspberrypi/NetworkManagerGdbusTest.cpp
NetworkManagerLogger.cpp
GnomeProxy/NetworkManagerGnomeClient.cpp
GnomeProxy/NetworkManagerGnomeUtils.cpp
GnomeProxy/NetworkManagerDbusMgr.cpp
gdbus/NetworkManagerGdbusClient.cpp
gdbus/NetworkManagerGdbusUtils.cpp
gdbus/NetworkManagerGdbusMgr.cpp
gdbus/NetworkManagerGdbusEvent.cpp
)

# Set target properties for C++ standard
Expand All @@ -27,7 +28,7 @@ set_target_properties(${RPI_TEST} PROPERTIES
target_compile_options(${RPI_TEST} PRIVATE -Wall -include ${CMAKE_SOURCE_DIR}/INetworkManager.h)

target_include_directories(${RPI_TEST} PRIVATE ${GLIB_INCLUDE_DIRS} ${LIBNM_INCLUDE_DIRS} ${GIO_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR})
target_include_directories(${RPI_TEST} PRIVATE GnomeProxy)
target_include_directories(${RPI_TEST} PRIVATE gdbus)
# Link libraries to the target
target_link_libraries(${RPI_TEST} ${NAMESPACE}Core::${NAMESPACE}Core ${GLIB_LIBRARIES} ${GIO_LIBRARIES} uuid)

Expand Down
Loading

0 comments on commit 03e8c7c

Please sign in to comment.