OpenVZ Forum


Home » Mailing lists » Devel » LTP: serge2 hostname
LTP: serge2 hostname [message #13239] Wed, 23 May 2007 14:13 Go to next message
Alexey Dobriyan is currently offline  Alexey Dobriyan
Messages: 195
Registered: August 2006
Senior Member
I ran ltp-full-20070430 and utstest.c forgot to restore original
hostname from serge2. ;-)
Re: LTP: serge2 hostname [message #13257 is a reply to message #13239] Wed, 23 May 2007 14:49 Go to previous messageGo to next message
serue is currently offline  serue
Messages: 750
Registered: February 2006
Senior Member
Quoting Alexey Dobriyan (adobriyan@sw.ru):
> I ran ltp-full-20070430 and utstest.c forgot to restore original
> hostname from serge2. ;-)

Oh that's just me taking over the world, one workstation at a time.

Hopefully this simple obvious silly workaround fixes it?

It should also fix 'make no_ltp' which I hadn't realized was broken
until I just tried to test the hostname fix...

thanks for spotting that.

-serge

Only in ltp-full-20070430-fixserge2/testcases/kernel/containers/libc lone: libclone.a
Only in ltp-full-20070430-fixserge2/testcases/kernel/containers/libc lone: libclone.o
diff -ur ltp-full-20070430/testcases/kernel/containers/utsname/Makefi le ltp-full-20070430-fixserge2/testcases/kernel/containers/utsn ame/Makefile
--- ltp-full-20070430/testcases/kernel/containers/utsname/Makefi le 2007-04-26 13:02:51.000000000 +0200
+++ ltp-full-20070430-fixserge2/testcases/kernel/containers/utsn ame/Makefile 2007-05-23 16:48:26.000000000 +0200
@@ -4,8 +4,9 @@
LDLIBS += -L../../../../lib -L../libclone ../libclone/libclone.a -lltp

SRCS = $(wildcard *.c)
+NOLTPSRCS = utstest.c
TARGETS = $(patsubst %.c,%,$(SRCS))
-NOLTP_TARGETS = $(patsubst %.c,%_noltp,$(SRCS))
+NOLTP_TARGETS = $(patsubst %.c,%_noltp,$(NOLTPSRCS))

%_noltp : %.c
$(CC) -g -DNO_LTP -o $@ $< ../libclone/libclone.a
diff -ur ltp-full-20070430/testcases/kernel/containers/utsname/runtes ts_noltp.sh ltp-full-20070430-fixserge2/testcases/kernel/containers/utsn ame/runtests_noltp.sh
--- ltp-full-20070430/testcases/kernel/containers/utsname/runtes ts_noltp.sh 2007-04-26 13:02:51.000000000 +0200
+++ ltp-full-20070430-fixserge2/testcases/kernel/containers/utsn ame/runtests_noltp.sh 2007-05-23 16:44:32.000000000 +0200
@@ -1,5 +1,6 @@
#!/bin/sh

+oldhostname=`hostname`
exit_code=0
echo "unshare tests"
for i in `seq 1 5`; do
@@ -17,4 +18,5 @@
exit_code=$?
fi
done
+hostname "$oldhostname"
exit $exit_code
diff -ur ltp-full-20070430/testcases/kernel/containers/utsname/runuts test.sh ltp-full-20070430-fixserge2/testcases/kernel/containers/utsn ame/runutstest.sh
--- ltp-full-20070430/testcases/kernel/containers/utsname/runuts test.sh 2007-04-26 13:02:51.000000000 +0200
+++ ltp-full-20070430-fixserge2/testcases/kernel/containers/utsn ame/runutstest.sh 2007-05-23 16:44:37.000000000 +0200
@@ -1,5 +1,6 @@
#!/bin/sh

+oldhostname=`hostname`
echo "unshare tests"
for i in `seq 1 5`; do
echo "test $i (unshare)"
@@ -10,3 +11,4 @@
echo "test $i (clone)"
utstest clone $i
done
+hostname "$oldhostname"
Only in ltp-full-20070430-fixserge2/testcases/kernel/containers/utsn ame: utstest_noltp
Re: LTP: serge2 hostname [message #13283 is a reply to message #13257] Thu, 24 May 2007 10:08 Go to previous message
Alexey Dobriyan is currently offline  Alexey Dobriyan
Messages: 195
Registered: August 2006
Senior Member
On Wed, May 23, 2007 at 09:49:44AM -0500, Serge E. Hallyn wrote:
> Quoting Alexey Dobriyan (adobriyan@sw.ru):
> > I ran ltp-full-20070430 and utstest.c forgot to restore original
> > hostname from serge2. ;-)
>
> Oh that's just me taking over the world, one workstation at a time.
>
> Hopefully this simple obvious silly workaround fixes it?

