From patchwork Wed May 30 01:09:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Yang X-Patchwork-Id: 922515 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=cn.fujitsu.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 40wXqT36c2z9s0q for ; Wed, 30 May 2018 11:21:24 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 084653E792B for ; Wed, 30 May 2018 03:21:21 +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 CD6EE3E783C for ; Wed, 30 May 2018 03:21:19 +0200 (CEST) Received: from heian.cn.fujitsu.com (mail.cn.fujitsu.com [183.91.158.132]) by in-7.smtp.seeweb.it (Postfix) with ESMTP id 10F32201264 for ; Wed, 30 May 2018 03:21:16 +0200 (CEST) X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="40547538" Received: from bogon (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 30 May 2018 09:21:08 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id 089F44B3ED60 for ; Wed, 30 May 2018 09:21:07 +0800 (CST) Received: from RHEL7U5Alpha_SERVER.g08.fujitsu.local (10.167.220.185) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.399.0; Wed, 30 May 2018 09:21:07 +0800 From: Xiao Yang To: Date: Wed, 30 May 2018 09:09:15 +0800 Message-ID: <1527642555-20424-1-git-send-email-yangx.jy@cn.fujitsu.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.167.220.185] X-yoursite-MailScanner-ID: 089F44B3ED60.A7F7B X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: yangx.jy@cn.fujitsu.com X-Spam-Status: No, score=0.0 required=7.0 tests=none autolearn=disabled version=3.4.0 X-Virus-Scanned: clamav-milter 0.99.2 at in-7.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-7.smtp.seeweb.it Subject: [LTP] [PATCH] move_pages: Remove redundant move_pages.sh 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: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Use move_pages[1-12] binaries directly instead of move_pages.sh Signed-off-by: Xiao Yang --- runtest/numa | 22 +++++++++++----------- runtest/syscalls | 22 +++++++++++----------- testcases/kernel/syscalls/move_pages/Makefile | 2 -- testcases/kernel/syscalls/move_pages/move_pages.sh | 18 ------------------ 4 files changed, 22 insertions(+), 42 deletions(-) delete mode 100755 testcases/kernel/syscalls/move_pages/move_pages.sh diff --git a/runtest/numa b/runtest/numa index dcf4948..12aedbb 100644 --- a/runtest/numa +++ b/runtest/numa @@ -1,13 +1,13 @@ Numa-testcases numa01.sh -move_pages01 move_pages.sh 01 -move_pages02 move_pages.sh 02 -move_pages03 cd $LTPROOT/testcases/bin && chown root move_pages03 && chmod 04755 move_pages03 && move_pages.sh 03 -move_pages04 move_pages.sh 04 -move_pages05 move_pages.sh 05 -move_pages06 move_pages.sh 06 -move_pages07 move_pages.sh 07 -move_pages08 move_pages.sh 08 -move_pages09 move_pages.sh 09 -move_pages10 move_pages.sh 10 -move_pages11 cd $LTPROOT/testcases/bin && chown root move_pages11 && chmod 04755 move_pages11 && move_pages.sh 11 +move_pages01 move_pages01 +move_pages02 move_pages02 +move_pages03 move_pages03 +move_pages04 move_pages04 +move_pages05 move_pages05 +move_pages06 move_pages06 +move_pages07 move_pages07 +move_pages08 move_pages08 +move_pages09 move_pages09 +move_pages10 move_pages10 +move_pages11 move_pages11 move_pages12 move_pages12 diff --git a/runtest/syscalls b/runtest/syscalls index 738d224..f3ed2fb 100644 --- a/runtest/syscalls +++ b/runtest/syscalls @@ -655,17 +655,17 @@ mount04 mount04 mount05 mount05 mount06 mount06 -move_pages01 move_pages.sh 01 -move_pages02 move_pages.sh 02 -move_pages03 cd $LTPROOT/testcases/bin && chown root move_pages03 && chmod 04755 move_pages03 && move_pages.sh 03 -move_pages04 move_pages.sh 04 -move_pages05 move_pages.sh 05 -move_pages06 move_pages.sh 06 -move_pages07 move_pages.sh 07 -move_pages08 move_pages.sh 08 -move_pages09 move_pages.sh 09 -move_pages10 move_pages.sh 10 -move_pages11 cd $LTPROOT/testcases/bin && chown root move_pages11 && chmod 04755 move_pages11 && move_pages.sh 11 +move_pages01 move_pages01 +move_pages02 move_pages02 +move_pages03 move_pages03 +move_pages04 move_pages04 +move_pages05 move_pages05 +move_pages06 move_pages06 +move_pages07 move_pages07 +move_pages08 move_pages08 +move_pages09 move_pages09 +move_pages10 move_pages10 +move_pages11 move_pages11 move_pages12 move_pages12 mprotect01 mprotect01 diff --git a/testcases/kernel/syscalls/move_pages/Makefile b/testcases/kernel/syscalls/move_pages/Makefile index 9892770..27cf0f7 100644 --- a/testcases/kernel/syscalls/move_pages/Makefile +++ b/testcases/kernel/syscalls/move_pages/Makefile @@ -22,8 +22,6 @@ include $(top_srcdir)/include/mk/testcases.mk CPPFLAGS += -I$(abs_srcdir)/../utils -INSTALL_TARGETS := move_pages.sh - MAKE_TARGETS := $(patsubst $(abs_srcdir)/%.c,%,$(wildcard $(abs_srcdir)/*[0-9].c)) $(MAKE_TARGETS): %: %.o move_pages_support.o diff --git a/testcases/kernel/syscalls/move_pages/move_pages.sh b/testcases/kernel/syscalls/move_pages/move_pages.sh deleted file mode 100755 index 516d088..0000000 --- a/testcases/kernel/syscalls/move_pages/move_pages.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -if [ -z "$1" ]; then - echo "Usage: move_pages.sh " - exit 1 -fi - -testprog=move_pages${1} - -if [ -f $LTPROOT/testcases/bin/${testprog} ]; then - exec $testprog -else - export TCID=$testprog - export TST_TOTAL=1 - export TST_COUNT=0 - tst_resm TCONF "libnuma and NUMA support is required for this testcase" - tst_exit -fi