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
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
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
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
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
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
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
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
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
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
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
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
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
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 @@
+#
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/
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
=
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
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
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"
> +
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.
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
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
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
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
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
> =
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
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
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
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_
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
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
> ===
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
> ==
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
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
---
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
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
36 matches
Mail list logo