Re: [LTP] Introduce autoconf to eventfd test case

2008-12-24 Thread CAI Qian
Hi, --- On Wed, 12/24/08, Masatake YAMATO yam...@redhat.com wrote: From: Masatake YAMATO yam...@redhat.com 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

[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 sku...@linux.vnet.ibm.com Index: ltp-full-20081130/testcases/kernel/containers/netns/nw_under_ns.sh

[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 sku...@linux.vnet.ibm.com Index: ltp-full-20081130/testcases/kernel/containers/netns/runallnetworktests_child.sh === ---

[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

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

2008-12-24 Thread Sudhir Kumar
Documentation for running the tests. Signed-off-by: Sudhir Kumar sku...@linux.vnet.ibm.com Index: ltp-full-20081130/testcases/kernel/containers/netns/readme === --- /dev/null +++

[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

[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 sku...@linux.vnet.ibm.com Index:

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

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

[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 sku...@linux.vnet.ibm.com Index:

[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 sku...@linux.vnet.ibm.com Index: ltp-full-20081130/testcases/kernel/containers/netns/childns.sh === ---

[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 sku...@linux.vnet.ibm.com 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 ava...@gmail.com wrote: From: Andrew Vagin ava...@gmail.com 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

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

2008-12-24 Thread CAI Qian
Hi, --- On Tue, 12/23/08, Andrew Vagin ava...@parallels.com wrote: From: Andrew Vagin ava...@parallels.com Subject: Re: [LTP] [PATCH] add new testcase for check inotify subsytem. To: CAI Qian caiq...@cclom.cn Cc: ltp-list@lists.sourceforge.net Date: Tuesday, December 23, 2008, 7:56 PM On

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 +fi +done

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. So I

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 valuable

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

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 sku...@linux.vnet.ibm.com Acked-by: Serge Hallyn se...@us.ibm.com 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 sku...@linux.vnet.ibm.com Acked-by: Serge Hallyn

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 sku...@linux.vnet.ibm.com Acked-by: Serge Hallyn

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.

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 sku...@linux.vnet.ibm.com Acked-by: Serge Hallyn se...@us.ibm.com Index:

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 sku...@linux.vnet.ibm.com Acked-by: Serge Hallyn se...@us.ibm.com Index: ltp-full-20081130/testcases/kernel/containers/netns/Makefile

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 sku...@linux.vnet.ibm.com Acked-by: Serge Hallyn se...@us.ibm.com 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 sku...@linux.vnet.ibm.com Acked-by: Serge Hallyn se...@us.ibm.com 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

[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 ava...@gmail.com wrote: From: Andrew Vagin ava...@gmail.com Subject: [LTP] [PATCH] add options for block devices and turn on related testcases To: subr...@linux.vnet.ibm.com Cc: