Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2280471rwb; Mon, 15 Aug 2022 02:21:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR6RLvyra2++mE9vCuV0wIhcypyqXeKjRpR5Hvwf4LnZHY0SzuoZ1Th5D09H++fnQwDOCxIf X-Received: by 2002:a63:8541:0:b0:428:d43d:7f0f with SMTP id u62-20020a638541000000b00428d43d7f0fmr3957663pgd.248.1660555267148; Mon, 15 Aug 2022 02:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660555267; cv=none; d=google.com; s=arc-20160816; b=O3UnfAk6Q4NbG4sDp8DtXgMcQ/ZGGf8vlCYJZNbibaCHOQVZtayA3Nc8A+w/dQI4qW uPDj2dWgNLcPqla2M0fyulrSzzQNSeKJ6THTc6uM6TX1BKAS1js3H8fVQm2CBxpbTZbA LmR6Q/QT3CXOcxOYLgm60TBPWtM4l2J+ktbUruz1EMTI10JzA1fucoqo7pQXTlWqg7kR 8I5YJp87YCAgr8l3bEdDvlQp2aStXgb/rXhHW00UM4R70OkGWQuhS5xB0zO/YLjdPKg/ /67J7j+AXDunm+F65/WW5aTBD33GWUoV6H5BtfCddOmnNV5LgcalQb8iS0MAyHonr9Gi lMkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=m6s8qUOEVr22U83noP/tVr9KuoftkbcmVdQXPhi8USo=; b=hXed1gL5oLQnoE4ozZ7Ma5+vjChRVCOjgGkI1qKpLmqOps/9iZPSbQYSJ7LcGYoapx UIoK/iTb2suKufxQ6VPnaMlRRfDqTZ9kFrZ2xINUhyvhm6YQjqB3oEBzFA4U29/SvIYI 1e3TCovIsuZI0OLb5GQZWMOFaqkjZE8jt8l6ECukmZpVqLtduCVMOIXikrpnQZYdf/vz PMywJHWXQBGo8QoXD9aHZ2oqddhlZjdiuojKUMp1PSMzqZA81hEfZnHAGmqvSFUFvLiV yewclDyrP8dWZ349c7j5qMICa1Ek398xf5ZRnM1ldbulWL9P3c0zi/qUpUuueXtvucMA lkcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MF2Hsx8e; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oe13-20020a17090b394d00b001f2c5c02eb1si14891337pjb.117.2022.08.15.02.20.55; Mon, 15 Aug 2022 02:21:07 -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=@gmail.com header.s=20210112 header.b=MF2Hsx8e; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230465AbiHOJQd (ORCPT + 99 others); Mon, 15 Aug 2022 05:16:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229947AbiHOJQb (ORCPT ); Mon, 15 Aug 2022 05:16:31 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9846C1C929; Mon, 15 Aug 2022 02:16:30 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id z12so8361731wrs.9; Mon, 15 Aug 2022 02:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc; bh=m6s8qUOEVr22U83noP/tVr9KuoftkbcmVdQXPhi8USo=; b=MF2Hsx8eRQ+ddABJaioZXRQkbWdBoSBaxKAlFAtxBrkr8Y+evgMunZB9CIJAF7CTis stE192n7C2pOoxiHxpjyZD+eVUXLI4vM0OM8xIjLmhsccYDVK0TI7vCRa07kjUZso7UF Eh+AieL3Wmiva9tOR551uh3GIxxuzblsd8uoI7v95052ZPbjwsj7CcVscCHTQm01jydj KlravQklA25nDStpW77CFH0K44ST5NwZTQgIRUe/zZj0j5dCy4TEc1G0hQ7Gx2jCa95L F38YwRAvs6LkVcUzDl8XfsSjuORZVmL5B5hKiYev7Zo85/SM30v+xrLFbeDiJCs2MI2m X0pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=m6s8qUOEVr22U83noP/tVr9KuoftkbcmVdQXPhi8USo=; b=LSmCx4rRsaj4riI12m3X8DSsKHX2pKjY73RVGDevtPWrfu0uB7RlsM/h+v2TXxgyWz nVx8c9bvkCwYH/qbXNsNHijuN3wtoUawDl6LcubOqdfewvKgMa4UowguVIRgj/tY1ZXs T55ctvy0MXemP/mz4SYuRqo9+2f8QrxVtwJ+Y+mjfrmP2OHHVINbjMbrg0QQzoypqj8y O2L5XV5tgTRU56ui0BiRax/lnYuFvwfyI/WN4bPnzpddOXDM9hHmcu+mDFeaZcrB6pJu zDUBbUWSpNz1yGP9ZEfMC2GQT4A8yWy7hO5zCywW3nlCBhs2Vss3fjhmUfOwzvx5CXsm Jm/w== X-Gm-Message-State: ACgBeo2n0U1TNUv2TpDonO+RtSMH9Ft4WKylloXvJ8SKQhGFryAcSmuY /142WYzlOdZKeenBilKbiMAK4BYmMoAJ0S5t2Os= X-Received: by 2002:a5d:6b12:0:b0:21f:1568:c7e1 with SMTP id v18-20020a5d6b12000000b0021f1568c7e1mr8151636wrw.532.1660554989136; Mon, 15 Aug 2022 02:16:29 -0700 (PDT) MIME-Version: 1.0 From: Ramon Fried Date: Mon, 15 Aug 2022 12:16:16 +0300 Message-ID: Subject: Running kunit tests on platform devices To: brendanhiggins@google.com, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi. I implemented a test suite that checks a platform driver, that's the only way I can test interrupts behavior in the code. Because it's a platform, I can't use kunit_test_suite(), so I call __kunit_test_suites_init() as part of the platform driver probe function. This works fine but has the following problems. "TAP version 14" string is not printed and it's impossible to parse the results using the script. In addition, the suite is not displayed in /sys/kernel/debug/kunit. It would be my pleasure to provide a patch that fixes this, I just wanted to make sure that my testing strategy makes sense. Thanks, Ramon