Tobias Waldekranz and Joachim Wiberg
d75ecf3a1e
test/env: Improve usage message
2023-06-14 17:40:16 +02:00
Tobias Waldekranz and Joachim Wiberg
c35553b20a
test/env: Allow KVM to be explicitly disabled in the container
...
This let's us check for timing issues in tests that arise when falling
back to TCG acceleration in QEMU.
While we're here, add a proper option to see the usage message.
2023-06-14 17:40:16 +02:00
Tobias Waldekranz and Joachim Wiberg
d5b5cffa3b
test/env: Provide a wrapper for qeneth to the running topology
...
With this change, when running an interactive test session, a plain
`qeneth status` will show the status for the network started by
test/env.
2023-06-14 17:40:16 +02:00
Tobias Waldekranz and Joachim Wiberg
bc3933ad92
test/env: Accept an explicit topology in place of a qeneth network
...
For now, this is only expected to be used with `-C`, i.e. not in a
containerized environment.
2023-06-14 17:40:16 +02:00
Tobias Waldekranz and Joachim Wiberg
c76233f5ba
test/docker: Add debug tools to container
...
busybox-extras contains an implementation of telnet, which is needed
for `qeneth console` to work. While we're updating, add tcpdump since
we'll need it sooner or later.
2023-06-14 17:40:16 +02:00
Tobias Waldekranz and Joachim Wiberg
7eb2269972
test/infamy: Fix incorrect call when bailing out of MACVLAN creation
...
We're calling the bound instance of __exit__, so `self` is
superfluous.
2023-06-14 17:40:16 +02:00
Joachim Wiberg
9e5cf13522
test: debug gh action
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-06-09 11:54:23 +02:00
Joachim Wiberg
0da9606644
test: infamy: raise exception if dut mgmt ip cannot be found
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-06-09 11:54:23 +02:00
Tobias Waldekranz and Joachim Wiberg
f26bd54336
test: Add a 9PM compatible test suite to run all tests
2023-06-08 11:10:31 +02:00
Tobias Waldekranz and Joachim Wiberg
0f76b07625
test: Introduce a standardized test environment
2023-06-08 11:10:31 +02:00
Tobias Waldekranz and Joachim Wiberg
d81ca8fcd1
test: Add qeneth topology for running tests in VMs
2023-06-08 11:10:31 +02:00
Tobias Waldekranz and Joachim Wiberg
3c0afcdc08
test: Add ietf_interfaces/vlan_ping
...
Verify that we can communicate with an infix device over a stacked
VLAN interface.
2023-06-08 11:10:31 +02:00
Tobias Waldekranz and Joachim Wiberg
d82da157b6
test: Add ietf_system/hostname
2023-06-08 11:10:31 +02:00
Tobias Waldekranz and Joachim Wiberg
0fc720d48a
test/infamy: Initial add of python based test library
2023-06-08 11:10:31 +02:00
Tobias Waldekranz and Joachim Wiberg
60d2b1f105
test: Remove 9pm console lab
...
Hopefully we won't have to go down the dark path of console parsing,
but if we do, it's good to have this example in the log.
2023-06-08 11:10:31 +02:00
Richard Alpe and Joachim Wiberg
08a3f51e8f
test: add functional example of how to test CLI auth
...
This test is based on the 9pm framework, which supports execution
of test-cases written in any language. This test is written in
tcl/expect with help from the 9pm expect library. It's what I used to
test during development of the Infix basic authentication support.
The aim of this patch is to serve as an example of how the
interactiveness of the 9pm-expect library can be used.
9pm framework code is here:
https://github.com/rical/9pm
Signed-off-by: Richard Alpe <richard@bit42.se >
2023-05-16 13:34:28 +02:00