Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3905113ioa; Tue, 26 Apr 2022 12:03:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmD9qBG/f5C5ztqBwgy6d7s4s0wzR2AoQlnHfdQPnn8Bg+qeUtGIpqiUaeHlt80yV8DwD0 X-Received: by 2002:aca:2818:0:b0:322:3bd7:66f1 with SMTP id 24-20020aca2818000000b003223bd766f1mr11894279oix.38.1650999839242; Tue, 26 Apr 2022 12:03:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650999839; cv=none; d=google.com; s=arc-20160816; b=0uPpTBkIV/0u/1smIZikSfgeNIVD8cu0xK/l3Ya3sR7Trt/A68QRJhiNZCkESHl8wa TUJvvkFDuE/TxIcLgPo026F2e9gDc1X3Ob3P5Zw3+j1Dwt3PhF3uO0Ci9OeilergmwDf 5rs3POhb90hMWuZLniqkQINOG8Pc2OMy39B0zUl5oulDY9M67N02UCXEhAevG0Csi/rY wwDZmjYL5hkNBjFFUctdvrwO0qF5WJJkeEoHD0DV62lSz1K2wqcKe26OwPOPTkOg5Rvg KreMnTnq9sx0eWXSJcl1mgsLQv5Wvqjr8zXOtpBgD8vTeO9m5XorDxq0fS3l7RM40C0B K/ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=LKA1JyRJjWGTYGvEGOHmNW4L3n55zJuXWA5Ivf87G6g=; b=z1Jv37tFnGB/xw+z9GODnwsAg/9RqdrBnlsSJrD6kIebsumyHGY6CFpyHK5EV4ON3s HDuMzcmEVwkgD1YDwbfNbsCiJyxpRlILpjux0epfiPznE3m9EF1Cr0eNLM6CIXTNXbKq ZnwqyxzcLv4FGPk3maXRy6rkisBXNynChYepxRIfSmCOz5HwWjSj3LN3kIVAAc1gimsQ V80Wm7gG1dfZsiKNL30OS/wJQMrgIDdlB07S7Rcpf6Zt4IaobuUcnUXphUxFiXa892K9 fZzuFYs2BFRAbkS3sBE1cLsVrJzqHwFJnn68JVT/hDtTOe4IT9tSdrFmf1vOfzDmQDDY 3/aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=bq3BKyRf; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=RyhyT905; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a9-20020a056870b14900b000e59114750csi5384187oal.202.2022.04.26.12.03.41; Tue, 26 Apr 2022 12:03:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=bq3BKyRf; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=RyhyT905; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348486AbiDZQlq (ORCPT + 99 others); Tue, 26 Apr 2022 12:41:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235466AbiDZQlp (ORCPT ); Tue, 26 Apr 2022 12:41:45 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EF6411C0F for ; Tue, 26 Apr 2022 09:38:37 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 0EE181F380; Tue, 26 Apr 2022 16:38:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1650991116; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LKA1JyRJjWGTYGvEGOHmNW4L3n55zJuXWA5Ivf87G6g=; b=bq3BKyRf9nqWYObxLiA3xYv2x8AjnXL++n1W94XOSlTwy+3qJLjpNv+SbF32fVMshT/KbK +mObCDP09xSauz4EEL8+/7k781+JbJYShAuyoRblULNi0HttyfzBzwt8oHOsYnqG/PP/xG wdGHcwUxStqJVNqFVXpsgIOXRKS+yJw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1650991116; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LKA1JyRJjWGTYGvEGOHmNW4L3n55zJuXWA5Ivf87G6g=; b=RyhyT905GqUAiZiQVsqHmK+dZMfokmVv8mH3a+pwypj56jiMhMb9ZS3bJ1uEKIYb93bqYa BRsD0RDFf5P7aGCQ== Received: from kunlun.suse.cz (unknown [10.100.128.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id ECE0D2C141; Tue, 26 Apr 2022 16:38:35 +0000 (UTC) Date: Tue, 26 Apr 2022 18:38:34 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Dan Williams Cc: Linux Kernel Mailing List , Linux NVDIMM Subject: Re: ndctl tests usable? Message-ID: <20220426163834.GI163591@kunlun.suse.cz> References: <20220426123839.GF163591@kunlun.suse.cz> <20220426161435.GH163591@kunlun.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 26, 2022 at 09:32:24AM -0700, Dan Williams wrote: > On Tue, Apr 26, 2022 at 9:15 AM Michal Such?nek wrote: > > > > On Tue, Apr 26, 2022 at 08:51:25AM -0700, Dan Williams wrote: > > > On Tue, Apr 26, 2022 at 5:39 AM Michal Such?nek wrote: > > > > > > > > Hello, > > > > > > > > there is some testsuite included with ndctl, and when following the > > > > instructions to build it most tests fail or are skipped: > > > > > > > > [ 95s] Ok: 3 > > > > [ 95s] Expected Fail: 0 > > > > [ 95s] Fail: 5 > > > > [ 95s] Unexpected Pass: 0 > > > > [ 95s] Skipped: 15 > > > > [ 95s] Timeout: 0 > > > > > > > > Is this the expected outcome or is this a problem with the ndctl build? > > > > > > > > Attaching test run log. > > > > > > I see a few missing prerequisites: > > > > > > [ 78s] /usr/src/packages/BUILD/ndctl-73/test/pmem-errors.sh: line > > > 64: mkfs.ext4: command not found > > > [ 95s] /usr/src/packages/BUILD/ndctl-73/test/security.sh: line 25: > > > jq: command not found > > > > Indeed, with those installed I get much more tests passing: > > > > [ 148s] Ok: 13 > > [ 148s] Expected Fail: 0 > > [ 148s] Fail: 4 > > [ 148s] Unexpected Pass: 0 > > [ 148s] Skipped: 6 > > [ 148s] Timeout: 0 > > > > > > > > This report: > > > > > > [ 51s] 1/23 ndctl:ndctl / libndctl SKIP > > > 0.02s exit status 77 > > > > > > ...seems to indicate that the nfit_test modules did not appear to load > > > correctly. I never expected that the nfit_test modules would be > > > redistributable, so I was surprised to see them being installed by an > > > actual package "nfit_test-kmp-default-0_k5.17.4_1-6.1". The reason > > > they are not redistributable is because they require replacing the > > > production build of the kernel provided modules libnvdimm.ko, > > > nd_pmem.ko, etc... What I expect is happening is that the production > > > version of libnvdimm.ko is already loaded (or is the only one on the > > > > AFAICT neither is the case, that's why I dump the module information in > > the log. > > The modinfo just tells you what modules are available, but it does not > necessarily indicate which modules are actively loaded in the system > which is what ndctl_test_init() validates. Isn't what modinfo lists also what modrobe loads? There isn't any pmem so I don't see why production modules would be loaded before the test modules are installed. Unloading the modules first does not really make any difference. Thanks Michal