Thanks, it's all fine now.
Re: [LTP] LTP: serge2 hostname [message #13489 is a reply to message #13257] Thu, 24 May 2007 07:08 Go to previous message
Subrata Modak1 is currently offline  Subrata Modak1
Messages: 1
Registered: May 2007
Junior Member
Taken Care.

Regards & Thanks--
Subrata Modak,
====================================
====================================




"Serge E. Hallyn"
<serue@us.ibm.com
> To
Sent by: Alexey Dobriyan <adobriyan@sw.ru>
ltp-list-bounces@ cc
lists.sourceforge ltp-list@lists.sourceforge.net,
.net devel@openvz.org
Subject
Re: [LTP] LTP: serge2 hostname
05/23/07 08:19 PM









Quoting Alexey Dobriyan (adobriyan@sw.ru):
> I ran ltp-full-20070430 and utstest.c forgot to restore original
> hostname from serge2. ;-)

Oh that's just me taking over the world, one workstation at a time.

Hopefully this simple obvious silly workaround fixes it?

It should also fix 'make no_ltp' which I hadn't realized was broken
until I just tried to test the hostname fix...

thanks for spotting that.

-serge

Only in ltp-full-20070430-fixserge2/testcases/kernel/containers/libc lone:
libclone.a
Only in ltp-full-20070430-fixserge2/testcases/kernel/containers/libc lone:
libclone.o
diff -ur ltp-full-20070430/testcases/kernel/containers/utsname/Makefi le
ltp-full-20070430-fixserge2/testcases/kernel/containers/utsn ame/Makefile
--- ltp-full-20070430/testcases/kernel/containers/utsname/Makefi le
2007-04-26 13:02:51.000000000 +0200
+++
ltp-full-20070430-fixserge2/testcases/kernel/containers/utsn ame/Makefile
2007-05-23 16:48:26.000000000 +0200
@@ -4,8 +4,9 @@
LDLIBS += -L../../../../lib -L../libclone ../libclone/libclone.a -lltp

SRCS = $(wildcard *.c)
+NOLTPSRCS = utstest.c
TARGETS = $(patsubst %.c,%,$(SRCS))
-NOLTP_TARGETS = $(patsubst %.c,%_noltp,$(SRCS))
+NOLTP_TARGETS = $(patsubst %.c,%_noltp,$(NOLTPSRCS))

%_noltp : %.c
$(CC) -g -DNO_LTP -o $@ $< ../libclone/libclone.a
diff -ur
ltp-full-20070430/testcases/kernel/containers/utsname/runtes ts_noltp.sh
ltp-full-20070430-fixserge2/testcases/kernel/containers/utsn ame/runtests_noltp.sh

--- ltp-full-20070430/testcases/kernel/containers/utsname/runtes ts_noltp.sh
2007-04-26 13:02:51.000000000 +0200
+++
ltp-full-20070430-fixserge2/testcases/kernel/containers/utsn ame/runtests_noltp.sh
2007-05-23 16:44:32.000000000 +0200
@@ -1,5 +1,6 @@
#!/bin/sh

+oldhostname=`hostname`
exit_code=0
echo "unshare tests"
for i in `seq 1 5`; do
@@ -17,4 +18,5 @@
exit_code=$?
fi
done
+hostname "$oldhostname"
exit $exit_code
diff -ur
ltp-full-20070430/testcases/kernel/containers/utsname/runuts test.sh
ltp-full-20070430-fixserge2/testcases/kernel/containers/utsn ame/runutstest.sh

--- ltp-full-20070430/testcases/kernel/containers/utsname/runuts test.sh
2007-04-26 13:02:51.000000000 +0200
+++
ltp-full-20070430-fixserge2/testcases/kernel/containers/utsn ame/runutstest.sh
2007-05-23 16:44:37.000000000 +0200
@@ -1,5 +1,6 @@
#!/bin/sh

+oldhostname=`hostname`
echo "unshare tests"
for i in `seq 1 5`; do
echo "test $i (unshare)"
@@ -10,3 +11,4 @@
echo "test $i (clone)"
utstest clone $i
done
+hostname "$oldhostname"
Only in ltp-full-20070430-fixserge2/testcases/kernel/containers/utsn ame:
utstest_noltp

------------------------------------------------------------ -------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
Previous Topic: RSS controller v2 Test results (lmbench )
Next Topic: PPC64 2.6.18 kernel compilation fix
Goto Forum:
  


Current Time: Sun Oct 13 04:15:35 GMT 2024

Total time taken to generate the page: 0.06299 seconds