From patchwork Fri Jun 23 14:29:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 13290739 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 785C7C0015E for ; Fri, 23 Jun 2023 14:29:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3C3278D000A; Fri, 23 Jun 2023 10:29:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2FD1B8D0001; Fri, 23 Jun 2023 10:29:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 064AC8D000A; Fri, 23 Jun 2023 10:29:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id DF7228D0001 for ; Fri, 23 Jun 2023 10:29:54 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id A90A81C8946 for ; Fri, 23 Jun 2023 14:29:54 +0000 (UTC) X-FDA: 80934246708.29.BA72628 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf16.hostedemail.com (Postfix) with ESMTP id 19022180018 for ; Fri, 23 Jun 2023 14:29:51 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=PotxnGN+; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf16.hostedemail.com: domain of peterx@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=peterx@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1687530592; h=from:from:sender: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:dkim-signature; bh=3EQ9G/WyCR5BzbeYKEOc/c4ex09bzeUnnwnMR75AIjI=; b=am5Wch9DV90PKqn5yY9VbpNWgZJkVYM7XrFrAZSiEQlAuMgZI6CcVHuJuBUZ6mK2iOQqPz IPfdB5cb6kEGPGquWoPk/qxTYdPKZXXa+JNAstOajJkthxPZ8nGD8DUikIy3S/uuzR5HkU jjjgw72Z+bQvWPgWh4JnTyZOdWXXJWQ= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=PotxnGN+; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf16.hostedemail.com: domain of peterx@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=peterx@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687530592; a=rsa-sha256; cv=none; b=ToK9kMLMr2m9EJDRU7ahJ/36FoFXre4byuCLDqnri7gGso3tG4HODoEtV2udKu37QjeoX8 o0Q52/HLpr7+7jK+0ES+v4Rn2+s9Y9mvMSLFCwoXRxL9o/K6NBTXxh30WADi5NswnsOqMT 9a7MuzQ4fWKV5AOE8e0tfYSrr1JIgUM= 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-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3EQ9G/WyCR5BzbeYKEOc/c4ex09bzeUnnwnMR75AIjI=; b=PotxnGN+Fplvn2hJA8RS+C1bCuikGKXvSJrRN9cfwms5EOfrjeV2DFQ9E887VuXa5dijOH vLkKSK7jwaWtlGDvxSwyP+Xpy3uT634FurP0ZTGMrin0xQ5RiTrhVstRzR+Xo3/BY1tyMZ aZWdS8hz9ysjLujqk2/6nbexPYgsnxg= 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-44-IgbMGkMpPaGFxGlQme9ypg-1; Fri, 23 Jun 2023 10:29:50 -0400 X-MC-Unique: IgbMGkMpPaGFxGlQme9ypg-1 Received: by mail-vk1-f197.google.com with SMTP id 71dfb90a1353d-471cd52f621so48248e0c.0 for ; Fri, 23 Jun 2023 07:29:50 -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=XV8RteEJfq2fR54MQP0hpeo8i6T93kAIu1L1n1Wcd6U1KlMHWID36MEg8BoKYg1jUm uOrCfxoYcr9u7eDQWw77P0AfnSSMX+8mavir8Ozhu8vYXlwuYHfR+miNS7MtrAkfA6ba EnTifZGi0MSLEEDj3qayGbvct0LiPKmI1jOTwyBX1O5b3VvaIZi3YV3s5VyOXO0Ii+P2 DzKcEkoEvh06pC/kxVl4xXZsP/Xz+tCwBJhf3xdUZ4ZTuH0osZ9/ccZnHkbPHfhpRZ9p sRVPt4WwGOodOQJGfpLY6UZ64IvQoJBgk27tBycl8IbGUaYwWbvOa1VdJl+votlGbd8n OMVA== X-Gm-Message-State: AC+VfDxYNN8PpKxaV+ntNSOKHWBQd81ypnYGOx4hQxRbz2GsZKEDFZfy q8D9/PzAIwO0YymBgW6ScAqD/Pv1n8OHCBnzh8DKAaHegG/DH2tZg/P27mEjB8OIx2FnSDAcVoP yI9wIz2KKiXwqfzYrc3faR6vtKKzGMrtJ9VS7/qtQpALwPRpoy9PxR6kRJl3PzGih4jgc X-Received: by 2002:a05:6102:2158:b0:440:a365:ad50 with SMTP id h24-20020a056102215800b00440a365ad50mr6848587vsg.1.1687530589564; 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 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Rspamd-Queue-Id: 19022180018 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: k3kd6sqe9fp59u3z6eco5f16wwq96jwi X-HE-Tag: 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YWnlI0eZa2AZAZdipLz7DqXjX8dmgVt/+J3rMJHnG34PPsTZt6nAKr+Us2FP7g1z5HDLq2cZYfNqt+h6oHaf4ymuzZ2LaEWlUlU/QcbJly0xhlR9MiPBwvz5Rqcrl/xckYJCGDm2MkMkXaseHmrYDtm8Bi67dwKyFF+rw7XtKC7t6M2UhOuvZI9+0hNPIsizUvx72sbUyyHZg7EJo9gmqQvWbP4ZRfrbejom5j/Gfu6a+oSelr6wM8iTyJRaGPPcDccroYJp1O8ArsmZzQ7bfPG8usKEbEarHP/PZiCFdZnj5GyodKXVsrzLYCMe8XhQguJDQXxwirY9MAZZpO1H70YL70I8leOl+276plhBlzLiyEZS2eHOuRupL8g== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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/selftests/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=0 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 -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. 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 } +RUN_ALL=false -while getopts "ht:" OPT; do +while getopts "aht:" OPT; do case ${OPT} in + "a") RUN_ALL=true ;; "h") usage ;; "t") VM_SELFTEST_ITEMS=${OPTARG} ;; esac