Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5333478rwl; Mon, 3 Apr 2023 18:53:28 -0700 (PDT) X-Google-Smtp-Source: AKy350bVFE3WRX1K1wiGPQoVOWAfbzIJOuYVqXzY/aHFFkI/jEgI2hmG+Vj76hB6xCxR6dsEvrLK X-Received: by 2002:a05:6a20:89a7:b0:d9:91d2:b81e with SMTP id h39-20020a056a2089a700b000d991d2b81emr529195pzg.62.1680573208221; Mon, 03 Apr 2023 18:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680573208; cv=none; d=google.com; s=arc-20160816; b=D0RJu1iepkqTJpu0PtyL9EWsc5PwdlrJnjVIPyNnktFrUPgTV3WuSjK/sE9GUAhzPy jTdEh5ewVG4oCx+j77pm7OR3UljYcPffG3yLErX+VOdBSscifGxIXnY1t8FmKVVkmF1K zInH7qg3Cw8QvHx6bcM3WMJbhhcsagf5Z8mTiwFsl5TcmyMb0bJuL8V+BedP6yjeOQCr hJ8s5ygd2vPqJB3nIaSvR1nN1zdeChs740+JPhqoeUcK6P+jpIGSvaU2b32BPhb8BJyP j7XMEajxTpKg6A2vtWF6kc3nZkJS9aLoyRhx/ydrWn83NsPcLRv8r7HV1F/mACSpZ4LJ fm7w== ARC-Message-Signature: i=1; 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:feedback-id :dkim-signature:dkim-signature; bh=GQrl89O1RAwOi5BoeGN0zQm5w3SNwrUnoP1QapVDans=; b=0zBf3Z2TGet2hfMcsEqqrb7lH+FhzKeWO8vDjnGQ63vQNs9/9ZpUBKM6hvW/venMDy QKuKayAWparzkWH2MYq5XRrQZwv/5cu4ShTDo643K9JACsLj3fipZKFKVQ55pwQ4t9I9 eznUNvQ3HiE1ABMRn7JyDY5HLnFOmb/0uUXuO+S7x7XFc3KR5zfHp13SRbRvi2sNdv1/ OPmb1cereV5a+02X2Yzk0AUT5jajZb8gUQpKUzwS/mqc4Fv8iBhf8cl/Lsil68vtHm5r xmnX1E+f27ZY9LI8aYq0LDKoLhD0we+UE794D9jlyqAZ2p++iHPNrxZcf03D+FDrJBIq nz9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@who-t.net header.s=fm1 header.b="Z/QqfEdM"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=DYNxPFQE; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a63de0a000000b0050f8a43b1bdsi9362162pgg.181.2023.04.03.18.53.16; Mon, 03 Apr 2023 18:53:28 -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=@who-t.net header.s=fm1 header.b="Z/QqfEdM"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=DYNxPFQE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232681AbjDDBhr (ORCPT + 99 others); Mon, 3 Apr 2023 21:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbjDDBhp (ORCPT ); Mon, 3 Apr 2023 21:37:45 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B44FDB8; Mon, 3 Apr 2023 18:37:43 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4E9E65C01BE; Mon, 3 Apr 2023 21:37:41 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 03 Apr 2023 21:37:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=who-t.net; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1680572261; x=1680658661; bh=GQ rl89O1RAwOi5BoeGN0zQm5w3SNwrUnoP1QapVDans=; b=Z/QqfEdMmmJs0ljPwO u7xPN5DG1HwhElSf3kR9ewWFdEVSNVOMjljR3qZMjlL0zMdTo2meEEeFapiDRS/C Q859oCSFUv77gWgj0BiE2TdfR2ABGh4JL2oSiwpu7Xb8TZdf3AN7ze1VulOIz0cv gEDK9ymmuQXAE094cV6BBnIbANDso9P+LWxMm1YFMXsdSFCzi3RMgACW696EMQtV zpcvJQo2yOw7gI/m4c6+7otm8e0DhZXLKioODJbxpVCiO63ONe1qnQo6DD5Ihs6j bOPrLvrd2kFf6RdEJqQ03X9PJ+OAyHE7BRhtcXZ7KSr+/4L84LDOE6bSMuDOUEOL oUOg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1680572261; x=1680658661; bh=GQrl89O1RAwOi 5BoeGN0zQm5w3SNwrUnoP1QapVDans=; b=DYNxPFQEd2dHK5hFs2GRIQh3VTwnQ 2uSxRajzjH+iqoMetCdRxBELRp0lnlKNSRJH7eOrNYHFwtu90aOuSPkDHqEUd6BR CtbyTWGxIX+oEQ1mAQMfXxr50MZ9XK6/EO56pVtMXo2VDqSgh8IZlFpQ+Ht6gL35 1yFRWmBdHKndipTVg3nnmIdGF/j8btKudP+pBK6dNsnGHQ2E16lpX8QDkiYNpDh7 PrUh92ZaCAsGdWs7EwtK8DPd9xznTi0n+u68CRx2h4bThEmKKFgCeSiCOvu9bHU7 4Mle4VpPn3NTe6eC5W5eXBTGJ5rZA8UbNigNT2uXkWdmdW8YOSNK3bbxw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeikedgfeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheprfgvthgv rhcujfhuthhtvghrvghruceophgvthgvrhdrhhhuthhtvghrvghrseifhhhoqdhtrdhnvg htqeenucggtffrrghtthgvrhhnpeefgfejvefgudfhfeevudekueegtdeutdejhffhhfdv keejhfehheefgfehteejffenucffohhmrghinhepfhhrvggvuggvshhkthhophdrohhrgh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvght vghrrdhhuhhtthgvrhgvrhesfihhohdqthdrnhgvth X-ME-Proxy: Feedback-ID: i7ce144cd:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Apr 2023 21:37:35 -0400 (EDT) Date: Tue, 4 Apr 2023 11:37:31 +1000 From: Peter Hutterer To: Benjamin Tissoires Cc: Jiri Kosina , Shuah Khan , linux-input@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Candle Sun , Jose Torreguitar , Roderick Colenbrander , Silvan Jegen , Kai-Heng Feng , =?utf-8?B?0L3QsNCx?= , =?utf-8?B?Qmxhxb4=?= Hrastnik , Jason Gerecke , Nicolas Saenz Julienne Subject: Re: [PATCH 00/11] selftests: hid: import the tests from hid-tools Message-ID: <20230404013731.GA38303@quokka> References: <20230217-import-hid-tools-tests-v1-0-d1c48590d0ee@redhat.com> <20230403162024.sespaq5iwbjan4xl@mail.corp.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230403162024.sespaq5iwbjan4xl@mail.corp.redhat.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 Mon, Apr 03, 2023 at 06:20:24PM +0200, Benjamin Tissoires wrote: > On Feb 17 2023, Benjamin Tissoires wrote: > > I have been running hid-tools for a while, but it was in its own > > separate repository for multiple reasons. And the past few weeks > > I finally managed to make the kernel tests in that repo in a > > state where we can merge them in the kernel tree directly: > > > > - the tests run in ~2 to 3 minutes > > - the tests are way more reliable than previously > > - the tests are mostly self-contained now (to the exception > > of the Sony ones) > > > > To be able to run the tests we need to use the latest release > > of hid-tools, as this project still keeps the HID parsing logic > > and is capable of generating the HID events. > > > > The series also ensures we can run the tests with vmtest.sh, > > allowing for a quick development and test in the tree itself. > > > > This should allow us to require tests to be added to a series > > when we see fit and keep them alive properly instead of having > > to deal with 2 repositories. > > > > In Cc are all of the people who participated in the elaboration > > of those tests, so please send back a signed-off-by for each > > commit you are part of. > > > > This series applies on top of the for-6.3/hid-bpf branch, which > > is the one that added the tools/testing/selftests/hid directory. > > Given that this is unlikely this series will make the cut for > > 6.3, we might just consider this series to be based on top of > > the future 6.3-rc1. > > > > Cheers, > > Benjamin > > > > Signed-off-by: Benjamin Tissoires > > --- > > Jiri, do you mind if I push that code in the hid tree with the following > changes: > - Peter privately gave me his signed-off-by Apologies, this fell off my list after the initial ack in a meeting with Benjamin. This time publicly: Signed-off-by: Peter Hutterer for the relevant commits. Cheers, Peter > - I included changes from https://gitlab.freedesktop.org/libevdev/hid-tools/-/merge_requests/143 > to fix the failing sony tests in v6.3 > > I am not a big fan of sending a v2 because the ML are not happy with the > amount of changes... > > Cheers, > Benjamin > > > Benjamin Tissoires (11): > > selftests: hid: make vmtest rely on make > > selftests: hid: import hid-tools hid-core tests > > selftests: hid: import hid-tools hid-gamepad tests > > selftests: hid: import hid-tools hid-keyboards tests > > selftests: hid: import hid-tools hid-mouse tests > > selftests: hid: import hid-tools hid-multitouch and hid-tablets tests > > selftests: hid: import hid-tools wacom tests > > selftests: hid: import hid-tools hid-apple tests > > selftests: hid: import hid-tools hid-ite tests > > selftests: hid: import hid-tools hid-sony and hid-playstation tests > > selftests: hid: import hid-tools usb-crash tests > > > > tools/testing/selftests/hid/Makefile | 12 + > > tools/testing/selftests/hid/config | 11 + > > tools/testing/selftests/hid/hid-apple.sh | 7 + > > tools/testing/selftests/hid/hid-core.sh | 7 + > > tools/testing/selftests/hid/hid-gamepad.sh | 7 + > > tools/testing/selftests/hid/hid-ite.sh | 7 + > > tools/testing/selftests/hid/hid-keyboard.sh | 7 + > > tools/testing/selftests/hid/hid-mouse.sh | 7 + > > tools/testing/selftests/hid/hid-multitouch.sh | 7 + > > tools/testing/selftests/hid/hid-sony.sh | 7 + > > tools/testing/selftests/hid/hid-tablet.sh | 7 + > > tools/testing/selftests/hid/hid-usb_crash.sh | 7 + > > tools/testing/selftests/hid/hid-wacom.sh | 7 + > > tools/testing/selftests/hid/run-hid-tools-tests.sh | 28 + > > tools/testing/selftests/hid/settings | 3 + > > tools/testing/selftests/hid/tests/__init__.py | 2 + > > tools/testing/selftests/hid/tests/base.py | 345 ++++ > > tools/testing/selftests/hid/tests/conftest.py | 81 + > > .../selftests/hid/tests/descriptors_wacom.py | 1360 +++++++++++++ > > .../selftests/hid/tests/test_apple_keyboard.py | 440 +++++ > > tools/testing/selftests/hid/tests/test_gamepad.py | 209 ++ > > tools/testing/selftests/hid/tests/test_hid_core.py | 154 ++ > > .../selftests/hid/tests/test_ite_keyboard.py | 166 ++ > > tools/testing/selftests/hid/tests/test_keyboard.py | 485 +++++ > > tools/testing/selftests/hid/tests/test_mouse.py | 977 +++++++++ > > .../testing/selftests/hid/tests/test_multitouch.py | 2088 ++++++++++++++++++++ > > tools/testing/selftests/hid/tests/test_sony.py | 282 +++ > > tools/testing/selftests/hid/tests/test_tablet.py | 872 ++++++++ > > .../testing/selftests/hid/tests/test_usb_crash.py | 103 + > > .../selftests/hid/tests/test_wacom_generic.py | 844 ++++++++ > > tools/testing/selftests/hid/vmtest.sh | 25 +- > > 31 files changed, 8554 insertions(+), 10 deletions(-) > > --- > > base-commit: 2f7f4efb9411770b4ad99eb314d6418e980248b4 > > change-id: 20230217-import-hid-tools-tests-dc0cd4f3c8a8 > > > > Best regards, > > -- > > Benjamin Tissoires > > >