From nobody Mon Feb 9 23:44:39 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD6E2EB64DD for ; Fri, 23 Jun 2023 14:30:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231547AbjFWOa4 (ORCPT ); Fri, 23 Jun 2023 10:30:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232166AbjFWOac (ORCPT ); Fri, 23 Jun 2023 10:30:32 -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 7AC9C2695 for ; Fri, 23 Jun 2023 07:29:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687530591; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3EQ9G/WyCR5BzbeYKEOc/c4ex09bzeUnnwnMR75AIjI=; b=Te/9SbCUR3wosLUMCz0Kgo/EYnebpEtmVUEKvx2xWgPU+fNw71rWMEsbF89SqlQUwdC+Dv olOmR7V1cEiMjlRfcR9uRCzlLIH+P9JqooNgRYZVv6t/0PbgnTLWERMl8zuGsmH38E0+rK L7YpMAZ2h/+rnjmVsHHXQymqxqd+0uc= Received: from mail-vk1-f197.google.com (mail-vk1-f197.google.com [209.85.221.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-64-0rnWH1vaMrGklHoJAUwyFw-1; Fri, 23 Jun 2023 10:29:50 -0400 X-MC-Unique: 0rnWH1vaMrGklHoJAUwyFw-1 Received: by mail-vk1-f197.google.com with SMTP id 71dfb90a1353d-46609b859f3so46927e0c.1 for ; Fri, 23 Jun 2023 07:29:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687530589; x=1690122589; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3EQ9G/WyCR5BzbeYKEOc/c4ex09bzeUnnwnMR75AIjI=; b=L5mfwJRPcK419wZbXqDYuffMvvJ3D6zv5+J369H9x9NWoAy7aP7i+mUDIU2DUprAzH 2nN8uTZ4wff15mycs8x0naLj1Wfw0M27LpQ2aR7Uta65kANHEhQUyNhWneMQRGxsVVM9 ObiIPfn094mSew2OwiCWJyL+220UPzYpXAgR33Ynn7cfM6NJo1st5L+RzCLfvecUaol5 SUr862aHWYYMaZCKQkCidTkVCb2sWzQz9tpEiV7p2Sxt+4TOJGUKtFgVR0Sree+WRwQ/ vrg3ir3HXmzjSSvZVlOhmFFd3AQrdBaOxig/vx76LQSbFBnjGURVBQkusOOCkc5/T4gc A4SQ== X-Gm-Message-State: AC+VfDxEwSelHHYpfGJMGWCZ7auZCzBEJqBZfSUw+hT0mtansfQPWnVZ ytgtbqwhGSA3F2yNA7boSMnDSiE2WlrF5tOfiQNP7JK0lnbxT55SWxHzS0uAVtKKiykJmRaq85S 2JP9WLWL8H1FEwCc4CsncKADw X-Received: by 2002:a05:6102:2158:b0:440:a365:ad50 with SMTP id h24-20020a056102215800b00440a365ad50mr6848581vsg.1.1687530589438; Fri, 23 Jun 2023 07:29:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5OV7Q+bQTZ8nHFXS9cjC6+LnDnU4rBFQijCL6Szo7CDKJQ/6LTVykZKitewlwT3KIiAhTFvw== X-Received: by 2002:a05:6102:2158:b0:440:a365:ad50 with SMTP id h24-20020a056102215800b00440a365ad50mr6848561vsg.1.1687530589175; Fri, 23 Jun 2023 07:29:49 -0700 (PDT) Received: from x1n.. (cpe5c7695f3aee0-cm5c7695f3aede.cpe.net.cable.rogers.com. [99.254.144.39]) by smtp.gmail.com with ESMTPSA id b9-20020a0cc989000000b0062821057ac7sm5104827qvk.39.2023.06.23.07.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 07:29:48 -0700 (PDT) From: Peter Xu To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Lorenzo Stoakes , John Hubbard , Andrew Morton , Mike Rapoport , David Hildenbrand , peterx@redhat.com, Yang Shi , Andrea Arcangeli , Vlastimil Babka , "Kirill A . Shutemov" , James Houghton , Matthew Wilcox , Mike Kravetz , Hugh Dickins , Jason Gunthorpe Subject: [PATCH v3 7/8] selftests/mm: Add -a to run_vmtests.sh Date: Fri, 23 Jun 2023 10:29:35 -0400 Message-Id: <20230623142936.268456-8-peterx@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230623142936.268456-1-peterx@redhat.com> References: <20230623142936.268456-1-peterx@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Allows to specify optional tests in run_vmtests.sh, where we can run time consuming test matrix only when user specified "-a". Signed-off-by: Peter Xu Acked-by: David Hildenbrand --- tools/testing/selftests/mm/run_vmtests.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/self= tests/mm/run_vmtests.sh index 3f26f6e15b2a..824e651f62f4 100644 --- a/tools/testing/selftests/mm/run_vmtests.sh +++ b/tools/testing/selftests/mm/run_vmtests.sh @@ -12,11 +12,14 @@ exitcode=3D0 =20 usage() { cat <"] +usage: ${BASH_SOURCE[0]:-$0} [ options ] + + -a: run all tests, including extra ones -t: specify specific categories to tests to run -h: display this message =20 -The default behavior is to run all tests. +The default behavior is to run required tests only. If -a is specified, +will run all tests. =20 Alternatively, specific groups tests can be run by passing a string to the -t argument containing one or more of the following categories @@ -60,9 +63,11 @@ EOF exit 0 } =20 +RUN_ALL=3Dfalse =20 -while getopts "ht:" OPT; do +while getopts "aht:" OPT; do case ${OPT} in + "a") RUN_ALL=3Dtrue ;; "h") usage ;; "t") VM_SELFTEST_ITEMS=3D${OPTARG} ;; esac --=20 2.40.1