OpenVZ Forum


Home » Mailing lists » Devel » LTP: serge2 hostname
Re: LTP: serge2 hostname [message #13257 is a reply to message #13239] Wed, 23 May 2007 14:49 Go to previous messageGo to previous 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
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: RSS controller v2 Test results (lmbench )
Next Topic: PPC64 2.6.18 kernel compilation fix
Goto Forum:
  


Current Time: Sun Jul 06 23:09:40 GMT 2025

Total time taken to generate the page: 0.03034 seconds