[LTP] Introduce autoconf to eventfd test case

2008-12-24 Thread Masatake YAMATO
Makefile of eventfd test case uses cond.mk. I introduce ltp-eventfd.m4 instead of cond.mk. To pass a library name to Makefile, I introduced config.mk.in. The purpose of config.mk.in is very similar to config.h.in; config.h.in is for C source code and config.mk.in is for Makefile. In addition I

[LTP] Introduce autoconf to inotify test case

2008-12-24 Thread Masatake YAMATO
Signed-off-by: Masatake YAMATO diff --git a/configure.ac b/configure.ac index 18496c9..b5f0d30 100644 --- a/configure.ac +++ b/configure.ac @@ -13,6 +13,8 @@ LTP_CHECK_SYSCALL_MODIFY_LDT m4_include([m4/ltp-eventfd.m4]) LTP_CHECK_SYSCALL_EVENTFD +AC_CHECK_HEADERS([sys/inotify.h]) + AC_CHECK_H

Re: [LTP] Introduce autoconf to eventfd test case

2008-12-24 Thread CAI Qian
Hi, --- On Wed, 12/24/08, Masatake YAMATO wrote: > From: Masatake YAMATO > Subject: [LTP] Introduce autoconf to eventfd test case > To: ltp-list@lists.sourceforge.net > Date: Wednesday, December 24, 2008, 5:19 PM > Makefile of eventfd test case uses cond.mk. I introduce > ltp-eventfd.m4 inste

[LTP] [patch 08/12] CONTAINERS script to be called by command file

2008-12-24 Thread Sudhir Kumar
This patch adds the script to be called by the command file to run network testcases under containers environment. Signed-off-by: Sudhir Kumar Index: ltp-full-20081130/testcases/kernel/containers/netns/nw_under_ns.sh === --- /dev/nu

[LTP] [patch 02/12] CONTAINERS add-FS-PID-clone-support in libnetns

2008-12-24 Thread Sudhir Kumar
This patch adds the other namespace creation support with the network namespace. We now create the PID & UTS namespaces and unshares filesystem attributes. The patch is required to reuse the existing network testcases directly without any porting, for network namespace. Signed-off-by: Sudhir Kumar

[LTP] [patch 11/12] CONTAINERS add further networktestcases

2008-12-24 Thread Sudhir Kumar
Add other network testcases to be run. Signed-off-by: Sudhir Kumar Index: ltp-full-20081130/testcases/kernel/containers/netns/runallnetworktests_child.sh === --- ltp-full-20081130.orig/testcases/kernel/containers/netns/runallnetwo

[LTP] [patch 01/12] CONTAINERS fixes a potential bug in library

2008-12-24 Thread Sudhir Kumar
This patch fixes some of the errors that I found in network namespace creation library. A file test on an unset vriable will give a pass, so the current test fails. (var scrpt may not have been set before calling :))This patch fixes that error. Signed-off-by: Sudhir Kumar Index: ltp-full-200811

[LTP] [patch 12/12] CONTAINERS add readme file

2008-12-24 Thread Sudhir Kumar
Documentation for running the tests. Signed-off-by: Sudhir Kumar Index: ltp-full-20081130/testcases/kernel/containers/netns/readme === --- /dev/null +++ ltp-full-20081130/testcases/kernel/containers/netns/readme @@ -0,0 +1,15 @@ +Th

[LTP] [patch 03/12] CONTAINERS chnage the way child pid is received

2008-12-24 Thread Sudhir Kumar
This patch changes the way information is exchanged between parent and child. This is required because of the following reason: Earlier the child was in the same pid namespace as parent and this info was passed from the child to the parent through a fifo. But now the child is in a separate pid name

[LTP] [patch 07/12] CONTAINERS script to be run in child namespace

2008-12-24 Thread Sudhir Kumar
This patch adds the script to be executed in the child container. The script contains the setup code and the command for different network testcases. Further code will be added as per the requirements from different network testcases. Signed-off-by: Sudhir Kumar Index: ltp-full-20081130/testcas

[LTP] [patch 09/12] CONTAINERS edits makefile

2008-12-24 Thread Sudhir Kumar
This patch edits the Makefile. Signed-off-by: Sudhir Kumar Index: ltp-full-20081130/testcases/kernel/containers/netns/Makefile === --- ltp-full-20081130.orig/testcases/kernel/containers/netns/Makefile +++ ltp-full-20081130/testcases

[LTP] [patch 00/12] CONTAINERS: Patches to run LTP Network Testcases under Network Namespace

2008-12-24 Thread Sudhir Kumar
This patchset creates the basic infrastructure for running the existing network testcases under containers automatically. The patchset creates a command file named nw_under_ns for the purpose. Please review them and provide all your valuable feedback. I have addressed all the comments from lxc-dev

[LTP] [patch 06/12] CONTAINERS Parent container script for NW testcases

2008-12-24 Thread Sudhir Kumar
This patch adds the script to be executed in the parent container. The script will contain the code as per the requirements from different network testcases. Signed-off-by: Sudhir Kumar Index: ltp-full-20081130/testcases/kernel/containers/netns/runallnetworktests_parent.sh

