Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19817945rwd; Wed, 28 Jun 2023 15:00:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Th5r/qJEXqtjB5tA6/8wrhQl+w/YBTuqpsDYLfcTtS4qPJg5hNTs8ltfmuyn8LSIpKdvx X-Received: by 2002:a17:907:2ce2:b0:98a:ed3d:8917 with SMTP id hz2-20020a1709072ce200b0098aed3d8917mr22438620ejc.9.1687989653916; Wed, 28 Jun 2023 15:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687989653; cv=none; d=google.com; s=arc-20160816; b=P2EgQYdk7ZCRs4wAtEkOes6OZd28f6B/Ve8YvpUC1j8X7ByXGFHJOBZbmMoJrhWEjM Hp3Fw0sL+wgwjvAE10o9s+KRvRCAtvinTZMpycSb+Da2AnTJFrWz1yUAOWWG63HVjFNO X6d8cqfqA45t0dW5e5i2aH1+TvJkWCKkCPH0VlomkSLQvBhbOp4JtYek2ulKKhV0kyj3 BIe0cGaYcWufQ/YQyodfDsJ2TtDr+DlqqW3X/BX2SGcuwu65khWQx1xvtdjSHFarR+34 K7PPigOBseTWk1xrfmWIMaO+ClUt2YBbmeD2VeyUilPHbb/GKIHWhEsNmzxoLugFLulJ gdiw== 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=8HfHdG/KQ5Uxfq5f0w/MDNpC44bP5ckORXtaAeg9+TI=; fh=YRm1SqlPzCC/sbB3u8ugRd2MBYnp3vC9/g67nUn+DD4=; b=u8Jp3vJSvgR1up/PaNl8oRmhfahEDOCBUSnDNpTctgL4HcpVyUNhkAaXKcE+9VD1FN Us6OhzN50MG2bdT/xJFvlbyBfa0+1ycpUniaIXVktc2BY6a2w0VmYS/j35ibIjX4PpoW acvmj0tJ/XNF2jtWzoJLqMHDMNX9fhC3E87hBPOR0nFh7aOuN/ak9kd/01U9X4KwZMZf /N/WIVtvGDd77QXlxWDwCDY91LzPGM6b8ftq080DaKmmsb2eUPSoQON51sRjoGxZL5EF tzPTlB66A+CRPqpu9Xp/M9oEV3jDRyKYiaEtFLmbu3t+Yh6k85zCL0lhggTxD32DllLF vFlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZXrUgH2n; 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 y20-20020a1709060a9400b009920ac37834si2958023ejf.523.2023.06.28.15.00.27; Wed, 28 Jun 2023 15:00:53 -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=ZXrUgH2n; 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 S231984AbjF1Vz1 (ORCPT + 99 others); Wed, 28 Jun 2023 17:55:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232369AbjF1Vyv (ORCPT ); Wed, 28 Jun 2023 17:54:51 -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 E97492127 for ; Wed, 28 Jun 2023 14:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687989204; 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=8HfHdG/KQ5Uxfq5f0w/MDNpC44bP5ckORXtaAeg9+TI=; b=ZXrUgH2nVSv0WUOunmRgqKL8X0seYS0+KTaECkZc8pfdt2tM/4mkOI0VGWm33gBhmhEUBJ HxD5NBJ+wNy81U//o49gLi8MAIPDLc59BOPC9JRG958q3y6SsitFnueHSCrSbmmRY7AHNl Ze9ZGr81znxkjQO4FUyiFH1HvNY7+sg= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-584-kSXfzjzJNNu6lqB3GXRxFA-1; Wed, 28 Jun 2023 17:53:22 -0400 X-MC-Unique: kSXfzjzJNNu6lqB3GXRxFA-1 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-635f8ae5f88so39436d6.0 for ; Wed, 28 Jun 2023 14:53:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687989202; x=1690581202; 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=8HfHdG/KQ5Uxfq5f0w/MDNpC44bP5ckORXtaAeg9+TI=; b=GoDaY9wQRXOwQBbqFfNXAW8wQtt/fuanxzhap9543mwplBHrKLNQ5up4jvJXmhSyCG mgdQ+oWR2KBjdewXyXLVjjMZ1EcE7rk+vEHazpwD3dteLNZji/l4CWldQ1nsa5jbvqEB D4Zhh83r0FADAia/6qp4/X7Ei+hIZEfXkFYZUL0l++HGM/QPDmRcBIul1nRooEzhC3ma 0DxFScfvSCRveab7eZOVQwCoxINMii6j/+S9oZXoO+XzHd4ApbSB5vz++wpfrSQuMRAV fXHH1uBgEH2EjEzceqDAnp1c8BOXpdYazy6OudpMWAaw+SHs21qOFZhTRGBnk7a3HOGO xW3A== X-Gm-Message-State: AC+VfDxn4EqsJZ84td0o0bfpPXy652+wV5sEkLAqKi/aOwnNYv24wRAB Y1LxsoWazhZrq/TdXu2N4RaQzGuYKkPcV+I2J6w7bHZ2Yh3jJVkGrneP23HUq7tVOlhJjoW1dQt wLZrpyXImamUXtaiNNOAL1dVx X-Received: by 2002:a05:6214:260e:b0:626:2305:6073 with SMTP id gu14-20020a056214260e00b0062623056073mr6706614qvb.4.1687989202308; Wed, 28 Jun 2023 14:53:22 -0700 (PDT) X-Received: by 2002:a05:6214:260e:b0:626:2305:6073 with SMTP id gu14-20020a056214260e00b0062623056073mr6706604qvb.4.1687989202071; Wed, 28 Jun 2023 14:53:22 -0700 (PDT) Received: from x1n.. (cpe5c7695f3aee0-cm5c7695f3aede.cpe.net.cable.rogers.com. [99.254.144.39]) by smtp.gmail.com with ESMTPSA id p3-20020a0cfac3000000b00631fea4d5bcsm6277797qvo.95.2023.06.28.14.53.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jun 2023 14:53:21 -0700 (PDT) From: Peter Xu To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: David Hildenbrand , "Kirill A . Shutemov" , Andrew Morton , Andrea Arcangeli , Mike Rapoport , John Hubbard , Matthew Wilcox , Mike Kravetz , Vlastimil Babka , Yang Shi , James Houghton , Jason Gunthorpe , Lorenzo Stoakes , Hugh Dickins , peterx@redhat.com Subject: [PATCH v4 7/8] selftests/mm: Add -a to run_vmtests.sh Date: Wed, 28 Jun 2023 17:53:09 -0400 Message-ID: <20230628215310.73782-8-peterx@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230628215310.73782-1-peterx@redhat.com> References: <20230628215310.73782-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, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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". Acked-by: David Hildenbrand 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.41.0