Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp925216lqt; Fri, 7 Jun 2024 02:54:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHKm648sXJrAS3pG2/g4Zj0NyJeeXMTy9Cx/jBU0npYlNAxblvO/F79GPuqqj+nh+eoo2lmS1zzfaTGZsO8F/VV9Lin8nktQVCfnrrGQ== X-Google-Smtp-Source: AGHT+IEVc1qn4p+Tn/H9cAfLzEH/hvWDsKWU6Gm0r2wdETAoZGnDyA50iXcuB4xwzlkUic+jUwHg X-Received: by 2002:a17:906:eea:b0:a62:fc9d:6fec with SMTP id a640c23a62f3a-a6cd74bf905mr134720766b.34.1717754056680; Fri, 07 Jun 2024 02:54:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717754056; cv=pass; d=google.com; s=arc-20160816; b=Rc3GM8xbImKaz1f0Rn9uAidbiddP77aqf3l862QztppNWM9AK78kWytXYNRKtNSESc 7niW3z6fITd17fLZ3aAw14KeaniX5N4XPWYq+bjNhZVokMzZ+1OWKT/JcCTk6Foi9aGc qRAmFHB8E5WWJ36CGhTiciCznJ/T4K/O/Gv0B1q81e/RInwXBKssof6TfZfu7A6ZVH5c ZiU4d1WmPD+T0Q78wk4yidg4tX+GmYTGm7lzLwZNtCjMltoF6pxxi/wnMkDzfAMvzTQ0 PTxE5lHsN2YvOKo8Ty/qK3sqEbnN6xn8vP4cfo5daLr0HJTkwDqG+TjaEZGcMoDc4Mwq LxAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=iDBc+vYKjKtj6u8a/QYekIU5LNIb/2PZInEYBXbC40Q=; fh=bEcArJQgZXosXjLQJQIpaO/oJlZJb3+xCO0Hh6+1KJE=; b=PvcX8/E/Wn/QBQo6fpcAaE72f6dZ1NlR+RzvRvLSw4JY6fxcRXHA0yqlFGG0+Z/DtQ GBpUKhWMw7WywBACxop7ECgvsbUAGkhmurLAuMU5RGty4a/DNVxjdV4wk7tAFY/FYKn9 9AHQ/+4ioyKXhbZSzu0urYDIkDp6V5PjjC1joXBNglpxjGGW7mVu9wlCe2Asy1R8t4xU WJiPe9QnuJZSH8VgurYFC7tHZdrlv1CgSG/zDrJsjED0Bs4+bn6i6ENiVbWHzb6oFjDT JCaa1gj6LJfm9EKoOaS/DSHYPIfpvZsiq7olufUVAn9bJxYrB8bawHYZOcY4LX8chisF IToA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=jSkC3xvS; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-205760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c806dba2esi161461766b.330.2024.06.07.02.54.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 02:54:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=jSkC3xvS; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-205760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1EC361F24723 for ; Fri, 7 Jun 2024 09:53:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85B33200A0; Fri, 7 Jun 2024 09:53:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="jSkC3xvS" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 4200BDDD9; Fri, 7 Jun 2024 09:53:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717754005; cv=none; b=MMQsdhxzay+TswcNzMuPhW0H0/O7yFRYmC8w5NP4RwHfpAOjddQPYKUJdYeMCrTAwDMcb7TdcVryXrr1sJtKGDJoHVQD3fCSNTAE6cEw6duS3QncktIkwEW+dijtSiLjful24r/kMh8Mcmq6LXywnW7hBs/1tv2sSSXDruPiyqs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717754005; c=relaxed/simple; bh=OEGZp0RgQUhhB+4aici91AXClSBltAqToX+N8t+Qx6A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Wlg5tX4otwdZ5VHoa299k9q3sFLHn4rQ88by8rdfAk+jyy3HvhEzV6Z18zLgZOOct3EH7mARSPOIi2kQp0lhwnLg0LmBKdarh+Y7eY66QnuptQ0srLJm585NsAJeqpCVqiQ4f4G54ISVRX/DByxSm1MXv3GG0zcvKHtkodHz3FE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=jSkC3xvS; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1717754002; bh=OEGZp0RgQUhhB+4aici91AXClSBltAqToX+N8t+Qx6A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jSkC3xvSDVouWmD4Pk7BJ3si8tDuT/9kjaQ6U4KEaI15VUFfXpsRTjInbX9E4gWBF NTdsbQIePCUU8SHx+xoLaDMjPnKuF+XsIjPH/zRAo+xMRurX/IDw6ZM8DsxB/EtVI1 d4DWvYuAE+BZYMtajFzE5uqecIV0pZfIfc7kvKBLs6tlVP/xLiniVZjF0Cwko4OFGY 88fKFZ1eoV/++RbwMQ6dYtwN+0wi3hd9ZG/iLjYsrvzrFNk6kJqSY3YyK56VYlgNlC 6VrQk6PjfkhqcCMmzsC0pJ2XpUAwnsxIr8UW0osKP7T3PBINaygvAR2UOPkdPcxucH 9NyAzLx0FxKTQ== Received: from localhost.localdomain (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: laura.nao) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 1D43B37811D1; Fri, 7 Jun 2024 09:53:22 +0000 (UTC) From: Laura Nao To: skhan@linuxfoundation.org Cc: kernel@collabora.com, laura.nao@collabora.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, shuah@kernel.org Subject: Re: [PATCH 0/2] Modify the watchdog selftest for execution with Date: Fri, 7 Jun 2024 11:53:47 +0200 Message-Id: <20240607095347.127823-1-laura.nao@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <646f0597-240a-4251-b45e-e45f504734a9@linuxfoundation.org> References: <646f0597-240a-4251-b45e-e45f504734a9@linuxfoundation.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Shuah, On 6/7/24 01:03, Shuah Khan wrote: > On 6/6/24 03:57, Laura Nao wrote: >> Hi Shuah, >> >> On 5/6/24 13:13, Laura Nao wrote: >>> The watchdog selftest script supports various parameters for testing >>> different IOCTLs. The watchdog ping functionality is validated by >>> starting >>> a loop where the watchdog device is periodically pet, which can only >>> be >>> stopped by the user interrupting the script. >>> >>> This results in a timeout when running this test using the kselftest >>> runner >>> with no non-oneshot parameters (or no parameters at all): > > > Sorry for the delay on this. > > This test isn't include in the default kselftest run? How are you > running this? > The goal of this series is to enable the test to be run using the kselftest runner individually, not as part of the default run. So for example w/out args: make -C tools/testing/selftests TARGETS=watchdog run_tests or with args: KSELFTEST_WATCHDOG_TEST_ARGS='-b -d -e -s -t 12 -T 3 -n 7 -N -L' make -C tools/testing/selftests TARGETS=watchdog run_tests >>> >>> TAP version 13 >>> 1..1 >>> # timeout set to 45 >>> # selftests: watchdog: watchdog-test >>> # Watchdog Ticking Away! >>> # .............................................# >>> not ok 1 selftests: watchdog: watchdog-test # TIMEOUT 45 seconds >>> >>> To address this issue, the first patch in this series limits the >>> loop >>> to 5 >>> iterations by default and adds support for a new '-c' option to >>> customize >>> the number of pings as required. >>> >>> The second patch conforms the test output to the KTAP format. >>> >> >> Gentle ping - any thoughts on this series? It would simplify running >> the >> watchdog kselftest in CI environments by leveraging the runner. >> > > This test isn't intended to be included in the default run. It > requires > loading a watchdog driver first. Do you load the driver from the > runner? > I get this test requires watchdog drivers to be loaded (which in this case can't be added to a config fragment that goes with the selftest, as they are platform-specific) and therefore cannot be included in the default run. However, having ktap output support and limiting the ping loop would allow the test to be run individually in the same way as other selftests (so through the kselftest runner). Naturally, driver dependencies must be met for the test to run and produce valid results. From my understanding the runner itself cannot ensure this, so in this case it would be up to the user or CI to enable/load the appropriate drivers before running the test. If these dependencies are not satisfied, the test could just exit with a skip code. Does this make sense to you? or is the kselftest runner intended to be used to run exclusively a subset of tests in the selftests directory (i.e. the ones that don't have platform-specific driver requirements)? Thanks, Laura