[LTP] [patch 10/12] CONTAINERS create command file for tests

2008-12-24 Thread Sudhir Kumar
This patch adds the command file for running network testcases under containers. Signed-off-by: Sudhir Kumar Index: ltp-full-20081130/runtest/nw_under_ns === --- /dev/null +++ ltp-full-20081130/runtest/nw_under_ns @@ -0,0 +1,2 @@ +#

[LTP] [patch 04/12] CONTAINERS check ignored failures

2008-12-24 Thread Sudhir Kumar
Do not let the errors happen silently. The patch adds some messages. Signed-off-by: Sudhir Kumar Index: ltp-full-20081130/testcases/kernel/containers/netns/childns.sh === --- ltp-full-20081130.orig/testcases/kernel/containers/netns/

[LTP] [patch 05/12] CONTAINERS adds binary to call the lib api

2008-12-24 Thread Sudhir Kumar
The binary to create the network namespace and run the script tests. The api takes two script names as arguments and run them in parent and child namespace. Signed-off-by: Sudhir Kumar Index: ltp-full-20081130/testcases/kernel/containers/netns/create_container.c =

Re: [LTP] [PATCH] add options for block devices and turn on related testcases

2008-12-24 Thread CAI Qian
Hi, --- On Mon, 12/22/08, Andrew Vagin wrote: > From: Andrew Vagin > Subject: [LTP] [PATCH] add options for block devices and turn on related > testcases > To: subr...@linux.vnet.ibm.com > Cc: ltp-list@lists.sourceforge.net > Date: Monday, December 22, 2008, 3:14 PM > --- > runltp

Re: [LTP] [PATCH] add new testcase for check inotify subsytem.

2008-12-24 Thread CAI Qian
Hi, --- On Tue, 12/23/08, Andrew Vagin wrote: > From: Andrew Vagin > Subject: Re: [LTP] [PATCH] add new testcase for check inotify subsytem. > To: "CAI Qian" > Cc: ltp-list@lists.sourceforge.net > Date: Tuesday, December 23, 2008, 7:56 PM > On Tue, Dec 23, 2008 at 02:57:16AM -0800, CAI Qian w

Re: [LTP] Introduce autoconf to eventfd test case

2008-12-24 Thread Mike Frysinger
On Wednesday 24 December 2008 04:19:12 Masatake YAMATO wrote: > +AC_CHECK_HEADERS(sys/eventfd.h) > + > +AC_CHECK_HEADERS(libaio.h) AC_CHECK_HEADERS_ONCE() is preferred > +AC_CHECK_LIB(aio,io_setup) > +for x in $LIBS; do > +if test "$x" = -laio; then > + AIO_LIBS="$AIO_LIBS -laio" > +

Re: [LTP] Introduce autoconf to eventfd test case

2008-12-24 Thread Vijay Kumar
Masatake YAMATO wrote: > Before my change ltp own eventfd wrapper calls eventfd > system call like this: > > static int > myeventfd(unsigned int initval, int flags) > { > return syscall(__NR_eventfd, initval); > } > > As you can see, FLAGS argument is not used. I guess > this is a bug.

Re: [LTP] [patch 00/12] CONTAINERS: Patches to run LTP Network Testcases under Network Namespace

2008-12-24 Thread Serge E. Hallyn
Quoting Sudhir Kumar (sku...@linux.vnet.ibm.com): > This patchset creates the basic infrastructure for running the existing > network > testcases under containers automatically. The patchset creates a command file > named nw_under_ns for the purpose. > Please review them and provide all your valua

Re: [LTP] [patch 01/12] CONTAINERS fixes a potential bug in library

2008-12-24 Thread Serge E. Hallyn
Quoting Sudhir Kumar (sku...@linux.vnet.ibm.com): > This patch fixes some of the errors that I found in network namespace creation > library. > > A file test on an unset vriable will give a pass, so the current test fails. > (var scrpt may not have been set before calling :))This patch fixes that

Re: [LTP] [patch 02/12] CONTAINERS add-FS-PID-clone-support in libnetns

2008-12-24 Thread Serge E. Hallyn
Quoting Sudhir Kumar (sku...@linux.vnet.ibm.com): > This patch adds the other namespace creation support with the network > namespace. > We now create the PID & UTS namespaces and unshares filesystem attributes. > The patch is required to reuse the existing network testcases directly without > any

Re: [LTP] [patch 03/12] CONTAINERS chnage the way child pid is received

2008-12-24 Thread Serge E. Hallyn
Quoting Sudhir Kumar (sku...@linux.vnet.ibm.com): > This patch changes the way information is exchanged between parent and child. > This is required because of the following reason: > Earlier the child was in the same pid namespace as parent and this info was > passed from the child to the parent t

Re: [LTP] [patch 04/12] CONTAINERS check ignored failures

