From d81ca8fcd1c5be1299c5eb3b02dead3032f8739c Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Wed, 7 Jun 2023 10:14:55 +0200 Subject: [PATCH] test: Add qeneth topology for running tests in VMs --- test/virt/.gitignore | 2 ++ test/virt/dual/topology.dot.in | 38 ++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 test/virt/.gitignore create mode 100644 test/virt/dual/topology.dot.in diff --git a/test/virt/.gitignore b/test/virt/.gitignore new file mode 100644 index 00000000..5a23885a --- /dev/null +++ b/test/virt/.gitignore @@ -0,0 +1,2 @@ +/*/* +!/*/topology.dot.in diff --git a/test/virt/dual/topology.dot.in b/test/virt/dual/topology.dot.in new file mode 100644 index 00000000..7079cfed --- /dev/null +++ b/test/virt/dual/topology.dot.in @@ -0,0 +1,38 @@ +graph "dual" { + layout="neato"; + overlap="false"; + splines="true"; + esep="+20"; + + node [shape=record, fontname="monospace"]; + edge [color="cornflowerblue", penwidth="2"]; + + qn_template="infix-x86_64"; + qn_append="quiet"; + + host [ + label="host | { d1a | d1b | d2a | d2b }", + color="grey",fontcolor="grey",pos="0,15!", + kind="controller", + ]; + + dut1 [ + label="{ eth0 | eth1 } | dut1 | { eth2 | eth3 }", + pos="10,18!", + kind="infix", + ]; + dut2 [ + label="{ eth0 | eth1 } | dut2 | { eth2 | eth3 }", + pos="10,12!", + kind="infix", + ]; + + host:d1a -- dut1:eth0 + host:d1b -- dut1:eth1 + + host:d2a -- dut2:eth0 + host:d2b -- dut2:eth1 + + dut1:eth2 -- dut2:eth3 + dut2:eth2 -- dut1:eth3 +}