Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent compiling backend tests if dependencies are not installed #4973

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Prev Previous commit
Correct the dependencies checked.
- Corrected the specific dependencies to be checked before adding tests for ebpf

Signed-off-by: Parth Shitole <f20212907@goa.bits-pilani.ac.in>
  • Loading branch information
ParthShitole committed Nov 18, 2024
commit 85a7c0cffcb1266291f80c786d7e767a6657f846
4 changes: 2 additions & 2 deletions backends/ebpf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ else()
endif()

# List of executable dependencies
set(TEST_DEPENDENCY_PROGRAMS tcpdump)
set(TEST_DEPENDENCY_PROGRAMS gcc-multilib)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you checked whether this actually works? I think you need to do a different check to make sure this is installed.


# List of library dependencies
set(TEST_DEPENDENCY_LIBRARIES libpcap-dev gcc-multilib scapy)
set(TEST_DEPENDENCY_LIBRARIES python3-six libgmp-dev libjansson-dev)

CHECK_DEPENDENCIES(TEST_DEPENDENCY_PRESENT "${TEST_DEPENDENCY_PROGRAMS}" "${TEST_DEPENDENCY_LIBRARIES}")

Expand Down
Loading