Skip to content

Commit

Permalink
test code
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuhammedrafi committed Aug 28, 2024
1 parent abf2cc9 commit 7302641
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions Tests/l1networkmanager.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ message("Building for unit tests...")

message("Generating empty headers to suppress compiler errors")

file(GLOB BASEDIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(BASEDIR ${BASEDIR}/headers)
set(BASEDIR "${CMAKE_CURRENT_SOURCE_DIR}/headers")
set(EMPTY_HEADERS_DIRS
${BASEDIR}
${BASEDIR}/rdk/iarmbus
${BASEDIR}/network
)
${BASEDIR}
${BASEDIR}/rdk/iarmbus
${BASEDIR}/network
)

set(EMPTY_HEADERS
${BASEDIR}/rdk/iarmbus/libIARM.h
${BASEDIR}/rdk/iarmbus/libIBus.h
${BASEDIR}/rdk/iarmbus/libIBusDaemon.h
${BASEDIR}/network/wifiSrvMgrIarmIf.h
${BASEDIR}/network/netsrvmgrIarm.h
)
${BASEDIR}/rdk/iarmbus/libIARM.h
${BASEDIR}/rdk/iarmbus/libIBus.h
${BASEDIR}/rdk/iarmbus/libIBusDaemon.h
${BASEDIR}/network/wifiSrvMgrIarmIf.h
${BASEDIR}/network/netsrvmgrIarm.h
)

file(MAKE_DIRECTORY ${EMPTY_HEADERS_DIRS})

Expand All @@ -33,10 +32,10 @@ include_directories(${EMPTY_HEADERS_DIRS})

message("Adding compiler and linker options for all targets")

file(GLOB BASEDIR "${CMAKE_CURRENT_SOURCE_DIR}/Test/mocks")
set(MOCK_DIR "${CMAKE_CURRENT_SOURCE_DIR}/mocks")
set(FAKE_HEADERS
${BASEDIR}/Iarm.h
)
${MOCK_DIR}/Iarm.h
)

foreach (file ${FAKE_HEADERS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include ${file}")
Expand Down

0 comments on commit 7302641

Please sign in to comment.