Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuhammedrafi committed Sep 24, 2024
1 parent fed718f commit 0e70e74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rdk_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ jobs:
-DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}"
-DCMAKE_INSTALL_PREFIX="${{github.workspace}}/install/usr"
-DCMAKE_MODULE_PATH="${{github.workspace}}/install/tools/cmake"
-DENABLE_NETWORKMANAGER_UNIT_TEST=ON
-DCMAKE_CXX_FLAGS="
-I ${{github.workspace}}/networkmanager/Tests/headers
-I ${{github.workspace}}/networkmanager/Tests/headers/rdk/iarmbus
Expand All @@ -149,7 +150,6 @@ jobs:
-include ${{github.workspace}}/networkmanager/Tests/headers/rdk/iarmbus/libIBus.h
-I ${{github.workspace}}/networkmanager/Tests/mocks/Iarm.h
"
-DENABLE_NETWORKMANAGER_UNIT_TEST=ON
&&
cmake --build build/RDKNetworkmanager -j16
&&
Expand Down
4 changes: 1 addition & 3 deletions cmake/UnitTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ set(BASEDIR ${BASEDIR}/headers)
set(EMPTY_HEADERS_DIRS
${BASEDIR}
${BASEDIR}/rdk/iarmbus
${BASEDIR}/network
)

set(EMPTY_HEADERS
Expand Down Expand Up @@ -36,11 +35,10 @@ set(FAKE_HEADERS
)

foreach (file ${FAKE_HEADERS})
message("toucing files ")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include ${file}")
endforeach ()

add_compile_options(-Wall -Werror)

add_link_options(-Wl,-wrap,system -Wl,-wrap,popen -Wl,-wrap,syslog -Wl,-wrap,pclose -Wl,-wrap,getmntent -Wl,-wrap,setmntent -Wl,-wrap,v_secure_popen -Wl,-wrap,v_secure_pclose -Wl,-wrap,v_secure_system)

message("Setting build options")
Expand Down

0 comments on commit 0e70e74

Please sign in to comment.