From patchwork Wed Jun 6 12:37:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cyril Hrubis X-Patchwork-Id: 925821 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=suse.cz 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 4117Vy21BKz9s01 for ; Wed, 6 Jun 2018 22:37:59 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id DC93F1B974E for ; Wed, 6 Jun 2018 14:37:55 +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 6A1391A9E4A for ; Wed, 6 Jun 2018 14:37:54 +0200 (CEST) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id 03CF11A0106F for ; Wed, 6 Jun 2018 14:37:50 +0200 (CEST) Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id EE6A2AB3D for ; Wed, 6 Jun 2018 12:37:46 +0000 (UTC) From: Cyril Hrubis To: ltp@lists.linux.it Date: Wed, 6 Jun 2018 14:37:35 +0200 Message-Id: <20180606123735.15589-1-chrubis@suse.cz> X-Mailer: git-send-email 2.13.6 X-Virus-Scanned: clamav-milter 0.99.2 at in-3.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.2 required=7.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, 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] [RFC] syscalls/ipc: Rename some msgctl tests 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" The test from msgctl08 to msgctl11 are actually msg stress tests, these do not actually call msgctl() during the test but rather than that they fork large number of processes and send message around. Renaming them to msgstress seems to be more fitting. Signed-off-by: Cyril Hrubis --- runtest/ltplite | 4 +-- runtest/stress.part3 | 4 +-- runtest/syscalls | 8 +++--- runtest/syscalls-ipc | 8 +++--- testcases/kernel/syscalls/ipc/msgctl/.gitignore | 4 --- testcases/kernel/syscalls/ipc/msgstress/.gitignore | 4 +++ testcases/kernel/syscalls/ipc/msgstress/Makefile | 29 ++++++++++++++++++++++ .../{msgctl/msgctl08.c => msgstress/msgstress01.c} | 0 .../{msgctl/msgctl09.c => msgstress/msgstress02.c} | 0 .../{msgctl/msgctl10.c => msgstress/msgstress03.c} | 0 .../{msgctl/msgctl11.c => msgstress/msgstress04.c} | 0 11 files changed, 45 insertions(+), 16 deletions(-) create mode 100644 testcases/kernel/syscalls/ipc/msgstress/.gitignore create mode 100644 testcases/kernel/syscalls/ipc/msgstress/Makefile rename testcases/kernel/syscalls/ipc/{msgctl/msgctl08.c => msgstress/msgstress01.c} (100%) rename testcases/kernel/syscalls/ipc/{msgctl/msgctl09.c => msgstress/msgstress02.c} (100%) rename testcases/kernel/syscalls/ipc/{msgctl/msgctl10.c => msgstress/msgstress03.c} (100%) rename testcases/kernel/syscalls/ipc/{msgctl/msgctl11.c => msgstress/msgstress04.c} (100%) diff --git a/runtest/ltplite b/runtest/ltplite index 5f16dec00..3c6f51270 100644 --- a/runtest/ltplite +++ b/runtest/ltplite @@ -487,8 +487,8 @@ msgctl04 msgctl04 msgctl05 msgctl05 msgctl06 msgctl06 msgctl07 msgctl07 -msgctl08 msgctl08 -msgctl09 msgctl09 +msgstress01 msgstress01 +msgstress02 msgstress02 msgget01 msgget01 msgget02 msgget02 diff --git a/runtest/stress.part3 b/runtest/stress.part3 index 0420827e8..e0a8869e8 100644 --- a/runtest/stress.part3 +++ b/runtest/stress.part3 @@ -403,8 +403,8 @@ msgctl04 msgctl04 msgctl05 msgctl05 msgctl06 msgctl06 msgctl07 msgctl07 -msgctl08 msgctl08 -msgctl09 msgctl09 +msgstress01 msgstress01 +msgstress02 msgstress02 msgget01 msgget01 msgget02 msgget02 diff --git a/runtest/syscalls b/runtest/syscalls index 738d2242c..95d470cde 100644 --- a/runtest/syscalls +++ b/runtest/syscalls @@ -693,10 +693,10 @@ msgctl04 msgctl04 msgctl05 msgctl05 msgctl06 msgctl06 msgctl07 msgctl07 -msgctl08 msgctl08 -msgctl09 msgctl09 -msgctl10 msgctl10 -msgctl11 msgctl11 +msgstress01 msgstress01 +msgstress02 msgstress02 +msgstress03 msgstress03 +msgstress04 msgstress04 msgctl12 msgctl12 msgctl13 msgctl13 diff --git a/runtest/syscalls-ipc b/runtest/syscalls-ipc index de32c6ba9..c734e239d 100644 --- a/runtest/syscalls-ipc +++ b/runtest/syscalls-ipc @@ -5,10 +5,10 @@ msgctl04 msgctl04 msgctl05 msgctl05 msgctl06 msgctl06 msgctl07 msgctl07 -msgctl08 msgctl08 -msgctl09 msgctl09 -msgctl10 msgctl10 -msgctl11 msgctl11 +msgstress01 msgstress01 +msgstress02 msgstress02 +msgstress03 msgstress03 +msgstress04 msgstress04 msgctl12 msgctl12 msgctl13 msgctl13 diff --git a/testcases/kernel/syscalls/ipc/msgctl/.gitignore b/testcases/kernel/syscalls/ipc/msgctl/.gitignore index 3d3a8bf52..2edde5de4 100644 --- a/testcases/kernel/syscalls/ipc/msgctl/.gitignore +++ b/testcases/kernel/syscalls/ipc/msgctl/.gitignore @@ -5,9 +5,5 @@ /msgctl05 /msgctl06 /msgctl07 -/msgctl08 -/msgctl09 -/msgctl10 -/msgctl11 /msgctl12 /msgctl13 diff --git a/testcases/kernel/syscalls/ipc/msgstress/.gitignore b/testcases/kernel/syscalls/ipc/msgstress/.gitignore new file mode 100644 index 000000000..a8f675399 --- /dev/null +++ b/testcases/kernel/syscalls/ipc/msgstress/.gitignore @@ -0,0 +1,4 @@ +/msgstress01 +/msgstress02 +/msgstress03 +/msgstress04 diff --git a/testcases/kernel/syscalls/ipc/msgstress/Makefile b/testcases/kernel/syscalls/ipc/msgstress/Makefile new file mode 100644 index 000000000..4472eeb1c --- /dev/null +++ b/testcases/kernel/syscalls/ipc/msgstress/Makefile @@ -0,0 +1,29 @@ +# +# Copyright (c) International Business Machines Corp., 2001 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See +# the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# + +top_srcdir ?= ../../../../.. + +include $(top_srcdir)/include/mk/testcases.mk + +LIBMSGCTL := $(LIBDIR)/libmsgctl.a +LDLIBS += -lmsgctl + +MAKE_DEPS := $(LIBMSGCTL) + +include $(abs_srcdir)/../Makefile.inc +include $(top_srcdir)/include/mk/generic_leaf_target.mk diff --git a/testcases/kernel/syscalls/ipc/msgctl/msgctl08.c b/testcases/kernel/syscalls/ipc/msgstress/msgstress01.c similarity index 100% rename from testcases/kernel/syscalls/ipc/msgctl/msgctl08.c rename to testcases/kernel/syscalls/ipc/msgstress/msgstress01.c diff --git a/testcases/kernel/syscalls/ipc/msgctl/msgctl09.c b/testcases/kernel/syscalls/ipc/msgstress/msgstress02.c similarity index 100% rename from testcases/kernel/syscalls/ipc/msgctl/msgctl09.c rename to testcases/kernel/syscalls/ipc/msgstress/msgstress02.c diff --git a/testcases/kernel/syscalls/ipc/msgctl/msgctl10.c b/testcases/kernel/syscalls/ipc/msgstress/msgstress03.c similarity index 100% rename from testcases/kernel/syscalls/ipc/msgctl/msgctl10.c rename to testcases/kernel/syscalls/ipc/msgstress/msgstress03.c diff --git a/testcases/kernel/syscalls/ipc/msgctl/msgctl11.c b/testcases/kernel/syscalls/ipc/msgstress/msgstress04.c similarity index 100% rename from testcases/kernel/syscalls/ipc/msgctl/msgctl11.c rename to testcases/kernel/syscalls/ipc/msgstress/msgstress04.c