Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6992760rwd; Mon, 19 Jun 2023 16:20:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/EB3sVo9QzmO/X3/1+vO0NgXJM5RmYBRfevecO28hPy1laVPnWw1pWt5rZoXUN2FNjdu7 X-Received: by 2002:a05:6808:1143:b0:3a0:333e:1f4a with SMTP id u3-20020a056808114300b003a0333e1f4amr2553191oiu.15.1687216850238; Mon, 19 Jun 2023 16:20:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687216850; cv=none; d=google.com; s=arc-20160816; b=q/FpxwsgYfF+vtY1MiVbI+D34LPVzlThsbhukA+IHyDjYTLmsO5reWvz096YpxSi9+ zuDMMslhRYLaTJpSoOJCSe4K4rvT5sxeEi1ppofvhs2cKAV9150sDFVV1GOy1UVrv7mR 4N3kr9HEFnj2ni/xKtqbYoZ5/0xWhtotB4Tg8Mqdj0xikcd6elAXQ0ZFrKwQytFm5fi2 40morCstp08WlibNCxh1X16LsE6iW+Egd3yltd9asoQDgy1J4iCPCpsjgjXP4oxsQl6G xs+ynZyaFcuf6FUDwHej+w2wGaiJ8RjPJq6mE/fYIxWT4XWqhOcpQbRVYlecaTgqxWn2 VYLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3EQ9G/WyCR5BzbeYKEOc/c4ex09bzeUnnwnMR75AIjI=; b=K9Bed4oW2hy5RrGKjVhxnhUlGuL0B2uCVCU32j3YSMeus02gR3G2nzSeMlrCvzikKV rzXFUY7y4nkhm57QfPrVc3Id3GZwjFmRewHZ0p4/vukunVnCQjRlJQfAgw309QbEb4E0 wSaRDq6uoxLdBOj9ZNuI4yQo1b8K2TRqlFvuUi0n4QugJQg9p2Fehbg1kij4RNDYFs1q hBg8ztqfZ8DRhtWS9MJctnvYNi+hCyjUtE7B6hORcOgK5V6lvuzKjeixwPb0mIbg6jGY 8oniFaU3eefVL3U++iV0ATzMifZW+yJDMVuekg8pHAutlCR5LfhPRd6bo8PWfxuwjnwj cyAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=M88cQhai; 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 gd11-20020a17090b0fcb00b0024ef1d1151bsi666668pjb.17.2023.06.19.16.20.36; Mon, 19 Jun 2023 16:20:50 -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=M88cQhai; 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 S229836AbjFSXMB (ORCPT + 99 others); Mon, 19 Jun 2023 19:12:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229784AbjFSXLo (ORCPT ); Mon, 19 Jun 2023 19:11:44 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76DFDE6C for ; Mon, 19 Jun 2023 16:10:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687216258; 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=M88cQhai4OsCyETed1vR9EwN40oL2oyty2cgTKtukIKUS+SSmXrAgcBq88xeE0ROqLxFgv ok/MVC+6aPpG1eXcCt5+YL6bWwvIGJuVnyjg68VzjuZYpRe/YWTeJ9jf0Tw67wdeoxr++4 FOj9oirxKOhZAJuPj5gBZM4SkWTOiSM= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-617-fECThjJKPNa7mK2VvHfJTA-1; Mon, 19 Jun 2023 19:10:57 -0400 X-MC-Unique: fECThjJKPNa7mK2VvHfJTA-1 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-3fde794cd50so5980721cf.1 for ; Mon, 19 Jun 2023 16:10:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687216257; x=1689808257; 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=XErrbztvtNkkdYevFOcVfg/GyMY/og/9VM6Ls5s541AwLi2bAIi0ehmwJ23f7D2qwT CRrrinkRfLpPcXB65CGqKPjXXoZJqDrvuS/QKmNo3ZPsUSsXUE3o88JlXkAPXXKiuWBg LcKsDX6KlRNI33GBjUQ2PvrIgCM+8tHt1+frwU+8Ua4RIwxBvBtvFczxs+6jGFhvqlCr 1uKW4OS4OKqsJ/hUoYOZYVs0hUXkN6nZ0AnYrE3mqPQHUtF8d5t15iXZx1wkIHdqrBoZ xrGQmhPh+4O9xNtV7wV9M90HaHwGcA4ZVjgpNsUONvfPCaLLSOYR+746RaeXygY16yIp y/7w== X-Gm-Message-State: AC+VfDx5B6ZEyxs6kx0X7aYk/Vs2BlZ7v+a3KCPWXRp8x6+mpBsdsc06 2m3vS7RY8gQM9+cIHrxQs4Ls5nufoMMtOHRVZyLgxkgBflPTpRYcZ27HPGFh28HeCgq5k5BH44F fmsALLdaHr43/nUUlp5afHBVC X-Received: by 2002:a05:6214:411c:b0:62d:f62b:907 with SMTP id kc28-20020a056214411c00b0062df62b0907mr14179212qvb.0.1687216256827; Mon, 19 Jun 2023 16:10:56 -0700 (PDT) X-Received: by 2002:a05:6214:411c:b0:62d:f62b:907 with SMTP id kc28-20020a056214411c00b0062df62b0907mr14179194qvb.0.1687216256500; Mon, 19 Jun 2023 16:10:56 -0700 (PDT) Received: from x1n.. (cpe5c7695f3aee0-cm5c7695f3aede.cpe.net.cable.rogers.com. [99.254.144.39]) by smtp.gmail.com with ESMTPSA id t15-20020a05620a034f00b007592f2016f4sm405864qkm.110.2023.06.19.16.10.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 16:10:56 -0700 (PDT) From: Peter Xu To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Andrea Arcangeli , Mike Rapoport , David Hildenbrand , Matthew Wilcox , Vlastimil Babka , John Hubbard , "Kirill A . Shutemov" , James Houghton , Andrew Morton , Lorenzo Stoakes , Hugh Dickins , Mike Kravetz , peterx@redhat.com, Jason Gunthorpe Subject: [PATCH v2 7/8] selftests/mm: Add -a to run_vmtests.sh Date: Mon, 19 Jun 2023 19:10:43 -0400 Message-Id: <20230619231044.112894-8-peterx@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230619231044.112894-1-peterx@redhat.com> References: <20230619231044.112894-1-peterx@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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 --- 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 -- 2.40.1