Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1535801rdh; Mon, 25 Sep 2023 16:24:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHO4tW0HhBw3V3UD1qigMpK5+NiVNMvWEJZsvSDn0d+mAOlJpC8CC82spaBUAybe/IgkhMX X-Received: by 2002:a5b:30b:0:b0:d7b:90c6:683c with SMTP id j11-20020a5b030b000000b00d7b90c6683cmr7913730ybp.26.1695684272449; Mon, 25 Sep 2023 16:24:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695684272; cv=pass; d=google.com; s=arc-20160816; b=jdC4qRDvW3T2jJsiG+3aGHl1eCXPWH6Suw5RBZ/TAt2FFyTwf37PlF1gzmUemyBGcM 1Z/iDzo5Vl/7nV9djxgPhIbgwTrZo3JBpD+XwXqnWwOFasfgjH2p/yS1/qKEmcyxj9tL z2/odqUPHDVGC89BUEW7z/WKnmrYV23ufNRJS3x4X2FCpbkv2iL6ZlaTPKHTIAR59DjJ kp0mlyAn1QHsAsCjzSojCL8u8sJetiQ/kercHiObIlSplZurIc1j5656hUvSokPDmmMF OhqDJc6201p2UNzKYt3gwcwkHZfbVzW7+veiaJBPMwVglg+TuEJLmMZCjdiHCfaaY3rJ 3ECQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6QTBopM4AFokGMXe5eTyZo7tsMvC10D0AZEDxQ4I2I8=; fh=HPY6IttJ/PjcNxWYqU+1DQJ/x3zwCsVKR6WVXUO4IB4=; b=kUbLqiHlIUJlaWVp3Temv4J7Aadd5sxgoM2fJv/F4UWPmh1Bi5AcgkoKcAhP2bLCcU CjmcTQz70r+5CI9qqNHKGY5aUlkz4zZHHT6WMc92g2g0M+ZEU4H2DlbbqoAtM+1a3+bG 6vypgwgVs0TgQ13VERzoRKf+alcwVVGVlr/DpbaXhX3Sl8xH+DRZ3IoryjqZXwGwiCc0 JBSuZnGNZO4+tTqBuNrTduFf8UkQj4qoye9qCaQdWNIIv45kbkbgstDQ3eBs+Wnb+Av5 KOxxfchEWNmqFCuas91QmyHAdzsbYZHHF3y5mEC1KtlxbCF8s8qnoOzJ5mVbnVbccsRz LZ2Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marliere.net header.s=zmail header.b=o54JjpWD; arc=pass (i=1 spf=pass spfdomain=marliere.net dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id ca13-20020a056a02068d00b00578e40151basi12046294pgb.662.2023.09.25.16.24.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 16:24:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@marliere.net header.s=zmail header.b=o54JjpWD; arc=pass (i=1 spf=pass spfdomain=marliere.net dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 01C2D8142DBE; Mon, 25 Sep 2023 04:24:45 -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 S230045AbjIYLYp (ORCPT + 99 others); Mon, 25 Sep 2023 07:24:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231301AbjIYLYn (ORCPT ); Mon, 25 Sep 2023 07:24:43 -0400 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54D6E100; Mon, 25 Sep 2023 04:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695641069; cv=none; d=zohomail.com; s=zohoarc; b=XXN41uh2MugBFGEid7+EZCRU511mZUoHzHBSVqvNu6zaPKjmnVdOlnjGlOT/9IGkt/bkzMwnNJecMqI7sQRHlaNBRnH7qVhDhIpNLQiRSppceXMsTMLIPVWBCP9K00z8z8qlZuXEF/0TjY58mH5zCJJjlbBCfz2NVoz6FxPmsX0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1695641069; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=6QTBopM4AFokGMXe5eTyZo7tsMvC10D0AZEDxQ4I2I8=; b=YMmnpyXNtdvVwcAzwmDdHA2dAMiw0VfMEW6cK83rb8lfX4ylzoKqKgVU4ToLiZt9rtnYW4VEYWJgmO3dIZJLPVAcFfU23ixEjMHbeJGTlND1FaGP1SMt9H1Db7LMZVTeEt/AqxSAESCoogD8WC0CA2FvhoHsF5pGeWRQvzRqLPk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=marliere.net; spf=pass smtp.mailfrom=ricardo@marliere.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1695641069; s=zmail; d=marliere.net; i=ricardo@marliere.net; h=Date:Date:From:From:To:To:Cc:Cc:Subject:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To:Message-Id:Reply-To; bh=6QTBopM4AFokGMXe5eTyZo7tsMvC10D0AZEDxQ4I2I8=; b=o54JjpWDPBdbUjK0Rg6qowmJZnG4LnrpIyvskIVkd77Pak6ynmSwVAEl7+aQZ1P5 p+qu/sQpUdyynBDpBenl5GLXcN7+/a/B7jICanBGJ40/Tnr9q7fE8l/UDphAY2mb5w9 9nbXeLrGuId8gmoZ6UqWiR0pT4I2CyA+sKkGIC6s= Received: from localhost (177.104.93.54 [177.104.93.54]) by mx.zohomail.com with SMTPS id 1695641067825275.3232582858525; Mon, 25 Sep 2023 04:24:27 -0700 (PDT) Date: Mon, 25 Sep 2023 08:24:29 -0300 From: "Ricardo B. Marliere" To: Juntong Deng Cc: shuah@kernel.org, "linux-kernel-mentees@lists.linuxfoundation.org" , "linux-kernel@vger.kernel.org" , linux-kselftest@vger.kernel.org Subject: Re: [RFC] selftests: Add dependencies information for kselftest Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ZohoMailClient: External X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 04:24:45 -0700 (PDT) On 23/09/25 06:25PM, Juntong Deng wrote: > 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. Hello Juntong, did you check if tools/testing/selftests/kselftest_deps.sh does what you're after? It won't tell you what packages are missing because it's distro-independent, but it tells you what libs your system is missing. e.g. (...) Targets failed build dependency check on system: alsa bpf cachestat capabilities clone3 filesystems fpu futex hid intel_pstate kvm landlock membarrier memfd mm mqueue net netfilter powerpc ptp rseq rtc safesetid sched seccomp timens timers user_events vDSO -------------------------------------------------------- Missing libraries system -lasound -lcap -lcap-ng -lcrypto -ldl -lelf -lfuse -lgcc_s -lm -lmnl -lnuma -lpopt -lpthread -lrt -lz -pthread Regards, - Ricardo