Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1374325ybv; Thu, 6 Feb 2020 03:02:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwdOiPwALgRKu8GtJxSR9MeqFfLRjuZNZYKKs1/SHFym3kfx94atRdvJcMKcBUbv23FG0qb X-Received: by 2002:a54:4010:: with SMTP id x16mr6635273oie.174.1580986957403; Thu, 06 Feb 2020 03:02:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580986957; cv=none; d=google.com; s=arc-20160816; b=A0rYW+jpVWyLd/RiM1rQ98moXbCNFUo43qqPRHGwGznm0tOnFEA/NQwqsgJMjOhMkX cbbMlOpKfnN2jxA1RB6PtI75Tl5wyh/lmwwDJk/In4G2zuVov4xvawPuU8KbFhygfcEy DJ4h66DHWUfaujftal/rDV3DwWLmynEEdqCOpka7Z6i6I96fPFiIQSbSUMLsIk7qY63H ZmnVDLQ18MF5TVhkA3L9gbnIvUGOcn9YaAGKJ2451jmptLeCXy/ST/XVEoBzK/bdqiLG vdEQQEeYvZkFjgQljbvt87b7dEN6pU7r3xsz46nFATQn7N92Kphm9CklJ9MxDJDmoGdE 4o6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=t0ZkRPw1qrQ0f8z2RbPGrKw+AhhQtmfGX+r47zBC98M=; b=KFG+1fWQW3inxbt8beXlH0gDcJflAH4gAE8g8/fKS3s3FUcp2Qgm9aXwo9Zrxde7B1 aD2thsJKnqfjy89BXvJ4z9mrAgWYcvucvwXFCHFw7HjP/+S9vRjt42U/z7+ZNREm1IqV w1RNWD74MGOUV5usfQ+jFagwHE9t/x/7L9rZprB5gGqRnvct8uGHbZjKw8HaSgve/jT4 q6pD6D0cp2GfJacLk7ORGn0XbFyQEyekcOpklmvWHTBs3QIweHa3YVXA08MZER7FGHLt 6TP+iP/WvRHhG3nu/J2RvW45QCl0N9c1ejkxR4TXKN5kNCKqp+mdgXZJDmgAOBs/RGjm vlEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jFNMZpN4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l204si2034625oig.31.2020.02.06.03.02.25; Thu, 06 Feb 2020 03:02:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jFNMZpN4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727993AbgBFIv5 (ORCPT + 99 others); Thu, 6 Feb 2020 03:51:57 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:38873 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726673AbgBFIv4 (ORCPT ); Thu, 6 Feb 2020 03:51:56 -0500 Received: by mail-pf1-f196.google.com with SMTP id x185so2773303pfc.5; Thu, 06 Feb 2020 00:51:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=t0ZkRPw1qrQ0f8z2RbPGrKw+AhhQtmfGX+r47zBC98M=; b=jFNMZpN4IFFd7xlgs1ZxDnyah6Ow817U7LGePFtJ+sgo4JsuNfZmjidc7Sj7wx6Peb Sntu4XWIWJDfaZqeimicxI1mut1EltEoC+RUk0tvVrYwYZh5iQGaSRXb1fajv9u8sL5t /HmZYkPtqtREnJnpgPZgX8PnTNxF26SGplC6LxkXNrqFbEI4rsCCxVxvhc0vksuFPRU0 93GXN9sTOZMF6apAdNSGV3JMMVc/CtRqHnaQNR4qt0l9GS6sFcYhlOGqrqhfFhCTXl18 uw68LhzkLbceRUHCCmnIzeaG1o88dqe5zkwS+sQC1DgN9JFTZmxiKk78PoHaJHB7r82p XmXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=t0ZkRPw1qrQ0f8z2RbPGrKw+AhhQtmfGX+r47zBC98M=; b=QvgdIcU8y+lRl5bwOYrLm2QAqDtTx62LbXgGEpCTazRy9ejOtEoWvT18+oksqHGV9l wf9xB7YGljZjfnq2QqkKHmBuHjNlRx4EzMWwYOxIfE+VgL/hKmpPrgW08UAYg5FTVEt3 qmvcb4A5htolk0/1GZIBV3FjMvByjsGXmmdCqfAoqx/Eavl8rEJBNR7HOhxINi2FWeor 3ldqB1sfgJw2il8VCA+Mf1PzdTpbZ3us9lk3/VnMC7lO5lXCcx/4BB8NR+0Cen1Zd6lv pVnxntxCLRZ6uEopu/N9s+LDVpwRhZ0nzUl8lxCzN8Ksq1PMRfDWJtrl1eLFcISJ56m6 hXiQ== X-Gm-Message-State: APjAAAVw4Py/2Y1Q5UYJ32tMzRyjyhe+ZoZZPjxKb/gA2RbykovS6XyE YECIMj3Wuqzmm8TNgFwyeYM= X-Received: by 2002:aa7:95a3:: with SMTP id a3mr2701203pfk.193.1580979115652; Thu, 06 Feb 2020 00:51:55 -0800 (PST) Received: from localhost.localdomain ([106.254.212.20]) by smtp.gmail.com with ESMTPSA id b3sm2432450pfr.88.2020.02.06.00.51.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2020 00:51:54 -0800 (PST) From: sj38.park@gmail.com To: shuah@kernel.org, akpm@linux-foundation.org Cc: urezki@gmail.com, mhiramat@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH] selftests/vm: Add missed tests in run_vmtests Date: Thu, 6 Feb 2020 08:51:44 +0000 Message-Id: <20200206085144.29126-1-sj38.park@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: SeongJae Park The commits introducing 'mlock-random-test'[1], 'map_fiex_noreplace'[2], and 'thuge-gen'[3] have not added those in the 'run_vmtests' script and thus the 'run_tests' command of kselftests doesn't run those. This commit adds those in the script. 'gup_benchmark' and 'transhuge-stress' are also not included in the 'run_vmtests', but this commit does not add those because those are for performance measurement rather than pass/fail tests. [1] commit 26b4224d9961 ("selftests: expanding more mlock selftest") [2] commit 91cbacc34512 ("tools/testing/selftests/vm/map_fixed_noreplace.c: add test for MAP_FIXED_NOREPLACE") [3] commit fcc1f2d5dd34 ("selftests: add a test program for variable huge page sizes in mmap/shmget") Signed-off-by: SeongJae Park --- tools/testing/selftests/vm/run_vmtests | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/tools/testing/selftests/vm/run_vmtests b/tools/testing/selftests/vm/run_vmtests index a692ea828317..f33714843198 100755 --- a/tools/testing/selftests/vm/run_vmtests +++ b/tools/testing/selftests/vm/run_vmtests @@ -112,6 +112,17 @@ echo "NOTE: The above hugetlb tests provide minimal coverage. Use" echo " https://github.com/libhugetlbfs/libhugetlbfs.git for" echo " hugetlb regression testing." +echo "---------------------------" +echo "running map_fixed_noreplace" +echo "---------------------------" +./map_fixed_noreplace +if [ $? -ne 0 ]; then + echo "[FAIL]" + exitcode=1 +else + echo "[PASS]" +fi + echo "-------------------" echo "running userfaultfd" echo "-------------------" @@ -186,6 +197,17 @@ else echo "[PASS]" fi +echo "-------------------------" +echo "running mlock-random-test" +echo "-------------------------" +./mlock-random-test +if [ $? -ne 0 ]; then + echo "[FAIL]" + exitcode=1 +else + echo "[PASS]" +fi + echo "--------------------" echo "running mlock2-tests" echo "--------------------" @@ -197,6 +219,17 @@ else echo "[PASS]" fi +echo "-----------------" +echo "running thuge-gen" +echo "-----------------" +./thuge-gen +if [ $? -ne 0 ]; then + echo "[FAIL]" + exitcode=1 +else + echo "[PASS]" +fi + if [ $VADDR64 -ne 0 ]; then echo "-----------------------------" echo "running virtual_address_range" base-commit: d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 -- 2.17.1