aboutsummaryrefslogtreecommitdiffstats
path: root/tests/2-nodes-hicn-light.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/2-nodes-hicn-light.yml')
-rw-r--r--tests/2-nodes-hicn-light.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/2-nodes-hicn-light.yml b/tests/2-nodes-hicn-light.yml
new file mode 100644
index 000000000..849432464
--- /dev/null
+++ b/tests/2-nodes-hicn-light.yml
@@ -0,0 +1,53 @@
+version: "3"
+services:
+ client:
+ container_name: ${TEST_LIGHT}-client
+ command:
+ - |
+ if [ -d /workspace/build-dev ]; then
+ sudo ninja -C /workspace/build-dev install
+ fi
+
+ tee -a /tmp/hicn-light.conf <<EOF
+ add listener udp local0 ${TOPOLOGY_2_NODES_IP_ADDRESS_CLIENT} 9199 eth0
+ add connection udp conn0 ${TOPOLOGY_2_NODES_IP_ADDRESS_CLIENT} 9199 ${TOPOLOGY_2_NODES_IP_ADDRESS_SERVER} 9199
+ add route conn0 b002::/64 1
+ EOF
+
+ rm -f ${FORWARDER_LOG_PATH}
+
+ sudo hicn-light-daemon \
+ --daemon \
+ --log-file ${FORWARDER_LOG_PATH} \
+ --config /tmp/hicn-light.conf
+
+ tail -f /dev/null
+
+ server:
+ container_name: ${TEST_LIGHT}-server
+ command:
+ - |
+ if [ -d /workspace/build-dev ]; then
+ sudo ninja -C /workspace/build-dev install
+ fi
+
+ tee -a /tmp/hicn-light.conf <<EOF
+ add listener udp local0 ${TOPOLOGY_2_NODES_IP_ADDRESS_SERVER} 9199 eth0
+ add connection udp conn0 ${TOPOLOGY_2_NODES_IP_ADDRESS_SERVER} 9199 ${TOPOLOGY_2_NODES_IP_ADDRESS_CLIENT} 9199
+ EOF
+
+ rm -f ${FORWARDER_LOG_PATH}
+
+ sudo hicn-light-daemon \
+ --daemon \
+ --log-file ${FORWARDER_LOG_PATH} \
+ --config /tmp/hicn-light.conf --capacity 0
+
+ sleep 4
+
+ hiperf -q -z hicnlight_module -S -R -B 4000kbps ${RTC_PRODUCER} -P 2 -k ${HMAC_KEY} &
+ hiperf -q -z hicnlight_module -S ${RAAQM_PRODUCER}/128 &
+ hiperf -q -z hicnlight_module -S ${RAAQM_PRODUCER_NEW}/128 &
+ hicn-ping-server -z hicnlight_module -s 0 -n ${PING_PRODUCER}/128 &
+
+ tail -f /dev/null