From patchwork Wed Jul 11 12:29:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Punit Agrawal X-Patchwork-Id: 942468 X-Patchwork-Delegate: petr.vorel@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41QdgT0vsRz9s0n for ; Wed, 11 Jul 2018 22:29:56 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id D1D143E6AE3 for ; Wed, 11 Jul 2018 14:29:53 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [IPv6:2001:4b78:1:20::3]) by picard.linux.it (Postfix) with ESMTP id E02E03E6AE2 for ; Wed, 11 Jul 2018 14:29:51 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by in-3.smtp.seeweb.it (Postfix) with ESMTP id 1ABA51A013A1 for ; Wed, 11 Jul 2018 14:29:50 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 238AD80D; Wed, 11 Jul 2018 05:29:50 -0700 (PDT) Received: from localhost (e105922-lin.cambridge.arm.com [10.1.206.33]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BCB113F5AD; Wed, 11 Jul 2018 05:29:49 -0700 (PDT) From: Punit Agrawal To: ltp@lists.linux.it Date: Wed, 11 Jul 2018 13:29:22 +0100 Message-Id: <20180711122925.24278-2-punit.agrawal@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180711122925.24278-1-punit.agrawal@arm.com> References: <20180711122925.24278-1-punit.agrawal@arm.com> X-ARM-No-Footer: FoSSMail X-Virus-Scanned: clamav-milter 0.99.2 at in-3.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=-0.0 required=7.0 tests=SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-3.smtp.seeweb.it Subject: [LTP] [PATCH 1/4] controllers/cgroup_fj_common.sh: Check for dependencies during setup X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" cgroup_fj_common.sh uses 'killall' in cleanup but doesn't check for it during setup. Add killall as an explicit dependency to bail out on systems where it's not available. Signed-off-by: Punit Agrawal --- testcases/kernel/controllers/cgroup_fj/cgroup_fj_common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_common.sh b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_common.sh index 907881ca8..e163e5394 100755 --- a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_common.sh +++ b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_common.sh @@ -83,6 +83,7 @@ create_subgroup() setup() { tst_require_root + tst_check_cmds killall if [ ! -f /proc/cgroups ]; then tst_brkm TCONF "Kernel does not support for control groups" From patchwork Wed Jul 11 12:29:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Punit Agrawal X-Patchwork-Id: 942469 X-Patchwork-Delegate: petr.vorel@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41Qdgb1Vr7zB4MN for ; Wed, 11 Jul 2018 22:30:03 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 67C983E6B8A for ; Wed, 11 Jul 2018 14:30:00 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [IPv6:2001:4b78:1:20::7]) by picard.linux.it (Postfix) with ESMTP id B277F3E6BD6 for ; Wed, 11 Jul 2018 14:29:57 +0200 (CEST) Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by in-7.smtp.seeweb.it (Postfix) with ESMTP id A4D3B20006C for ; Wed, 11 Jul 2018 14:29:55 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C3F9380D; Wed, 11 Jul 2018 05:29:54 -0700 (PDT) Received: from localhost (e105922-lin.cambridge.arm.com [10.1.206.33]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 68CEC3F5AD; Wed, 11 Jul 2018 05:29:54 -0700 (PDT) From: Punit Agrawal To: ltp@lists.linux.it Date: Wed, 11 Jul 2018 13:29:23 +0100 Message-Id: <20180711122925.24278-3-punit.agrawal@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180711122925.24278-1-punit.agrawal@arm.com> References: <20180711122925.24278-1-punit.agrawal@arm.com> X-ARM-No-Footer: FoSSMail X-Virus-Scanned: clamav-milter 0.99.2 at in-7.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=-0.0 required=7.0 tests=SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-7.smtp.seeweb.it Subject: [LTP] [PATCH 2/4] quota_remount_test01: Add explicit check for dependencies X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" quota_remount_test01 doesn't check for dependencies before execution. Add explicit checks for quotacheck and quotaon and bail out if they are not present. Signed-off-by: Punit Agrawal --- testcases/kernel/fs/quota_remount/quota_remount_test01.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testcases/kernel/fs/quota_remount/quota_remount_test01.sh b/testcases/kernel/fs/quota_remount/quota_remount_test01.sh index 24f41aec1..8fa9ffc9f 100755 --- a/testcases/kernel/fs/quota_remount/quota_remount_test01.sh +++ b/testcases/kernel/fs/quota_remount/quota_remount_test01.sh @@ -41,6 +41,8 @@ export TCID=quota_remount_test01 export TST_TOTAL=1 export TST_COUNT=0 +. test.sh + if [ -z $TMPDIR ] then TMPDIR=/tmp @@ -58,6 +60,8 @@ if [ ! -d /proc/sys/fs/quota ]; then exit 0 fi +tst_check_cmds quotacheck quotaon + die() { echo >&2 $2 From patchwork Wed Jul 11 12:29:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Punit Agrawal X-Patchwork-Id: 942470 X-Patchwork-Delegate: petr.vorel@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41Qdgh4JWdzB4MN for ; Wed, 11 Jul 2018 22:30:08 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id B8DAB3E6C03 for ; Wed, 11 Jul 2018 14:30:05 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [IPv6:2001:4b78:1:20::3]) by picard.linux.it (Postfix) with ESMTP id 7759D3E6CB2 for ; Wed, 11 Jul 2018 14:30:01 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by in-3.smtp.seeweb.it (Postfix) with ESMTP id D47141A013B2 for ; Wed, 11 Jul 2018 14:29:59 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0245680D; Wed, 11 Jul 2018 05:29:59 -0700 (PDT) Received: from localhost (e105922-lin.cambridge.arm.com [10.1.206.33]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 77E393F5AD; Wed, 11 Jul 2018 05:29:58 -0700 (PDT) From: Punit Agrawal To: ltp@lists.linux.it Date: Wed, 11 Jul 2018 13:29:24 +0100 Message-Id: <20180711122925.24278-4-punit.agrawal@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180711122925.24278-1-punit.agrawal@arm.com> References: <20180711122925.24278-1-punit.agrawal@arm.com> X-ARM-No-Footer: FoSSMail X-Virus-Scanned: clamav-milter 0.99.2 at in-3.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=-0.0 required=7.0 tests=SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-3.smtp.seeweb.it Subject: [LTP] [PATCH 3/4] memcg_lib.sh: Check for killall X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Signed-off-by: Punit Agrawal --- testcases/kernel/controllers/memcg/functional/memcg_lib.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh index 7892f78c3..838706e1a 100755 --- a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh +++ b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh @@ -34,6 +34,9 @@ if [ $? -ne 0 ]; then tst_brkm TBROK "getconf PAGESIZE failed" fi +# Check for dependencies +tst_check_cmds killall + # Post 4.16 kernel updates stat in batch (> 32 pages) every time PAGESIZES=$(( $PAGESIZE * 33 )) From patchwork Wed Jul 11 12:29:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Punit Agrawal X-Patchwork-Id: 942471 X-Patchwork-Delegate: petr.vorel@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41Qdgn24Yhz9s0n for ; Wed, 11 Jul 2018 22:30:13 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 25BAB3E6C2A for ; Wed, 11 Jul 2018 14:30:09 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [217.194.8.3]) by picard.linux.it (Postfix) with ESMTP id 556323E6BDB for ; Wed, 11 Jul 2018 14:30:04 +0200 (CEST) Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by in-3.smtp.seeweb.it (Postfix) with ESMTP id 2F4221A013A3 for ; Wed, 11 Jul 2018 14:30:03 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5647180D; Wed, 11 Jul 2018 05:30:02 -0700 (PDT) Received: from localhost (e105922-lin.cambridge.arm.com [10.1.206.33]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EF8E13F5AD; Wed, 11 Jul 2018 05:30:01 -0700 (PDT) From: Punit Agrawal To: ltp@lists.linux.it Date: Wed, 11 Jul 2018 13:29:25 +0100 Message-Id: <20180711122925.24278-5-punit.agrawal@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180711122925.24278-1-punit.agrawal@arm.com> References: <20180711122925.24278-1-punit.agrawal@arm.com> X-ARM-No-Footer: FoSSMail X-Virus-Scanned: clamav-milter 0.99.2 at in-3.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=-0.0 required=7.0 tests=SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-3.smtp.seeweb.it Subject: [LTP] [PATCH 4/4] controllers/pids.sh: Check for killall X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Signed-off-by: Punit Agrawal --- testcases/kernel/controllers/pids/pids.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/testcases/kernel/controllers/pids/pids.sh b/testcases/kernel/controllers/pids/pids.sh index c5430eed7..fab33c415 100755 --- a/testcases/kernel/controllers/pids/pids.sh +++ b/testcases/kernel/controllers/pids/pids.sh @@ -32,6 +32,7 @@ TST_TESTFUNC=do_test TST_POS_ARGS=3 TST_USAGE=usage TST_NEEDS_ROOT=1 +TST_NEEDS_CMDS="killall" . tst_test.sh