test: Group tests by mode then protocol, rather than the reverse

For example, passt/dhcp rather than dhcp/passt.  This is more
consistent with the two_guests and other test groups, and makes some
other cleanups simpler.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2022-09-13 14:35:16 +10:00 committed by Stefano Brivio
parent 4381278b7d
commit 594c2f9371
14 changed files with 32 additions and 32 deletions

View file

@ -6,7 +6,7 @@
# PASTA - Pack A Subtle Tap Abstraction # PASTA - Pack A Subtle Tap Abstraction
# for network namespace/tap device mode # for network namespace/tap device mode
# #
# test/dhcp/passt - Check DHCP and DHCPv6 functionality in passt mode # test/passt/dhcp - Check DHCP and DHCPv6 functionality in passt mode
# #
# Copyright (c) 2021 Red Hat GmbH # Copyright (c) 2021 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com> # Author: Stefano Brivio <sbrivio@redhat.com>

View file

@ -6,7 +6,7 @@
# PASTA - Pack A Subtle Tap Abstraction # PASTA - Pack A Subtle Tap Abstraction
# for network namespace/tap device mode # for network namespace/tap device mode
# #
# test/ndp/passt - Check NDP functionality in passt mode # test/passt/ndp - Check NDP functionality in passt mode
# #
# Copyright (c) 2021 Red Hat GmbH # Copyright (c) 2021 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com> # Author: Stefano Brivio <sbrivio@redhat.com>

View file

@ -6,7 +6,7 @@
# PASTA - Pack A Subtle Tap Abstraction # PASTA - Pack A Subtle Tap Abstraction
# for network namespace/tap device mode # for network namespace/tap device mode
# #
# test/shutdown/passt - Shut down passt (or pasta) and check exit code (will # test/passt/shutdown - Shut down passt (or pasta) and check exit code (will
# detect valgrind errors amongst others) # detect valgrind errors amongst others)
# #
# Copyright (c) 2022 Red Hat GmbH # Copyright (c) 2022 Red Hat GmbH

View file

@ -6,7 +6,7 @@
# PASTA - Pack A Subtle Tap Abstraction # PASTA - Pack A Subtle Tap Abstraction
# for network namespace/tap device mode # for network namespace/tap device mode
# #
# test/tcp/passt - Check TCP functionality in passt mode # test/passt/tcp - Check TCP functionality in passt mode
# #
# Copyright (c) 2021 Red Hat GmbH # Copyright (c) 2021 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com> # Author: Stefano Brivio <sbrivio@redhat.com>

View file

@ -6,7 +6,7 @@
# PASTA - Pack A Subtle Tap Abstraction # PASTA - Pack A Subtle Tap Abstraction
# for network namespace/tap device mode # for network namespace/tap device mode
# #
# test/udp/passt - Check UDP functionality in passt mode # test/passt/udp - Check UDP functionality in passt mode
# #
# Copyright (c) 2021 Red Hat GmbH # Copyright (c) 2021 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com> # Author: Stefano Brivio <sbrivio@redhat.com>

View file

@ -6,7 +6,7 @@
# PASTA - Pack A Subtle Tap Abstraction # PASTA - Pack A Subtle Tap Abstraction
# for network namespace/tap device mode # for network namespace/tap device mode
# #
# test/icmp/passt_in_ns - Check ICMP/ICMPv6 functionality for passt in ns # test/passt_in_ns/icmp - Check ICMP/ICMPv6 functionality for passt in ns
# #
# Copyright (c) 2021 Red Hat GmbH # Copyright (c) 2021 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com> # Author: Stefano Brivio <sbrivio@redhat.com>

View file

@ -6,7 +6,7 @@
# PASTA - Pack A Subtle Tap Abstraction # PASTA - Pack A Subtle Tap Abstraction
# for network namespace/tap device mode # for network namespace/tap device mode
# #
# test/shutdown/passt_in_ns - Shut down passt and check exit code (will detect # test/passt_in_ns/shutdown - Shut down passt and check exit code (will detect
# valgrind errors amongst others) # valgrind errors amongst others)
# #
# Copyright (c) 2022 Red Hat GmbH # Copyright (c) 2022 Red Hat GmbH

View file

@ -6,7 +6,7 @@
# PASTA - Pack A Subtle Tap Abstraction # PASTA - Pack A Subtle Tap Abstraction
# for network namespace/tap device mode # for network namespace/tap device mode
# #
# test/tcp/passt_in_ns - Check TCP functionality for passt in ns with pasta # test/passt_in_ns/tcp - Check TCP functionality for passt in ns with pasta
# #
# Copyright (c) 2021 Red Hat GmbH # Copyright (c) 2021 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com> # Author: Stefano Brivio <sbrivio@redhat.com>

