David A. Marlin | 1 Sep 06:14 2004
Picon

IFNAME undefined in tcpdump01


I am working with the 20040804 release of LTP.  I noticed that the 
tcpdump01 test was failing for me because IFNAME was undefined.  I could 
not find where it was supposed to be set in tcpdump01, so I added a line 
to set IFNAME if not already defined, modeled after code in 'mc_cmds'.

Attached is a patch showing the code I added.  Note: there are two NICs 
in the system I am testing.  I assume that the first (eth0) should be 
used as the interface for this test, unless otherwise specified.

Please let me know if IFNAME should be set using some other method, or 
if this is an acceptable approach.

Thank you,

d.marlin
--- testcases/network/tcp_cmds/tcpdump/tcpdump01.orig	2004-08-10 22:18:41.000000000 +0000
+++ testcases/network/tcp_cmds/tcpdump/tcpdump01	2004-08-24 22:21:22.000000000 +0000
 <at>  <at>  -39,6 +39,8  <at>  <at> 
 TC=tcpdump
 TCtmp=${TCtmp:-/tmp/$TC$$}
 RHOST=${RHOST:-`hostname`}
+IFNAME=${IFNAME:-$(netstat -i -n | grep "^[b-z]\{2,4\}[0-9][^*]" | \
+      awk '{print $1}' | head -n1)}
 NUMLOOPS=${NUMLOOPS:-20}
 OUTFILE=$TCtmp/tcpdump_out
 LTPROOT=${LTPROOT:-"../../../../"}
(Continue reading)

Robert Williamson | 1 Sep 18:21 2004
Picon

Re: IFNAME undefined in tcpdump01


Thanks for the patch, David.  I applied it to our CVS tree.

-Robbie
(Embedded image moved to file: pic13061.jpg)

                                                                           
             "David A. Marlin"                                             
             <dmarlin <at> redhat.c                                             
             om>                                                        To 
             Sent by:                  ltp-list                            
             ltp-list-admin <at> li         <ltp-list@...>    
             sts.sourceforge.n                                          cc 
             et                                                            
                                                                   Subject 
                                       [LTP] IFNAME undefined in tcpdump01 
             08/31/2004 11:14                                              
             PM                                                            

I am working with the 20040804 release of LTP.  I noticed that the
tcpdump01 test was failing for me because IFNAME was undefined.  I could
not find where it was supposed to be set in tcpdump01, so I added a line
to set IFNAME if not already defined, modeled after code in 'mc_cmds'.

Attached is a patch showing the code I added.  Note: there are two NICs
in the system I am testing.  I assume that the first (eth0) should be
used as the interface for this test, unless otherwise specified.

Please let me know if IFNAME should be set using some other method, or
if this is an acceptable approach.
(Continue reading)

David A. Marlin | 1 Sep 23:22 2004
Picon

IPADDR undefined in sendfile01 if gethost fails


I am working with the 20040804 release of LTP.  I am setting RHOST to
the IP address of my LTP network test server.  I do not have DNS
services available on my test subnet and I am not modifying '/etc/hosts'
on the test client to include an entry for the network test server. 
'sendfile01' is failing on this setup because 'gethost' fails, and
IPADDR is left undefined.

Is this a legitimate setup, or is either DNS or an '/etc/hosts' entry
required for LTP network tests?

My workaround is to check that IPADDR is not null after the gethost
call, and if it is, set it to the value of RHOST (assuming that it is an
IP address).  This works for me, but I'm not sure if it is generally
applicable.  Note: the test will still fail if RHOST is not set to
either the network test server's hostname or IP address (as expected).

Attached is a patch showing the code I added.

Thank you,

d.marlin
--- testcases/network/tcp_cmds/sendfile/sendfile01.orig	2003-07-31 20:32:46.000000000 +0000
+++ testcases/network/tcp_cmds/sendfile/sendfile01	2004-09-01 19:07:33.000000000 +0000
 <at>  <at>  -95,6 +95,10  <at>  <at> 
    tst_resm TINFO "$this_file: doing $0."

    mkdir -p $TCtmp
+   if [ -z $IPADDR ]; then 
(Continue reading)

Paul Larson | 2 Sep 21:33 2004

Quick regression testing in LTP, and a couple of other small changes

I just committed a couple of small changes that some people have been
wanting.

1. New script /testscripts/syscalls.sh which just runs the syscalls
tests.  This runs in < 10min. on my laptop (800MHz PIII).  For some,
this will serve as a decent quick regression when you don't have time o
run the whole thing.  More work is being done by others to use code
coverage analysis to come up with a more representative minimum set of
tests for fast regression testing, but that'll come later.

2. If you are running runalltests.sh, please stop now or you will get a
really annoying warning.  The default test script is now called runltp
(no .sh) and for now, is just a straight copy of the old
runalltests.sh.  More changes are in the pipe but need a little more
thought first.  For now it's just a nitpick since runalltests.sh/runltp
doesn't actually run *all* the ltp tests.

Thanks,
Paul Larson
Ihno Krumreich | 2 Sep 11:59 2004
Picon

[Patch] munlock02 fails on itanium with 2.6-kernel

Hello,

munlock02 (in ltp-full-20040707/testcases/kernel/syscalls/munlock) fails
on itanum with 2.6-Kernel.

