ci: add 'build fastnetmon explicit features' step
All checks were successful
continuous-integration/drone/push Build is passing

* run cmake (with '--clean-first' on fedora)
* build fnm with features explicitly enabled, without '-Werror'
* run ldd on the artifacts after the fact
* fix plugin_runner error
This commit is contained in:
surtur 2021-05-06 22:51:47 +02:00
parent 9af9b006ba
commit c23b1642a6
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 39 additions and 1 deletions

View File

@ -96,6 +96,24 @@ steps:
- ldd src/fastnetmon_client
depends_on: [build fastnetmon]
- name: build fastnetmon explicit features
pull: if-not-exists
image: immawanderer/archlinux-cdev:latest
volumes:
- name: usrcache
path: /usr
commands:
- export MAKEFLAGS="$MAKEFLAGS -j$(nproc)"
- cd src
- cmake -D"USE_NEW_ATOMIC_BUILTINS=ON" -D"ENABLE_AFPACKET_SUPPORT=ON" -D"ENABLE_GOBGP_SUPPORT=ON" -D"BUILD_PLUGIN_RUNNER=ON" -D"BUILD_TESTS=OFF" -DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS -Wall -Wextra" .
- make clean fastnetmon all
- ldd fastnetmon
- ldd fastnetmon_api_client
- ldd fastnetmon_client
when:
status: [success, failure]
depends_on: [build fastnetmon]
volumes:
- name: usrcache
temp: {}
@ -181,6 +199,26 @@ steps:
- ldd src/fastnetmon_client
depends_on: [build fastnetmon]
- name: build fastnetmon explicit features
pull: if-not-exists
image: fedora:34
volumes:
- name: etc
path: /etc
- name: usrcache
path: /usr
commands:
- export MAKEFLAGS="$MAKEFLAGS -j$(nproc)"
- cd src
- cmake -D"USE_NEW_ATOMIC_BUILTINS=ON" -D"ENABLE_AFPACKET_SUPPORT=ON" -D"ENABLE_GOBGP_SUPPORT=ON" -D"BUILD_PLUGIN_RUNNER=ON" -D"BUILD_TESTS=OFF" -DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS -Wall -Wextra" --clean-first .
- make clean fastnetmon all
- ldd fastnetmon
- ldd fastnetmon_api_client
- ldd fastnetmon_client
when:
status: [success, failure]
depends_on: [build fastnetmon]
volumes:
- name: usrcache
temp: {}

View File

@ -69,7 +69,7 @@ void init_logging() {
logger.info("Logger initialized!");
}
void process_packet(simple_packet& current_packet) {
void process_packet(simple_packet_t& current_packet) {
std::cout << print_simple_packet(current_packet);
#ifdef DO_SUBNET_LOOKUP
unsigned long subnet = 0;