mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
The dsa tests which are symlinks of tests from net/forwarding/ (like tc_actions.sh) become regular files after export (because `rsync --copy-unsafe-links` is used) and expect to source lib.sh (net/forwarding/lib.sh) from the same directory. In the last patch of this series, net/forwarding/lib.sh will source lib.sh from its parent directory (ie. net/lib.sh). This would not work for dsa tests because net/lib.sh is not present under drivers/net/. Since the tests in net/forwarding/ are not meant to be copied and run from another directory, as a preparation for that last patch, replace the test symlinks by a wrapper script which runs the original tests under net/forwarding/. Following from that, the links to shared library scripts in dsa/ are no longer used so remove them and add all the original files needed from parent directories to TEST_INCLUDES. Suggested-by: Hangbin Liu <liuhangbin@gmail.com> Reviewed-by: Petr Machata <petrm@nvidia.com> Tested-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Hangbin Liu <liuhangbin@gmail.com> Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
32 lines
870 B
Makefile
32 lines
870 B
Makefile
# SPDX-License-Identifier: GPL-2.0+ OR MIT
|
|
|
|
TEST_PROGS = bridge_locked_port.sh \
|
|
bridge_mdb.sh \
|
|
bridge_mld.sh \
|
|
bridge_vlan_aware.sh \
|
|
bridge_vlan_mcast.sh \
|
|
bridge_vlan_unaware.sh \
|
|
local_termination.sh \
|
|
no_forwarding.sh \
|
|
tc_actions.sh \
|
|
test_bridge_fdb_stress.sh
|
|
|
|
TEST_FILES := \
|
|
run_net_forwarding_test.sh \
|
|
forwarding.config
|
|
|
|
TEST_INCLUDES := \
|
|
../../../net/forwarding/bridge_locked_port.sh \
|
|
../../../net/forwarding/bridge_mdb.sh \
|
|
../../../net/forwarding/bridge_mld.sh \
|
|
../../../net/forwarding/bridge_vlan_aware.sh \
|
|
../../../net/forwarding/bridge_vlan_mcast.sh \
|
|
../../../net/forwarding/bridge_vlan_unaware.sh \
|
|
../../../net/forwarding/lib.sh \
|
|
../../../net/forwarding/local_termination.sh \
|
|
../../../net/forwarding/no_forwarding.sh \
|
|
../../../net/forwarding/tc_actions.sh \
|
|
../../../net/forwarding/tc_common.sh
|
|
|
|
include ../../../lib.mk
|