From 65779c2d95becdffefbe944177f9d5557fdb76d4 Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Tue, 23 Apr 2024 10:41:04 +0200 Subject: [PATCH] test: filter packets on raweth test --- CMakeLists.txt | 2 +- tests/raweth.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b7b5eede..6702932fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -133,7 +133,7 @@ set(Z_FEATURE_QUERY 1 CACHE STRING "Toggle query feature") set(Z_FEATURE_QUERYABLE 1 CACHE STRING "Toggle queryable feature") set(Z_FEATURE_RAWETH_TRANSPORT 0 CACHE STRING "Toggle raw ethernet transport feature") set(Z_FEATURE_ATTACHMENT 1 CACHE STRING "Toggle attachment feature") -set(Z_FEATURE_INTEREST 1 CACHE STRING "Toggle interest feature") # Toggle to 1 when protocol changes are merged +set(Z_FEATURE_INTEREST 1 CACHE STRING "Toggle interest feature") add_definition(Z_FEATURE_MULTI_THREAD=${Z_FEATURE_MULTI_THREAD}) add_definition(Z_FEATURE_PUBLICATION=${Z_FEATURE_PUBLICATION}) add_definition(Z_FEATURE_SUBSCRIPTION=${Z_FEATURE_SUBSCRIPTION}) diff --git a/tests/raweth.py b/tests/raweth.py index cd2768f7d..c70231c2d 100644 --- a/tests/raweth.py +++ b/tests/raweth.py @@ -57,7 +57,9 @@ def pub_and_sub(args): print("Start subscriber") # Start z_sub in the background - z_sub_command = f"sudo stdbuf -oL -eL ./{DIR_EXAMPLES}/z_sub -n 10 -m \"peer\" -l \"reth/0\"s" + z_sub_command = f"sudo stdbuf -oL -eL ./{DIR_EXAMPLES}/z_sub -n 10 -m \"peer\" -l \ + \"reth/30:03:8c:c8:00:a2#iface=lo;whitelist=30:03:8c:c8:00:a1,\"s" + z_sub_process = subprocess.Popen(z_sub_command, shell=True, stdin=subprocess.PIPE, @@ -70,7 +72,8 @@ def pub_and_sub(args): print("Start publisher") # Start z_pub - z_pub_command = f"sudo stdbuf -oL -eL ./{DIR_EXAMPLES}/z_pub -n 10 -m \"peer\" -l \"reth/0\"s" + z_pub_command = f"sudo stdbuf -oL -eL ./{DIR_EXAMPLES}/z_pub -n 10 -m \"peer\" -l \ + \"reth/30:03:8c:c8:00:a1#iface=lo;whitelist=30:03:8c:c8:00:a2,\"s" z_pub_process = subprocess.Popen(z_pub_command, shell=True, stdin=subprocess.PIPE,