View file

@ -6,7 +6,7 @@
# PASTA - Pack A Subtle Tap Abstraction # PASTA - Pack A Subtle Tap Abstraction
# for network namespace/tap device mode # for network namespace/tap device mode
# #
# test/udp/passt_in_ns - Check UDP functionality for passt in ns and pasta # test/passt_in_ns/udp - Check UDP functionality for passt in ns and pasta
# #
# Copyright (c) 2021 Red Hat GmbH # Copyright (c) 2021 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com> # Author: Stefano Brivio <sbrivio@redhat.com>

View file

@ -6,7 +6,7 @@
# PASTA - Pack A Subtle Tap Abstraction # PASTA - Pack A Subtle Tap Abstraction
# for network namespace/tap device mode # for network namespace/tap device mode
# #
# test/dhcp/pasta - Check DHCP and DHCPv6 functionality in pasta mode # test/pasta/dhcp - Check DHCP and DHCPv6 functionality in pasta mode
# #
# Copyright (c) 2021 Red Hat GmbH # Copyright (c) 2021 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com> # Author: Stefano Brivio <sbrivio@redhat.com>

View file

@ -6,7 +6,7 @@
# PASTA - Pack A Subtle Tap Abstraction # PASTA - Pack A Subtle Tap Abstraction
# for network namespace/tap device mode # for network namespace/tap device mode
# #
# test/ndp/pasta - Check DHCP and DHCPv6 functionality in pasta mode # test/pasta/ndp - Check DHCP and DHCPv6 functionality in pasta mode
# #
# Copyright (c) 2021 Red Hat GmbH # Copyright (c) 2021 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com> # Author: Stefano Brivio <sbrivio@redhat.com>

View file

@ -6,7 +6,7 @@
# PASTA - Pack A Subtle Tap Abstraction # PASTA - Pack A Subtle Tap Abstraction
# for network namespace/tap device mode # for network namespace/tap device mode
# #
# test/tcp/pasta - Check TCP functionality for pasta # test/pasta/tcp - Check TCP functionality for pasta
# #
# Copyright (c) 2021 Red Hat GmbH # Copyright (c) 2021 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com> # Author: Stefano Brivio <sbrivio@redhat.com>

View file

@ -6,7 +6,7 @@
# PASTA - Pack A Subtle Tap Abstraction # PASTA - Pack A Subtle Tap Abstraction
# for network namespace/tap device mode # for network namespace/tap device mode
# #
# test/udp/pasta - Check UDP functionality for pasta # test/pasta/udp - Check UDP functionality for pasta
# #
# Copyright (c) 2021 Red Hat GmbH # Copyright (c) 2021 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com> # Author: Stefano Brivio <sbrivio@redhat.com>

View file

@ -74,40 +74,40 @@ run() {
teardown distro teardown distro
setup pasta setup pasta
test ndp/pasta test pasta/ndp
test dhcp/pasta test pasta/dhcp
test tcp/pasta test pasta/tcp
test udp/pasta test pasta/udp
test shutdown/passt test passt/shutdown
teardown pasta teardown pasta
setup passt setup passt
test ndp/passt test passt/ndp
test dhcp/passt test passt/dhcp
test tcp/passt test passt/tcp
test udp/passt test passt/udp
test shutdown/passt test passt/shutdown
teardown passt teardown passt
VALGRIND=1 VALGRIND=1
setup passt_in_ns setup passt_in_ns
test ndp/passt test passt/ndp
test dhcp/passt test passt/dhcp
test icmp/passt_in_ns test passt_in_ns/icmp
test tcp/passt_in_ns test passt_in_ns/tcp
test udp/passt_in_ns test passt_in_ns/udp
test shutdown/passt_in_ns test passt_in_ns/shutdown
teardown passt_in_ns teardown passt_in_ns
VALGRIND=0 VALGRIND=0
setup passt_in_ns setup passt_in_ns
test ndp/passt test passt/ndp
test dhcp/passt test passt/dhcp
test perf/passt_tcp test perf/passt_tcp
test perf/passt_udp test perf/passt_udp
test perf/pasta_tcp test perf/pasta_tcp
test perf/pasta_udp test perf/pasta_udp
test shutdown/passt_in_ns test passt_in_ns/shutdown
teardown passt_in_ns teardown passt_in_ns
setup two_guests setup two_guests