By looking into the test I saw that the description differs from the man-page.
I reworked the setup and removed the itanium-specific ifdef as it
not needed any more.

Patch successfull testet on itanium with 2.6 and on s390x with 2.4 kernel.
other tests pending.

regards 

Ihno

--- ltp-full-20040707/testcases/kernel/syscalls/munlock/munlock02.c.old	2003-09-18
19:52:17.000000000 +0200
+++ ltp-full-20040707/testcases/kernel/syscalls/munlock/munlock02.c	2004-09-02
11:23:31.000000000 +0200
 <at>  <at>  -36,7 +36,8  <at>  <at> 
  *
  * 	Verify that munlock(2) returns -1 and sets errno to
  *
- * 	1) ENOMEM - If process exceed maximum  number of locked pages.
+ * 	1) ENOMEM - Some of the specified address range does not correspond to
+ *                  mapped pages in the address space of the process.
  * 
  * 	Setup:
  *	  Setup signal handling.
(Continue reading)

Rajeev Tiwari | 3 Sep 13:17 2004
Picon

Patch for broken LTP test case - getrlimit02


Steps to Reproduce Error:

1. Install the latest LTP tar ball and run make and make install to build
LTP suite

2. go to the following folder:
ltp-full-xxxxxxx/testcases/kernel/syscalls/getrlimit

3. Execute the getrlimit02 test case: ./getrlimit02

Actual Results:
x330b:/home/rajeev/ltp-full-20040707/testcases/kernel/syscalls/getrlimit #
./getrlimit02
getrlimit02    1  PASS  :  expected failure; got EFAULT
getrlimit02    2  FAIL  :  call failed to produce expected error;  errno: 0
:
Success

Expected Results:
x330b:/home/rajeev/ltp-full-20040707/testcases/kernel/syscalls/getrlimit #
./getrlimit02
getrlimit02    1  PASS  :  expected failure; got EFAULT
getrlimit02    2  PASS  :  expected failure; got EINVAL

Additional Information:

The above error in the test case can be corrected by making the following
changes in the test case:

(Continue reading)

Robert Williamson | 3 Sep 20:18 2004
Picon

Re: Patch for broken LTP test case - getrlimit02


Thanks, however we have already addressed this issue in our CVS tree.

-Robbie
(Embedded image moved to file: pic24256.jpg)

                                                                           
             Rajeev Tiwari                                                 
             <rajeevtiw@...                                             
             .com>                                                      To 
             Sent by:                  ltp-list@...      
             ltp-list-admin <at> li                                          cc 
             sts.sourceforge.n                                             
             et                                                    Subject 
                                       [LTP] Patch for broken LTP test     
                                       case - getrlimit02                  
             09/03/2004 06:17                                              
             AM                                                            

Steps to Reproduce Error:

1. Install the latest LTP tar ball and run make and make install to build
LTP suite

2. go to the following folder:
ltp-full-xxxxxxx/testcases/kernel/syscalls/getrlimit

3. Execute the getrlimit02 test case: ./getrlimit02

Actual Results:
(Continue reading)

A Povolotsky | 4 Sep 19:49 2004
Picon

Cerberus Test Control System on Linux 2.6 executing on PowerPC platfor m ?


Hi - does any one on this list has the source code for Cerberus Test Control System on Linux 2.6 runnable on
PowerPC platform ?

Thanks,
Alex

---------- Forwarded Message ----------
Alex,
We ran it last year on IBM Power system, PPC64 machine.  We had to make a few minor changes, mainly for where it
checks the hardware it is running on. Sorry, we can't even find the changes we made.  We did report it to the
maintainer but never heard anything back from the person.  The machine was a standard IBM p630. The hard
drive would have
been under 14G.

Hope that is helpful
Stephanie

Linux Technology Center
 IBM, 11400 Burnet Road, Austin, TX  78758
 Phone: (512) 838-9284   T/L: 678-9284  Fax: (512) 838-3882
 E-Mail: sglass@...
09/01/2004 09:22 PM
Stephanie Glass/Austin/IBM <at> IBMUS    
Subject: Cerberus Test Control System on Linux 2.6 on PPC platform ?

A Povolotsky wrote:

Hi Stefanie,

(Continue reading)

prakash.banu | 7 Sep 06:50 2004

ioperm02 1 FAIL

hello ,
 
 the ioperm02 case FAILS giving the following ,is their any corrections availiable if so anybody  tell me,
 
 
 
<<<test_start>>>
tag=ioperm01 stime=1093964346
cmdline="ioperm01"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
<<<execution_status>>>
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=0
<<<test_end>>>
ioperm02    1  FAIL  :  Unexpected results for Invalid I/O address ; returned 0 (expected -1), errno 0 (expected errno  22)
ioperm02    2  PASS  :  Expected failure for Non super-user, errno: 1
<<<test_start>>>
tag=ioperm02 stime=1093964346
cmdline="ioperm02"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
<<<execution_status>>>
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=0
<<<test_end>>>
prakash.banu | 7 Sep 08:18 2004

host command in ltp

hello,
 
 if i give host 10.200.1.1 it gives HOST 1.1.200.10.in-addr.arpa not found: 3(NXDOMAIN) ,i have made an entry in resolve.conf also,do i have to set up DNS ,anybody suggest me how shall i resolve this.

Gmane