2008-12-24 Thread Serge E. Hallyn
Quoting Sudhir Kumar (sku...@linux.vnet.ibm.com): > Do not let the errors happen silently. The patch adds some messages. > > Signed-off-by: Sudhir Kumar Acked-by: Serge Hallyn > > Index: ltp-full-20081130/testcases/kernel/containers/netns/childns.sh > =

Re: [LTP] [patch 05/12] CONTAINERS adds binary to call the lib api

2008-12-24 Thread Serge E. Hallyn
Quoting Sudhir Kumar (sku...@linux.vnet.ibm.com): > The binary to create the network namespace and run the script tests. > The api takes two script names as arguments and run them in parent and > child namespace. > > Signed-off-by: Sudhir Kumar Acked-by: Serge Hallyn > > Index: ltp-full-20081

Re: [LTP] [patch 06/12] CONTAINERS Parent container script for NW testcases

2008-12-24 Thread Serge E. Hallyn
Quoting Sudhir Kumar (sku...@linux.vnet.ibm.com): > This patch adds the script to be executed in the parent container. The script > will > contain the code as per the requirements from different network testcases. > > Signed-off-by: Sudhir Kumar Acked-by: Serge Hallyn > Index: > ltp-full-200

Re: [LTP] [patch 07/12] CONTAINERS script to be run in child namespace

2008-12-24 Thread Serge E. Hallyn
Quoting Sudhir Kumar (sku...@linux.vnet.ibm.com): > This patch adds the script to be executed in the child container. The script > contains the setup code and the command for different network testcases. > Further code will be added as per the requirements from different network > testcases. > > S

Re: [LTP] [patch 08/12] CONTAINERS script to be called by command file

2008-12-24 Thread Serge E. Hallyn
Quoting Sudhir Kumar (sku...@linux.vnet.ibm.com): > This patch adds the script to be called by the command file to run network > testcases under containers environment. > > Signed-off-by: Sudhir Kumar Acked-by: Serge Hallyn > Index: ltp-full-20081130/testcases/kernel/containers/netns/nw_under_

Re: [LTP] [patch 09/12] CONTAINERS edits makefile

2008-12-24 Thread Serge E. Hallyn
Quoting Sudhir Kumar (sku...@linux.vnet.ibm.com): > This patch edits the Makefile. > > Signed-off-by: Sudhir Kumar Acked-by: Serge Hallyn > Index: ltp-full-20081130/testcases/kernel/containers/netns/Makefile > === > --- ltp-full-2

Re: [LTP] [patch 10/12] CONTAINERS create command file for tests

2008-12-24 Thread Serge E. Hallyn
Quoting Sudhir Kumar (sku...@linux.vnet.ibm.com): > This patch adds the command file for running network testcases under > containers. > > Signed-off-by: Sudhir Kumar Acked-by: Serge Hallyn > > Index: ltp-full-20081130/runtest/nw_under_ns > ===

Re: [LTP] [patch 11/12] CONTAINERS add further networktestcases

2008-12-24 Thread Serge E. Hallyn
Quoting Sudhir Kumar (sku...@linux.vnet.ibm.com): > Add other network testcases to be run. > > Signed-off-by: Sudhir Kumar Acked-by: Serge Hallyn > Index: > ltp-full-20081130/testcases/kernel/containers/netns/runallnetworktests_child.sh > ==

[LTP] [PATCH] add new testcase for check inotify subsytem.

2008-12-24 Thread Andrew Vagin
this testcase checked event IN_UNMOUNT IN_UNMOUNT File system containing watched object was unmounted and check filesystem that it can't be unmounted if exist opened inotify descriptor. example of execution: Running tests... inotify030 INFO : mount /dev/loop0 to mnt_694 fstype=ext3 ino

[LTP] [PATCH] add options for block devices and turn on related testcases

2008-12-24 Thread Andrew Vagin
version 2: correct patch according with coments from CAI Qian. --- runltp | 59 +++-- runtest/syscalls | 14 ++-- 2 files changed, 63 insertions(+), 10 deletions(-) diff --git a/runltp b/runltp index b6e8b35..0cdba31 100755 ---

Re: [LTP] [PATCH] add options for block devices and turn on related testcases

2008-12-24 Thread Andrew Vagin
On Wed, Dec 24, 2008 at 03:36:21AM -0800, CAI Qian wrote: > Hi, > > > --- On Mon, 12/22/08, Andrew Vagin wrote: > > > From: Andrew Vagin > > Subject: [LTP] [PATCH] add options for block devices and turn on related > > testcases > > To: subr...@linux.vnet.ibm.com > > Cc: ltp-list@lists.sourcef

Re: [LTP] [PATCH] add new testcase for check inotify subsytem.

2008-12-24 Thread CAI Qian
Hi, --- On Thu, 12/25/08, Andrew Vagin wrote: > From: Andrew Vagin > Subject: [PATCH] add new testcase for check inotify subsytem. > To: caiq...@cclom.cn > Cc: subr...@linux.vnet.ibm.com, ltp-list@lists.sourceforge.net, "Andrew > Vagin" > Date: Thursday, December 25, 2008, 12:49 AM > this te