fix(tests): Hoststack compatibility 31/38931/2
authorpmikus <peter.mikus@protonmail.ch>
Tue, 30 May 2023 13:46:24 +0000 (13:46 +0000)
committerpmikus <peter.mikus@protonmail.ch>
Tue, 30 May 2023 13:50:29 +0000 (13:50 +0000)
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: I198fe62ddba8910c6bd8256739cc2503b87dfc75

fdio.infra.ansible/roles/docker_images/files/base/Dockerfile
fdio.infra.ansible/roles/docker_images/templates/docker-compose-sut.yaml.j2
fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
resources/libraries/robot/hoststack/hoststack.robot

index 18cf8b3..cdb23e9 100644 (file)
@@ -30,7 +30,6 @@ RUN apt-get -q update \
         ethtool \
         gdb \
         gfortran \
-        iperf3 \
         libapr1 \
         libblas-dev \
         libffi-dev \
@@ -61,6 +60,7 @@ RUN apt-get -q update \
         screen \
         socat \
         software-properties-common \
+        strace \
         strongswan \
         ssh \
         sshpass \
index be0ffcd..d24ea02 100644 (file)
@@ -28,6 +28,15 @@ services:
       - type: "bind"
         source: "/opt/boot/"
         target: "/opt/boot/"
+      - type: "bind"
+        source: "/usr/bin/iperf3"
+        target: "/usr/bin/iperf3"
+      - type: "bind"
+        source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
+        target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
+      - type: "bind"
+        source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
+        target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
       - type: "bind"
         source: "/var/run/docker.sock"
         target: "/var/run/docker.sock"
@@ -62,6 +71,15 @@ services:
       - type: "bind"
         source: "/opt/boot/"
         target: "/opt/boot/"
+      - type: "bind"
+        source: "/usr/bin/iperf3"
+        target: "/usr/bin/iperf3"
+      - type: "bind"
+        source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
+        target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
+      - type: "bind"
+        source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
+        target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
       - type: "bind"
         source: "/var/run/docker.sock"
         target: "/var/run/docker.sock"
index 6dcbc9f..20ac905 100644 (file)
@@ -28,6 +28,15 @@ services:
       - type: "bind"
         source: "/opt/"
         target: "/opt/"
+      - type: "bind"
+        source: "/usr/bin/iperf3"
+        target: "/usr/bin/iperf3"
+      - type: "bind"
+        source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
+        target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
+      - type: "bind"
+        source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
+        target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
       - type: "bind"
         source: "/usr/lib/firmware/"
         target: "/usr/lib/firmware/"
@@ -59,6 +68,15 @@ services:
       - type: "bind"
         source: "/opt/"
         target: "/opt/"
+      - type: "bind"
+        source: "/usr/bin/iperf3"
+        target: "/usr/bin/iperf3"
+      - type: "bind"
+        source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
+        target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
+      - type: "bind"
+        source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
+        target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
       - type: "bind"
         source: "/usr/lib/firmware/"
         target: "/usr/lib/firmware/"
index 9dd3987..9c6e07e 100644 (file)
 | | | ... | ${vpp_hoststack_attr}[sess_lendpt_mem]
 | | END
 | | Apply startup configuration on all VPP DUTs
+| | Initialize layer driver | ${nic_driver}
+| | Initialize layer interface
 
 | Get Test Results From Hoststack VPP Echo Test
 | | [Documentation]