summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2022-11-17 22:42:06 +0100
committerToni Uhlig <matzeton@googlemail.com>2022-11-20 22:42:06 +0100
commit77ee336cc941694b078906b7afda51dd21538450 (patch)
tree15a61fa852dbb4fe2bd3c1f70abc96d07651fd4b /.github/workflows/build.yml
parent9b7893909685828bc82eb7e943467217bec8a7c9 (diff)
Added Network Buffer Size CI Check.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f4a447f37..aebd96f22 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -54,6 +54,11 @@ jobs:
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.ndpid_zlib, '-DENABLE_ZLIB=ON')
run: |
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
run: |
mkdir build && cd build