[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231222135836.992841-10-bpoirier@nvidia.com>
Date: Fri, 22 Dec 2023 08:58:35 -0500
From: Benjamin Poirier <bpoirier@...dia.com>
To: netdev@...r.kernel.org
Cc: Shuah Khan <shuah@...nel.org>,
Petr Machata <petrm@...dia.com>,
Hangbin Liu <liuhangbin@...il.com>,
Vladimir Oltean <vladimir.oltean@....com>
Subject: [RFC PATCH net-next 09/10] selftests: team: Add shared library script to TEST_INCLUDES
lag_lib.sh is added to TEST_INCLUDES to avoid duplication when both the
bonding and team tests are exported together.
Signed-off-by: Benjamin Poirier <bpoirier@...dia.com>
---
tools/testing/selftests/drivers/net/team/Makefile | 4 +---
tools/testing/selftests/drivers/net/team/dev_addr_lists.sh | 2 +-
tools/testing/selftests/drivers/net/team/lag_lib.sh | 1 -
3 files changed, 2 insertions(+), 5 deletions(-)
delete mode 120000 tools/testing/selftests/drivers/net/team/lag_lib.sh
diff --git a/tools/testing/selftests/drivers/net/team/Makefile b/tools/testing/selftests/drivers/net/team/Makefile
index d31af127ca29..8a9846b5a209 100644
--- a/tools/testing/selftests/drivers/net/team/Makefile
+++ b/tools/testing/selftests/drivers/net/team/Makefile
@@ -3,10 +3,8 @@
TEST_PROGS := dev_addr_lists.sh
-TEST_FILES := \
- lag_lib.sh \
-
TEST_INCLUDES := \
+ drivers/net/bonding/lag_lib.sh \
net/forwarding/lib.sh \
net/lib.sh
diff --git a/tools/testing/selftests/drivers/net/team/dev_addr_lists.sh b/tools/testing/selftests/drivers/net/team/dev_addr_lists.sh
index bea2565486f7..b1ec7755b783 100755
--- a/tools/testing/selftests/drivers/net/team/dev_addr_lists.sh
+++ b/tools/testing/selftests/drivers/net/team/dev_addr_lists.sh
@@ -13,7 +13,7 @@ NUM_NETIFS=0
lib_dir=$(dirname "$0")
source "$lib_dir"/../../../net/forwarding/lib.sh
-source "$lib_dir"/lag_lib.sh
+source "$lib_dir"/../bonding/lag_lib.sh
destroy()
diff --git a/tools/testing/selftests/drivers/net/team/lag_lib.sh b/tools/testing/selftests/drivers/net/team/lag_lib.sh
deleted file mode 120000
index e1347a10afde..000000000000
--- a/tools/testing/selftests/drivers/net/team/lag_lib.sh
+++ /dev/null
@@ -1 +0,0 @@
-../bonding/lag_lib.sh
\ No newline at end of file
--
2.43.0
Powered by blists - more mailing lists