From patchwork Wed Jan 24 17:02:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Poirier X-Patchwork-Id: 767879 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2085.outbound.protection.outlook.com [40.107.244.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2A9342A93; Wed, 24 Jan 2024 17:03:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.244.85 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706115835; cv=fail; b=dR2Woky1DSkBRKhhjM5f0x3s06NesdZlzvyyySXSwzXzJS5jbgpscNQuoMXRRaYRmZFgEm5LCiUz7EuelxpxZKeyY2GmgwHgt1PicvmJH49s9+R4uXu6sSDsvRntMvuz1A4Arj3A9YPrSEgmTbyYUiH9WYZQ3HVw9V3aTu0E9rc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706115835; c=relaxed/simple; bh=XAAEW8FKo5KaFrpo7ZpnLrP3U2rrSawZ2m8Y8w2Jwj0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=aJD4jBclOEVpB4mzU4v+sfjk9HNxq7mdsAsNH3AZQGXdaalJ+3vjlLwhAenVDezwkv0TinmvQYQp2b/jmFVKd+mm2Ijn7DNjmyCStih+ydovrBxeXv7X/IRekczFm/10ydLS8ibyfETM7JuPbo9XKqP4oZ6ktjZKzyLRUQmUqN4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=GZ7/xk+s; arc=fail smtp.client-ip=40.107.244.85 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="GZ7/xk+s" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jWzp5xL1TQabSw05SYeGxbbhWOELz9LZleqsn4ng/8Gz7ojGmxWy3H6k9ZoBzADlzWIdlz3JrQJunQ95nJWKpQHwYxbs3eScvCvR2ofb5RF3+3/DAj1kI03ngv+CwXAVf5NVPxMoB/i8Wda2KeeMEtFnZjOARKF7Wk4Fne/fcwbK8zG+nrg6XUA10HYdsJrUsAGLpB+9JCQCuqN+lTjGt8LSayRuuJFYw6678J8qBRR7u7JW/aPcyORjOxgO22VKgUxVcuOgQhd2y0D6C5NtyJcDaVxA4ZpjX2hM3WY/ZuequPuZGyoc6oWlDJAfKTeuZUI7PiIF5m6ptmIe3HG7Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=itAIixG77wUhv2LVVUp3StYiRLE0EYtaJQwD+2XohfM=; b=RoXU/WAsh0TqAjioHVyq2bOE1wiTQXJrIHbgtUO+1Ftxm9VSlBGddd5CIxb/XH9l4wZ/KkW7j7f/Xs3GekKxlEzBoulKPRdOgKM/vjsglNTCkAfiMZwFmduT1elRfddC6/2fjqZW8ZDGhDvKyr05yatMyBkf2yPV8TyZfLcIdYXMCKzY5OIqdMehU130hTdnIs9cniyVebxPpYKtO4LDhzqkH5MRSGxVHLjipBGMSYkTcCDg+q221ooPRd9ljsARl4aIuzP9jZ09Zoop8QBjMUC4Fy2HLC3OxVhR2UgDeFiadQLx6WiHxYtF1FI8QuCIy/YpL2Sm60KEEhqeXAtAJA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=itAIixG77wUhv2LVVUp3StYiRLE0EYtaJQwD+2XohfM=; b=GZ7/xk+sPK74fFunJGrjGLy4T3Jp8fmdg4cPDm7RiQ07ubDLXRnbphdJMXuem+ynHPtrzbEv07BLF5t1PRQJerb2gAOuCFu2QLSpXwXa4XYqc3E7lExVTAjQIiD9yRQCrW5iC6HjNrsrBesIthjac4lsQQfV7w74iEJojPl17xNIDN6jMEGreIK9yAix2oE3TzjkzeWdmQEA6B2np31ttU4nemCtZImZcUEQLcv87OtWD0DGdRanfg9Rx7rmBDxDJ8dOVUlyo2n3HPaWJf66jOhodbBlz02uLmTNJqongqklE03nNStx358araaW378OT3gEr1iNs04GMI+TJLm4RQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB4373.namprd12.prod.outlook.com (2603:10b6:208:261::8) by DS7PR12MB5935.namprd12.prod.outlook.com (2603:10b6:8:7e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.22; Wed, 24 Jan 2024 17:02:50 +0000 Received: from MN2PR12MB4373.namprd12.prod.outlook.com ([fe80::ff68:f81b:d451:9765]) by MN2PR12MB4373.namprd12.prod.outlook.com ([fe80::ff68:f81b:d451:9765%4]) with mapi id 15.20.7228.023; Wed, 24 Jan 2024 17:02:50 +0000 From: Benjamin Poirier To: netdev@vger.kernel.org Cc: Shuah Khan , Jonathan Corbet , Jay Vosburgh , Andy Gospodarek , Andrew Lunn , Florian Fainelli , Vladimir Oltean , Jiri Pirko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Petr Machata , Danielle Ratson , Nikolay Aleksandrov , Ido Schimmel , Johannes Nixdorf , Davide Caratti , Tobias Waldekranz , Zahari Doychev , Hangbin Liu , linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH net-next 3/6] selftests: team: Add shared library scripts to TEST_INCLUDES Date: Wed, 24 Jan 2024 12:02:19 -0500 Message-ID: <20240124170222.261664-4-bpoirier@nvidia.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240124170222.261664-1-bpoirier@nvidia.com> References: <20240124170222.261664-1-bpoirier@nvidia.com> X-ClientProxiedBy: YQBPR01CA0039.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:2::11) To MN2PR12MB4373.namprd12.prod.outlook.com (2603:10b6:208:261::8) Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB4373:EE_|DS7PR12MB5935:EE_ X-MS-Office365-Filtering-Correlation-Id: a614979a-950f-4d7a-1060-08dc1cfe4b08 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dqaAm2NJBU59nTDjmdPFG1fDK6PsDevVi6sINPFOW64X0gwMZUMOGobF/ftierlO00CGHxRTUtF5IJxPKRT96QgPclAQ5DJeYHt71bVYCOuQXQPS5JzxSih3jYOlO0oYJ3RwOE2ekWqYBoL0gi34XdM8XE/mgYdIBBGt6oYe8IpsxmyvpqjQNq4d91SB2tIbnkIVE3rbScZIKD6SY9UV/EpC1WP2+Y87cVqFWZaHxgBnLO4mF0RhVTh6OrO/83lICxBiyWvAQDfbCzBgOcMSI8YgK+ImnU2/nHt5sozrwEsaJY6wuELo9Ge5PyNO5FDDvE6hVdeO+hQvdv/FuL0QexDwhAMq0dcZKJuZxmt1gCaft5FJI5H5CAj35Ma0QpeYygI0M4IHTvLuHdfAvZU5BvstZof1NngRSNJ4jEQQmuzUkqenmk2ST7BYlGhNAt8+cwhr4yI2pcGh3uegZwvSm0neIJgxgNGzOgAQk2eCSNAft3dndYr1yqdm5c1EoHRTxJowHVLsq5wxqToVEshr4R3vr9yBgcIoGiLtPfgtU/ARuYwe949zATUOCdYH+6TI X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR12MB4373.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(396003)(136003)(366004)(376002)(39860400002)(230922051799003)(186009)(64100799003)(451199024)(1800799012)(2906002)(7416002)(5660300002)(6916009)(66946007)(66556008)(66476007)(54906003)(316002)(4326008)(8936002)(8676002)(478600001)(6512007)(6486002)(36756003)(38100700002)(86362001)(1076003)(26005)(6666004)(2616005)(83380400001)(41300700001)(6506007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +B7kAnaOw5jex7O2q1VtrdPirorz9KtDJvlZAt94wDGDGCQH5S4ZtYgHTAuydBiqukXBjWsOnm5eAUvH5risj3ySescNa9xtpYfgjA7R9LgIMT791LxSkxY6t/BsDAS21S0Y+TQ0Bm58VmA7lgF1IQWRqTr0cthQlbYvKUZGj2DBVsuhwashvbW3LBMxiapccnN94ESUoOvq4NsvSbc4KKE1NWmerIVWjKd6+z9Z2bYA2sVAFEqRi7LSCiarb3Zd7QQQWjX84AxJImURAfskm+nByb3QPo2Ggiq5XvFmBLD0TmOsMvR5QVgFPUx12AA5jSE1nlNZGEjfbOHrdz6kSrHCQJ+SWRrV3ft40IV/OApI1kYsGLAfdoFVE6afzY4HwoFP1foPzhWRCOQpusEuRcgg7BaVuS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DVOQtBC5umKb/WzqsevYFWkFj64YeLMH4qe7p+z3oivHaeIH6sNteJa7dwX+UiNPw28yPCiAX/sb+SjD6+uYF7fCGsL1+qtIJOFgENvN9vGVE/LpFHdFDB X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: a614979a-950f-4d7a-1060-08dc1cfe4b08 X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4373.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2024 17:02:48.7055 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6VsapjlMoIoY5qqgDQMWCjZutbFIZV4ZzmcfCC4KWr7EXeAAIgMYNUB1AsdBFfClS7NYGTZjZd8xbsWQ+RQ1Sw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5935 In order to avoid duplicated files when both the team and bonding tests are exported together, add lag_lib.sh to TEST_INCLUDES. Do likewise for net/forwarding/lib.sh regarding team and forwarding tests. Reviewed-by: Petr Machata Tested-by: Petr Machata Signed-off-by: Benjamin Poirier --- tools/testing/selftests/drivers/net/team/Makefile | 6 +++--- tools/testing/selftests/drivers/net/team/dev_addr_lists.sh | 4 ++-- tools/testing/selftests/drivers/net/team/lag_lib.sh | 1 - .../selftests/drivers/net/team/net_forwarding_lib.sh | 1 - 4 files changed, 5 insertions(+), 7 deletions(-) delete mode 120000 tools/testing/selftests/drivers/net/team/lag_lib.sh delete mode 120000 tools/testing/selftests/drivers/net/team/net_forwarding_lib.sh diff --git a/tools/testing/selftests/drivers/net/team/Makefile b/tools/testing/selftests/drivers/net/team/Makefile index 6a86e61e8bfe..708bdfce37f5 100644 --- a/tools/testing/selftests/drivers/net/team/Makefile +++ b/tools/testing/selftests/drivers/net/team/Makefile @@ -3,8 +3,8 @@ TEST_PROGS := dev_addr_lists.sh -TEST_FILES := \ - lag_lib.sh \ - net_forwarding_lib.sh +TEST_INCLUDES := \ + ../bonding/lag_lib.sh \ + ../../../net/forwarding/lib.sh include ../../../lib.mk 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 33913112d5ca..b1ec7755b783 100755 --- a/tools/testing/selftests/drivers/net/team/dev_addr_lists.sh +++ b/tools/testing/selftests/drivers/net/team/dev_addr_lists.sh @@ -11,9 +11,9 @@ ALL_TESTS=" REQUIRE_MZ=no NUM_NETIFS=0 lib_dir=$(dirname "$0") -source "$lib_dir"/net_forwarding_lib.sh +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 diff --git a/tools/testing/selftests/drivers/net/team/net_forwarding_lib.sh b/tools/testing/selftests/drivers/net/team/net_forwarding_lib.sh deleted file mode 120000 index 39c96828c5ef..000000000000 --- a/tools/testing/selftests/drivers/net/team/net_forwarding_lib.sh +++ /dev/null @@ -1 +0,0 @@ -../../../net/forwarding/lib.sh \ No newline at end of file