Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1107934rwl; Wed, 12 Apr 2023 08:21:01 -0700 (PDT) X-Google-Smtp-Source: AKy350aYvto1UXnTLKoBH42BeynLXio+A+0klYrZfZVQ3/TvQjLD6dyarb50IXmB2ESUz0dJ5vx3 X-Received: by 2002:a05:6a20:46a5:b0:da:adbf:7b96 with SMTP id el37-20020a056a2046a500b000daadbf7b96mr14416737pzb.21.1681312861091; Wed, 12 Apr 2023 08:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681312861; cv=none; d=google.com; s=arc-20160816; b=npEmYqGcgDC8Rs8AZXMO68zMyrwczOZmhqX6lzddVC5KTv9QDaHc54W6IQ080gJInr Inx2QEGL09XFeZtPA3JhzjycC9SadM0WgwK8giG/EOU3NSt5XU7UPvlN0hXlEhrOQcef m4xcQ86pavvPYjPHK55wl5k/Sq874C8l9JG7rQyDMQJx38KRgx0umNbXjcSk1HKKIUCo fc0PlFd1vmY6qSlP9KoPPDEbYDtiXIDIeMIM5vup7gEfhmyyLVPd7RixOk4e1DhIeCdl ig4suG8XDe4zkcpReXuUpLaLObXsouNmeutBkk6+AbykCXfy6W5xcH45ox1SNDvoBXW0 dR8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Wl8XIpZwxFbJg/0roJGAYEyhzbXJ2CitbivzO+IalAs=; b=NQyG+DVFaftIO5iKq3I5ZOhptqRjXEU+j+/3dLPSL7Am+ZdjMbdLhXDeCGK06us50m w064fwy+SnqodAv9QqDY2/AFA/qLQpn8JBao+io3FmWPC3tKbhOGMSsMhr/k+YGTYdei lRwR9RTnxi+g7z+5Ygfd6X6MGEshlwqPG/4FfVNYG2wSz2MzKFWFe+3itJb6sS3o8PUM dPRiRJ5Don6Hb7YAaKmkLsge1nh+IdvYuIPceloIb/gxEuchN1H/aFh/lnzR5hs0+JLc l3HtrEvW/Z8yTx/C/SUKTgaIXyLGTXwWshzchu8njyfC1fYOKUoua9m1FityCAqsWBSh KSkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EnhYVyyy; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m1-20020a625801000000b005a8b3c6b5c1si16819719pfb.245.2023.04.12.08.20.48; Wed, 12 Apr 2023 08:21:01 -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=@redhat.com header.s=mimecast20190719 header.b=EnhYVyyy; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231159AbjDLPTm (ORCPT + 99 others); Wed, 12 Apr 2023 11:19:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231538AbjDLPT3 (ORCPT ); Wed, 12 Apr 2023 11:19:29 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9D017ABC for ; Wed, 12 Apr 2023 08:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681312701; h=from:from:reply-to:subject:subject: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=Wl8XIpZwxFbJg/0roJGAYEyhzbXJ2CitbivzO+IalAs=; b=EnhYVyyyJmQDp6K7nEtkVQ13VMz3vH/A79J3e2H7IWlh3OHvsiZUVY0m0o6L1iTmkuugDV RTNokas6JLw2vahWfMOJqbxrncYcBpuboT98HT5i0zIHKa+u+OeS3ZOotDV7u2u1bOQCjk CJ7S5kYXdOWGVRcCIzGKieWX8eJ9Tb0= Received: from mail-yb1-f197.google.com (mail-yb1-f197.google.com [209.85.219.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-232-HHLLCBhzNb-aRkiMG78anA-1; Wed, 12 Apr 2023 11:18:20 -0400 X-MC-Unique: HHLLCBhzNb-aRkiMG78anA-1 Received: by mail-yb1-f197.google.com with SMTP id e6-20020a25e706000000b00b7c653a0a4aso4634956ybh.23 for ; Wed, 12 Apr 2023 08:18:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681312699; x=1683904699; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Wl8XIpZwxFbJg/0roJGAYEyhzbXJ2CitbivzO+IalAs=; b=UqlcQqjV6z0RSGr3R7gH4+o4tsRLAUMVdccJjVvwJOSRmr0SxJwO9bnDJK1rQ5640z GxPmsxBZyoX51S37WmcsgHo6uI7SiRrWgJdwxYF5p7MbSKck/wNbpnwZongpOuD4L41O VryjxjBnKI7ideixZtY6mfIsdJJaZeXdzgZEfjQIp5PFfUy4w6wV3Zc4HVrEnsXG/mWL JyFEaqpoqwe9DqP1y1XP1SpsLXf3/1uPCi7yJEz56tPtid4h1plD+qXJE8EfTJqc4S0Q 8wrMJN/+t8AblSa7blHrSorg4cJ1KTiqHUdoX5cg56sWIumFJXLlTM/P6nPeQ9GJj63X 4bEg== X-Gm-Message-State: AAQBX9fa+fOHoPFaEQbedJoewuUbI3CrHKLDRIraONjKJ5WrGvyvPJHr 8Dj7l1OHKXtUYkZdQ8FZce+DUcETt8iQFmFGqlmYMZJSbqtsZfvuBqu71dOWVskJdcSAHBwsKVu xuujdsGAvdcARxMEYNorwvxwHvvid7Guse7QbpSvd X-Received: by 2002:a81:c406:0:b0:54c:5102:2196 with SMTP id j6-20020a81c406000000b0054c51022196mr1616295ywi.5.1681312699243; Wed, 12 Apr 2023 08:18:19 -0700 (PDT) X-Received: by 2002:a81:c406:0:b0:54c:5102:2196 with SMTP id j6-20020a81c406000000b0054c51022196mr1616282ywi.5.1681312698914; Wed, 12 Apr 2023 08:18:18 -0700 (PDT) MIME-Version: 1.0 References: <20230217-import-hid-tools-tests-v1-0-d1c48590d0ee@redhat.com> <20230403162024.sespaq5iwbjan4xl@mail.corp.redhat.com> <20230404013731.GA38303@quokka> In-Reply-To: From: Benjamin Tissoires Date: Wed, 12 Apr 2023 17:18:08 +0200 Message-ID: Subject: Re: [PATCH 00/11] selftests: hid: import the tests from hid-tools To: Roderick Colenbrander Cc: Peter Hutterer , 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?Q?Bla=C5=BE_Hrastnik?= , Jason Gerecke , Nicolas Saenz Julienne Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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 Wed, Apr 5, 2023 at 1:22=E2=80=AFAM Roderick Colenbrander wrote: > > Hi Benjamin, > > I like the direction of bundling the tests with the kernel and should > make it easier in case there are driver changes breaking tests as > well. > > Signed-off-by: Roderick Colenbrander Thanks everybody. I have now pushed this series with the sony fixes from hid-tools in the branch for-6.4/tests, in the hid tree. Cheers, Benjamin > > Thanks, > Roderick Colenbrander > > On Mon, Apr 3, 2023 at 6:54=E2=80=AFPM Peter Hutterer wrote: > > > > 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 follow= ing > > > changes: > > > - Peter privately gave me his signed-off-by > > > > Apologies, this fell off my list after the initial ack in a meeting wit= h > > 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-table= ts 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 > > > > > > > >