linux-yocto/tools/testing/selftests/drivers/net/dsa
Petr Machata 521ed1ce94 selftests: forwarding: Remove duplicated lib.sh content
commit 25ae948b44 ("selftests/net: add lib.sh") added net/lib.sh to
contain code shared by tests under net/ and net/forwarding/. However, this
caused issues with selftests from directories other than net/forwarding/,
in particular those under drivers/net/. Those issues were avoided in a
simple way by duplicating some content in commit 2114e83381 ("selftests:
forwarding: Avoid failures to source net/lib.sh").

In order to remove the duplicated content, restore the inclusion of
net/lib.sh from net/forwarding/lib.sh but with the following changes:

* net/lib.sh is imported through the net_forwarding_dir path
The original expression "source ../lib.sh" would look for lib.sh in the
directory above the script file's one, which did not work for tests under
drivers/net/.

* net/lib.sh is added to TEST_INCLUDES
Since net/forwarding/lib.sh now sources net/lib.sh, both of those files
must be exported along with tests which source net/forwarding/lib.sh.

Suggested-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-01-31 10:55:11 +00:00
..
bridge_locked_port.sh selftests: dsa: Replace test symlinks by wrapper script 2024-01-31 10:55:11 +00:00
bridge_mdb.sh selftests: dsa: Replace test symlinks by wrapper script 2024-01-31 10:55:11 +00:00
bridge_mld.sh selftests: dsa: Replace test symlinks by wrapper script 2024-01-31 10:55:11 +00:00
bridge_vlan_aware.sh selftests: dsa: Replace test symlinks by wrapper script 2024-01-31 10:55:11 +00:00
bridge_vlan_mcast.sh selftests: dsa: Replace test symlinks by wrapper script 2024-01-31 10:55:11 +00:00
bridge_vlan_unaware.sh selftests: dsa: Replace test symlinks by wrapper script 2024-01-31 10:55:11 +00:00
forwarding.config selftests: drivers: dsa: add a subset of forwarding selftests 2022-04-23 12:18:16 +01:00
local_termination.sh selftests: dsa: Replace test symlinks by wrapper script 2024-01-31 10:55:11 +00:00
Makefile selftests: forwarding: Remove duplicated lib.sh content 2024-01-31 10:55:11 +00:00
no_forwarding.sh selftests: dsa: Replace test symlinks by wrapper script 2024-01-31 10:55:11 +00:00
run_net_forwarding_test.sh selftests: dsa: Replace test symlinks by wrapper script 2024-01-31 10:55:11 +00:00
tc_actions.sh selftests: dsa: Replace test symlinks by wrapper script 2024-01-31 10:55:11 +00:00
test_bridge_fdb_stress.sh selftests: dsa: Replace test symlinks by wrapper script 2024-01-31 10:55:11 +00:00