Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1261733rdh; Mon, 25 Sep 2023 07:43:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGSHa0AyIneV/nVbOTWsLA/0sOe3PnZCwv8W8gIrDb9CCZXXIWUlC7BucgjXImnsNw3kg62 X-Received: by 2002:a17:902:ced2:b0:1c3:c687:4793 with SMTP id d18-20020a170902ced200b001c3c6874793mr5715250plg.63.1695653037268; Mon, 25 Sep 2023 07:43:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695653037; cv=pass; d=google.com; s=arc-20160816; b=UVL0YWGK7st+d2hbNrTEPV9OnWdONGExO+9qqq7Vk+4SLyLpOAiTVg/GXHCcGuE3v9 VnQ6n7f53tTB2YA6Mz8xSN1aoWzmGoIH+Lipm3Xuv4BpIr5VRHtTXtQM3eVW8/i4jJua f0qOImcBdKEllfKAdmRih1V888EybxwxJFqPdHlGC7DFa6tqEKJEhAI2TvhqZVT6V2ZP Q6eRC5D4DO7shaU9OLv3XApbKDX2R8TJUkkkbjlxHlsce5Fft2tYvGGXR6ddae7JdeyS +TSTRN5BKdfL4aYUEY8kvjZaijTO7B+vvKxhwlPnYwAIovlNGkLBXiP4i87eKe5GKqUf Lm/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding:cc :subject:from:to:user-agent:date:message-id:dkim-signature; bh=efiM11N+arttjvmiaNCAs9ty55wN/pZreGXpV4jhcvg=; fh=ACD8SDB21YYjYPTuSjRX664VbAZwe7k8Wwl1t8ZXhUk=; b=WHBMDGjthmHn8CjL7dExRHTpArl1f7jk9UTZUem5TyDtGYZNJCAK0HjggoAznEbip7 hJqE5hnWdICl6FIdQd/vm3iL6PxA5Gxxv2J5e8WkMQMalDiTG5ywE1VMmJqchv84eEDD jv5HZ7YlvypgLuIYGVdalkAN9YwHZfdFDhISwozkcPESG2M3ZxL3qln0UxPZWKpYbLH4 aN5ACb/kSQOQEspjqRniw//gfrndIXtEUHf0cRVbU6QKC/4PdoayKtDObaEKr2qxLT49 ooPmrCbWOCmVguxb9NvW47VmvOnAgCHZDbLb9oIppGrD4webL056QanV9u/7xp9UCUBV TmEQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=LZLk4cIi; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id h17-20020a170902f7d100b001bb809b68a8si9351436plw.229.2023.09.25.07.43.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 07:43:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=LZLk4cIi; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id A114180963A7; Mon, 25 Sep 2023 03:26:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231367AbjIYKZy (ORCPT + 99 others); Mon, 25 Sep 2023 06:25:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231292AbjIYKZx (ORCPT ); Mon, 25 Sep 2023 06:25:53 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04olkn2059.outbound.protection.outlook.com [40.92.74.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC2EFD3; Mon, 25 Sep 2023 03:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tg+p09Huj7fKlM4X1SKtsMI4KM3oiWUJZgq2JAK80Hk51qb4tzqrQZCfY7UaJpCA+OYDfqnPnODvPBMmIg2U4+1TNU6Ei0AC0z5xNA0mXEClldFjb4DDwU//9umY8PHY0+RYQbybGFW7kLdx9aOOLHRd1MZbN73x8VjJKsCXNsRehwUY5f4Q4NV5GakmK3E0vJA5n7bKdMffkWkR7xBa7MK32+UZLLNFjc4lRDfyGVt3Z9jZP2RbRto4kfBiojDvTSfHQp1rl4xuIp+Aaf4yuwFIvR1N4uYdkk1nLLCpkiuoRnIRmFp/6/isMpTKqQi8zgphq8ZR6UAln0NJI7+Uyw== 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=efiM11N+arttjvmiaNCAs9ty55wN/pZreGXpV4jhcvg=; b=oQdxytt+/0OubG5yefurvvKF7lafIrD4YshGww2FaSHz6XNoRm1lSezQJyJheAp7btTTnadGt/SsI5n8V5gTUOUNNBh1W+coKSwUH1LI5zmW7V0NJkS0YXtK81q4AgSjmlWJ79BvkVH3LjZXefgFV5l7aJiMIo0/fAM47UYmP1dZlrvUapOfvOJnv3v/fSz0hI8fJzwK6RTtfluAh+g+WA23bJZnCgv1hw/I0Looeb9GQVbxPl8DKj+r501s2kZoCJrTOtm/+s8JIScO1k3bSZE5Zk7KmxDhnI2r17QbBYh3gOPJ4w8jKjuAwlgeavTcPS/l1WsieuGQClT88GQSQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=efiM11N+arttjvmiaNCAs9ty55wN/pZreGXpV4jhcvg=; b=LZLk4cIiTBa7H49CTTVRoANepMdaA6BQ4/3RKMbSmcVHYncQryA6oySy0jXdZlfUgbDfGg3pwBpgeQCZ+iVuIatK6iHxGGPaq5tqOjgOB8cffem5geylXQf0SGD6rZvVsnu/9YnECma75mTpXuYLr28BH6QbISbTSAVp2TJHt7VHCFgVCZ77+5VrteDnOKMd1W6o+iaqIRejrrB5zxHIEgGbBZFIJaGfxgkXgGonnK+3NqI+Hxw3ciFJoXh58GqSxA+1yizWpu/Uxi/DjAeAp8s8JsMhqOKGHTkz8pKBXTuxpuPl0DCgN8CRGL8p7tqzV1sedKmtLszmlqnhs37v3g== Received: from VI1P193MB0752.EURP193.PROD.OUTLOOK.COM (2603:10a6:800:32::19) by GV1P193MB2023.EURP193.PROD.OUTLOOK.COM (2603:10a6:150:27::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Mon, 25 Sep 2023 10:25:43 +0000 Received: from VI1P193MB0752.EURP193.PROD.OUTLOOK.COM ([fe80::3164:ae5c:78f7:23ad]) by VI1P193MB0752.EURP193.PROD.OUTLOOK.COM ([fe80::3164:ae5c:78f7:23ad%4]) with mapi id 15.20.6813.024; Mon, 25 Sep 2023 10:25:43 +0000 Message-ID: Date: Mon, 25 Sep 2023 18:25:42 +0800 User-Agent: Mozilla Thunderbird To: shuah@kernel.org From: Juntong Deng Subject: [RFC] selftests: Add dependencies information for kselftest Cc: linux-kselftest@vger.kernel.org, "linux-kernel@vger.kernel.org" , "linux-kernel-mentees@lists.linuxfoundation.org" Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [HQV39rmNPkCNlChnyngT5w951PVCIUfp] X-ClientProxiedBy: AS4P251CA0024.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:5d3::16) To VI1P193MB0752.EURP193.PROD.OUTLOOK.COM (2603:10a6:800:32::19) X-Microsoft-Original-Message-ID: <5a972cd1-0da8-409f-8a61-f4a081ba5808@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1P193MB0752:EE_|GV1P193MB2023:EE_ X-MS-Office365-Filtering-Correlation-Id: 72458393-8ac6-4af1-3b02-08dbbdb1c5f8 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P04eYQCHpk9T/4f+ZFEKE3aU+sK+5+cJL56O/Lj5LhuwaQzBCEACUC0UXs0Mf/WxvQ/Wih52vdneILD+fMDIrKJmGhDoVi69pDppNIt9fGU8ovBVzu06MguICaqV5XBz2yWT2yPpLv8XTCcOAoDlwmop8pTqy6ciSW5wB3UnmEHlqsF7Js/KLUzoZKCXkUf+mdxRgBAuIelaJrPtM/WFepJivsFvu8kg9mwJF6/m9xQz53xtgn2UwF4HN9QxZIXv1BF9AF1k0RsRAfeFXLtFxsWcfJPWu6aAgWnPa+NfsJErXf2GOg/E3jHJr/vsBefV+dUNcYQny2uYBa3QAkMLLipzxgxgXa2knnWbpAIEt8yEOmcpWb+9wndV4QqASo/cD8B9WnN3h3AvK0o3VCqhHpY4h5bTec4ntdN0kQuw9KCgLRxHfFnIPhYyG10QZ5r4prPkXOuaEjRiF1V/gUgej/qmn+4WmT4xQUB9cIr9M5YzgrX4YgKZjwq8Hpj+LJNGRi2bj3LOJ8emIteQ+4/sV+QQ/ZxlXOoxtA5993SzTuv/A5OKIjPP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Id: 72458393-8ac6-4af1-3b02-08dbbdb1c5f8 X-MS-Exchange-CrossTenant-AuthSource: VI1P193MB0752.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2023 10:25:43.5957 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1P193MB2023 X-Spam-Status: No, score=1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FORGED_MUA_MOZILLA,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 25 Sep 2023 03:26:04 -0700 (PDT) Most of the tests in kselftest rely on external tools and libraries to run, which means that in order to run the tests effectively we need to have all the dependencies installed first. But unfortunately, there is currently no way to know in advance what tools and libraries the tests in kselftest depend on, and can only be known when a test run fails. For example after running the alsa subsystem test I realized I needed to install the libasound-dev package. This is inefficient for the test of subsystems that require a long time to run. For example, the net subsystem test, which takes more than an hour to run a complete test. I can only know that I need to install numactl, libnuma-dev, ethtool, mausezahn, netsniff-ng, ndisc6, netperf, and other tools after carefully reviewing the results of the tests. I think we should add dependencies information to the Makefile for each subsystem test, either as a comment or as an output target of the Makefile, it would save a lot of time for the people running the tests. I can do this part of the work. Welcome to discuss! Juntong Deng