mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-10-30 01:42:22 +00:00
Added Network Buffer Size CI Check.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -54,6 +54,11 @@ jobs:
|
|||||||
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.ndpid_zlib, '-DENABLE_ZLIB=ON')
|
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.ndpid_zlib, '-DENABLE_ZLIB=ON')
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install zlib1g-dev
|
sudo apt-get install zlib1g-dev
|
||||||
|
- name: Checking Network Buffer Size
|
||||||
|
run: |
|
||||||
|
C_VAL=$(cat config.h | sed -n 's/^#define\s\+NETWORK_BUFFER_MAX_SIZE\s\+\([0-9]\+\).*$/\1/gp')
|
||||||
|
PY_VAL=$(cat dependencies/nDPIsrvd.py | sed -n 's/^NETWORK_BUFFER_MAX_SIZE = \([0-9]\+\).*$/\1/gp')
|
||||||
|
test ${C_VAL} = ${PY_VAL}
|
||||||
- name: Configure nDPId
|
- name: Configure nDPId
|
||||||
run: |
|
run: |
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ after_script:
|
|||||||
|
|
||||||
build_and_test:
|
build_and_test:
|
||||||
script:
|
script:
|
||||||
|
- C_VAL=$(cat config.h | sed -n 's/^#define\s\+NETWORK_BUFFER_MAX_SIZE\s\+\([0-9]\+\).*$/\1/gp')
|
||||||
|
- PY_VAL=$(cat dependencies/nDPIsrvd.py | sed -n 's/^NETWORK_BUFFER_MAX_SIZE = \([0-9]\+\).*$/\1/gp')
|
||||||
|
- test ${C_VAL} = ${PY_VAL}
|
||||||
# static linked build
|
# static linked build
|
||||||
- mkdir build-cmake-submodule
|
- mkdir build-cmake-submodule
|
||||||
- cd build-cmake-submodule
|
- cd build-cmake-submodule
|
||||||
|
|||||||
Reference in New Issue
Block a user