From patchwork Wed Nov 29 15:24:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Tissoires X-Patchwork-Id: 17280 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a5a7:0:b0:403:3b70:6f57 with SMTP id d7csp414314vqn; Wed, 29 Nov 2023 07:25:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IFt8aZcC0d4CwUkLWDamllai2OAq28ZXdJ/T60WiGrySnPA7EGN8BnC2SYXYHOczEBWL9rT X-Received: by 2002:a05:6808:114f:b0:3b6:dd3c:5f78 with SMTP id u15-20020a056808114f00b003b6dd3c5f78mr25581105oiu.44.1701271520967; Wed, 29 Nov 2023 07:25:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701271520; cv=none; d=google.com; s=arc-20160816; b=YZSbjIURIyPkSuvIlUlZmy2+Z4Im7j28vdcKO904Cp0MzdHcaKZ/Z9SKod9L4hoBIj 6cgBcvXa1liTtyR1jyi+KgTej6csJ/t/h456pDOvt/VVMPTs6hHwsCqZh/ys4M3lsFBE 9+Jo1yGwOXQm4cX6VmYs/HEu3FTNwnWt8EX7QtwDs5HFpMNFJ2gWtd1wZNY8HUgblXTQ Ze8xYS0p2wKr1VkoFKGbwQUE4sYPmnHaPxq9hdkzgOoFWDMnnods38mqvoZSMUza13ni vdUmOSBz2+tX1dZsdbKOWsc/KKKw/ZFm96eMgJW9HzaORJ4Z08KYVXqjO0XCYPQF8/Fv L/8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=Mzhshc0c201dxW5t+C66rt2YmY3UN+kkeN9DsOnEdg8=; fh=M/4CRKlsQR53kOvbvsHfGDOrpcvBUt/h3Rh4tB3zkdA=; b=LNn4Dhy+5xoFdobe76oirI1daHv40yny7Bi/mfa8h1xxtMW4K//Vd4VkKazSU1ksQU R4SnijEdOPFK73cxq3b11NhXnuxWM6FqjxxNrxPDlLPmLN4DQJ2rvevDdiT5XoKg3bpX 5xsuXaqvOCm5iP2M20XC6hRG58i/gKHM+ijfLFEoul4FYkZ9ktgtqJyVsOfRVKFxCfdm kk7v4+LA7xn5O9sY5CQ5S5oqK9YRxBGkGMyBq6njeT+R/YsYBe4aOldf2+oVbFNpZw66 DLUX+OnB51Sx/z61Mch9ki/yWB/KKEPGr1JvGLkeQR8VSSUc/aA/JHU3hDDVww5r5L1s F6yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QhX2ObSP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id h1-20020a63c001000000b00565db2812a0si15137658pgg.60.2023.11.29.07.25.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 07:25:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QhX2ObSP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id BB1F6802158B; Wed, 29 Nov 2023 07:25:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234863AbjK2PY5 (ORCPT + 99 others); Wed, 29 Nov 2023 10:24:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234830AbjK2PYz (ORCPT ); Wed, 29 Nov 2023 10:24:55 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0447C90 for ; Wed, 29 Nov 2023 07:25:02 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 241E9C433C7; Wed, 29 Nov 2023 15:24:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701271501; bh=cZBkVWd4/6X6QdhqP9qGKmaGIqbyGs6bbXMaN3ewrnE=; h=From:Subject:Date:To:Cc:From; b=QhX2ObSP4vuiRN89P3DObSkygZj45XzBHq0O57ay8hpLuz5qJM3jzw1br1tonuGM6 U4mtnbvtDNL20/7q18PRF+qQ4asBaD71fkpzgZy2BXwVGsHJqlwBJWQlcEZ5Htijr7 LigfN2aX4Pd5kYkZ7GP3kIoBtkzYOJj/hd0NrTZGkE43xtz/ceqs94MWHOh3mTB+u2 JgzrKS6xJR1/NJFlY/w8hS2dV6RODrdJCRCIdaAz/s6QsCPPsLmRJcEXUaA18J88cY CKXHXhYSrWEOxmo04eJHvaOGJlzuW+aesKSW8eTmH3cnq/AL6T+QqMOom0nIsGCZJZ Ntp5bte5WOf2w== From: Benjamin Tissoires Subject: [PATCH 00/12] selftests/hid: tablets fixes Date: Wed, 29 Nov 2023 16:24:25 +0100 Message-Id: <20231129-wip-selftests-v1-0-ba15a1fe1b0d@kernel.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAKlXZ2UC/x3MMQqAMAxA0atIZgtNFBWvIg5FowZEpSkqlN7d4 viG/yMoe2GFvojg+RaV88jAsoBpc8fKRuZsIEsVIqF55DLK+xJYgxpr0U01tWy7BnJzeV7k/X/ DmNIHXPFSuF8AAAA= To: Jiri Kosina , Benjamin Tissoires , Shuah Khan , Peter Hutterer Cc: linux-input@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Tissoires X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1701271499; l=1942; i=bentiss@kernel.org; s=20230215; h=from:subject:message-id; bh=cZBkVWd4/6X6QdhqP9qGKmaGIqbyGs6bbXMaN3ewrnE=; b=sAY39EC2SafO3vFoESZlRu2bryuijrK3ykmpRUQU/H9rmM2cLfZt1Y+vBZSgqfpI1hDW4or2b kF/NgbmL04wDPW1m3dNaZx6nhX6BwGZPQ7wdd8xJUP1p+qLGRWH2DuO X-Developer-Key: i=bentiss@kernel.org; a=ed25519; pk=7D1DyAVh6ajCkuUTudt/chMuXWIJHlv2qCsRkIizvFw= X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 29 Nov 2023 07:25:15 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783912486530722229 X-GMAIL-MSGID: 1783912486530722229 Hi, the main trigger of this series was the XP-Pen issue[0]. Basically, the tablets tests were good-ish but couldn't handle that tablet both in terms of emulation or in terms of detection of issues. So rework the tablets test a bit to be able to include the XP-Pen patch later, once I have a kernel fix for it (right now I only have a HID-BPF fix, meaning that the test will fail if I include them). Also, vmtest.sh needed a little bit of care, because boot2container moved, and I made it easier to reuse in a CI environment. Cheers, Benjamin [0] https://lore.kernel.org/all/nycvar.YFH.7.76.2311012033290.29220@cbobk.fhfr.pm/ Signed-off-by: Benjamin Tissoires --- Benjamin Tissoires (12): selftests/hid: vmtest.sh: update vm2c and container selftests/hid: vmtest.sh: allow finer control on the build steps selftests/hid: base: allow for multiple skip_if_uhdev selftests/hid: tablets: remove unused class selftests/hid: tablets: move the transitions to PenState selftests/hid: tablets: move move_to function to PenDigitizer selftests/hid: tablets: do not set invert when the eraser is used selftests/hid: tablets: set initial data for tilt/twist selftests/hid: tablets: add variants of states with buttons selftests/hid: tablets: convert the primary button tests selftests/hid: tablets: add a secondary barrel switch test selftests/hid: tablets: be stricter for some transitions tools/testing/selftests/hid/tests/base.py | 3 +- tools/testing/selftests/hid/tests/test_tablet.py | 727 ++++++++++++++++------- tools/testing/selftests/hid/vmtest.sh | 46 +- 3 files changed, 525 insertions(+), 251 deletions(-) --- base-commit: 4ea4ed22b57846facd9cb4af5f67cb7bd2792cf3 change-id: 20231121-wip-selftests-001ac427e086 Best regards,