On Tue, 2008-02-26 at 16:05 +0530, Sudeesh John wrote:
> Hi,
> 
> I have written a new patch for the rwtest case . And hope its enough for
> solving this issue. I have tested this patch both in lvm and fdisk
> partitions and found its working fine.
> 
> (See attached file: new_rwtest_patch)

Thanks Sudeesh. This has been applied to.

Regards--
Subrata

> 
> signed-off-by: Sudeesh John <[EMAIL PROTECTED]>
> 
> Thanks & Regards....
> SUDEESH JOHN.
> 
> 
> |------------>
> | From:      |
> |------------>
>   
> >--------------------------------------------------------------------------------------------------------------------------------------------------|
>   |Subrata Modak <[EMAIL PROTECTED]>                                          
>                                                               |
>   
> >--------------------------------------------------------------------------------------------------------------------------------------------------|
> |------------>
> | To:        |
> |------------>
>   
> >--------------------------------------------------------------------------------------------------------------------------------------------------|
>   |ltp-list <[email protected]>                                  
>                                                                        |
>   
> >--------------------------------------------------------------------------------------------------------------------------------------------------|
> |------------>
> | Cc:        |
> |------------>
>   
> >--------------------------------------------------------------------------------------------------------------------------------------------------|
>   |Sudeesh John/India/[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL 
> PROTECTED], Deepakraj B Himavantharaj/India/[EMAIL PROTECTED], Supriya        
>                |
>   |Kannery/India/[EMAIL PROTECTED], Joshi Kuttappan/India/[EMAIL PROTECTED], 
> [EMAIL PROTECTED], Markwiz <[EMAIL PROTECTED]>, Ricardo Salveti de Araujo     
>      |
>   |<[EMAIL PROTECTED]>, Mike Frysinger <[EMAIL PROTECTED]>                    
>                                                              |
>   
> >--------------------------------------------------------------------------------------------------------------------------------------------------|
> |------------>
> | Date:      |
> |------------>
>   
> >--------------------------------------------------------------------------------------------------------------------------------------------------|
>   |02/25/2008 09:18 AM                                                        
>                                                                        |
>   
> >--------------------------------------------------------------------------------------------------------------------------------------------------|
> |------------>
> | Subject:   |
> |------------>
>   
> >--------------------------------------------------------------------------------------------------------------------------------------------------|
>   |[PATCH] rwtest01, 02,03,04 from LTP suite are failing                      
>                                                                        |
>   
> >--------------------------------------------------------------------------------------------------------------------------------------------------|
> 
> 
> 
> 
> 
> Hi,
> 
> We also had a recent failures for rwtest01,02,03 and 04. Please see
> below the sequence of events as well as the solution for this:
> 
> =================================================================
> Sudeesh John Reported:
> =================================================================
> The test cases rwtest01, rwtest02,rwtest03,rwtest04 from ltp suite are
> failing
> for RHEL4U5 on x3850M2 architecture.
> 
> Software Environment:
>  1. "uname -a" output----
> Linux localhost.localdomain 2.6.9-55.ELlargesmp #1 SMP Fri Apr 20 16:46:56
> EDT
> 2007 x86_64 x86_64 x86_64 GNU/Linux
>  2. ltp-full-20080131
> 
> Hardware Environment : x3850M2
> 
> Is this reproducible? Yes
>     Describe the steps:
>     1. export LTPROOT=/root/LTP/ltp-full-20080131
>     2. export PATH=$PATH:/root/LTP/ltp-full-20080131/testcases/bin
>     3. cd /root/LTP/ltp-full-20080131/testcases/kernel/fs/doio
>     4.
>         A. rwtest01:
>            ./rwtest -N rwtest01 -c -q -i 60s  -f sync 10%25000:rw-sync-$$
>         B. rwtest02
>            ./rwtest -N rwtest02 -c -q -i 60s  -f buffered
> 10%25000:rw-buffered-$$
>         C. rwtest03
>           ./rwtest -N rwtest03 -c -q -i 60s -n 2  -f buffered -s
> mmread,mmwrite
> -m random -Dv 10%25000:mm-buff-$$
>         D. rwtest04
>            ./rwtest -N rwtest04 -c -q -i 60s -n 2  -f sync -s
> mmread,mmwrite -m
> random -Dv 10%25000:mm-sync-$$
> 
>  The resulted logs is:
> 
> [EMAIL PROTECTED] doio]# ./rwtest -N rwtest01 -c -q -i 60s  -f sync
> 10%25000:rw-sync-$$
> expr: non-numeric argument
> expr: syntax error
> ./rwtest: line 358: [: -gt: unary operator expected
> iogen(rwtest01):  illegal file length (b) for file rw-sync-2760
> rwtest(rwtest01) : iogen reported errors (r=2)
> doio(rwtest01) ( 3359) 13:21:54
> ---------------------
> read wrong # bytes from input stream, expected 184, got 52
> rwtest01    1  FAIL  :  Test failed
> [EMAIL PROTECTED] doio]#
> 
> [EMAIL PROTECTED] doio]# ./rwtest -N rwtest02 -c -q -i 60s  -f buffered
> 10%25000:rw-buffered-$$
> expr: non-numeric argument
> expr: syntax error
> ./rwtest: line 358: [: -gt: unary operator expected
> iogen(rwtest02):  illegal file length (b) for file rw-buffered-2760
> rwtest(rwtest02) : iogen reported errors (r=2)
> 
> doio(rwtest02) ( 3437) 13:32:32
> ---------------------
> read wrong # bytes from input stream, expected 184, got 52
> rwtest02    1  FAIL  :  Test failed
> [EMAIL PROTECTED] doio]#
> 
> [EMAIL PROTECTED] doio]# ./rwtest -N rwtest03 -c -q -i 60s -n 2  -f buffered
> -s
> mmread,mmwrite -m random -Dv 10%25000:mm-buff-$$
> expr: non-numeric argument
> expr: syntax error
> ./rwtest: line 358: [: -gt: unary operator expected
> iogen(rwtest03):  illegal file length (b) for file mm-buff-2760
> rwtest(rwtest03) : iogen reported errors (r=2)
> 
> doio(rwtest03) ( 3474) 13:35:14
> ---------------------
> read wrong # bytes from input stream, expected 184, got 52
> 
> doio(rwtest03) ( 3473) 13:35:14
> ---------------------
> (parent) pid 3474 exited because of a setup error
> rwtest03    1  FAIL  :  Test failed
> [EMAIL PROTECTED] doio]#
> 
> [EMAIL PROTECTED] doio]# ./rwtest -N rwtest04 -c -q -i 60s -n 2  -f sync -s
> mmread,mmwrite -m random -Dv 10%25000:mm-sync-$$
> expr: non-numeric argument
> expr: syntax error
> ./rwtest: line 358: [: -gt: unary operator expected
> iogen(rwtest04):  illegal file length (b) for file mm-sync-2760
> rwtest(rwtest04) : iogen reported errors (r=2)
> 
> doio(rwtest04) ( 3495) 13:35:53
> ---------------------
> read wrong # bytes from input stream, expected 184, got 52
> 
> doio(rwtest04) ( 3493) 13:35:53
> ---------------------
> (parent) pid 3495 exited because of a setup error
> rwtest04    1  FAIL  :  Test failed
> [EMAIL PROTECTED] doio]#
> 
> 
>  Observations :
> If we provide the file size to test, then the test is passing
> Example:
> [EMAIL PROTECTED] doio]# ./rwtest -N rwtest01 -c -q -i 60s  -f sync
> 1m:rw-sync-$$
> rwtest01    1  PASS  :  Test passed
> [EMAIL PROTECTED] doio]#
> 
> Additional information:
> 
> ----df -h output---
> 
> [EMAIL PROTECTED] doio]# df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/mapper/VolGroup00-LogVol05
>                        20G  4.8G   14G  26% /
> /dev/sda1              99M   15M   80M  16% /boot
> none                   16G     0   16G   0% /dev/shm
> /dev/mapper/VolGroup00-LogVol00
>                        30G   77M   28G   1% /home
> /dev/mapper/VolGroup00-LogVol02
>                        20G   76M   19G   1% /vol1
> /dev/mapper/VolGroup00-LogVol03
>                        20G   76M   19G   1% /vol2
> /dev/mapper/VolGroup00-LogVol04
>                        20G   76M   19G   1% /vol3
> /dev/mapper/VolGroup00-LogVol07
>                       4.0G   41M  3.7G   2% /vol4
> /dev/mapper/VolGroup00-LogVol06
>                        20G   76M   19G   1% /vol5
> [EMAIL PROTECTED] doio]#
> 
> -----mount info---
> 
> [EMAIL PROTECTED] doio]# mount
> /dev/mapper/VolGroup00-LogVol05 on / type ext3 (rw)
> none on /proc type proc (rw)
> none on /sys type sysfs (rw)
> none on /dev/pts type devpts (rw,gid=5,mode=620)
> usbfs on /proc/bus/usb type usbfs (rw)
> /dev/sda1 on /boot type ext3 (rw)
> none on /dev/shm type tmpfs (rw)
> /dev/mapper/VolGroup00-LogVol00 on /home type ext3 (rw)
> /dev/mapper/VolGroup00-LogVol02 on /vol1 type ext3 (rw)
> /dev/mapper/VolGroup00-LogVol03 on /vol2 type ext3 (rw)
> /dev/mapper/VolGroup00-LogVol04 on /vol3 type ext3 (rw)
> /dev/mapper/VolGroup00-LogVol07 on /vol4 type ext3 (rw)
> /dev/mapper/VolGroup00-LogVol06 on /vol5 type ext3 (rw)
> none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
> sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
> [EMAIL PROTECTED] doio]#
> 
> =================================================================
> Sudeesh John Reported:
> =================================================================
> I have run the test on the machine x3500 up with 2.6.9-67.ELsmp from the
> fdisk
> partition then the test is passed.
> 
> --uname -a output--
> [EMAIL PROTECTED] doio]# uname -a
> Linux mx3500.in.ibm.com 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007
> x86_64
> x86_64 x86_64 GNU/Linux
> [EMAIL PROTECTED] doio]#
> 
> [EMAIL PROTECTED] doio]# ./rwtest -N rwtest01 -c -q -i 60s  -f sync
> 10%25000:rw-sync-$$
> rwtest01    1  PASS  :  Test passed
> [EMAIL PROTECTED] doio]#
> 
> Then I created a lvm volume with ext3 file system and copied the ltp suite
> into
> the volune and tniggered the test, the test is failing
> 
> [EMAIL PROTECTED] doio]# ./rwtest -N rwtest01 -c -q -i 60s  -f sync
> 10%25000:rw-sync-$$
> expr: non-numeric argument
> expr: syntax error
> ./rwtest: line 358: [: -gt: unary operator expected
> iogen(rwtest01):  illegal file length (b) for file rw-sync-13372
> rwtest(rwtest01) : iogen reported errors (r=2)
> 
> doio(rwtest01) (23806) 07:15:26
> ---------------------
> read wrong # bytes from input stream, expected 184, got 52
> rwtest01    1  FAIL  :  Test failed
> [EMAIL PROTECTED] doio]#
> 
> =================================================================
> Subrata Modak Responded:
> =================================================================
> There seems to be some problem with the SHELL of lvm volume, for which
> the if
> statement at line 358 of rwtest is not getting executed and not proper
> parameters being passed to the test Binary.
> 
> When you want to run individual test cases manually, you should avoid using
> the
> command line directly. Instead the below approach is recommended:
> 
> Create a File say rwtesting under ltp/runtest directory. Then copy:
> ./rwtest -N rwtest01 -c -q -i 60s  -f sync 10%25000:rw-sync-$$
> in to ltp/runtest/rwtesting file
> 
> And then run the test like:
> 
> ./runltp -f rwtesting
> 
> --Subrata
> =================================================================
> Sudeesh John Responded:
> =================================================================
> >From my understanding this is not a problem with the shell. Hope this is a
> bug
> in the ltp 'rwtest' test case.
> 
> My observation :
> 
> from ltp-full-20080131/testcases/kernel/fs/doio/rwtest
> ............
> ............
> 322   # If df is a symlink (to busybox) then do not pass the $dir and
> $dfOpts
> 323                         # parameters because they don't work as
> expected
> 324                         [ -h $(which df) ] && dir=""; dfOpts=""
> 325
> 326                         blks=$(df $dfOpts $dir |
> 327                         (while read fs blks used avail cap mountpoint
> 
> ...........
> 
> the variable dfOpts (in #324) is seting to NULL even if the df is not a
> symbolic
> link.(It has to be "-P" itself to get the output portable).And so the "df
> $dfOpts $dir" (line #326) command is not giving a result expected by the
> succeeding statements.
> 
> I have written a patch for this. I hope this will work.
> =================================================================
> END OF DISCUSSION Responded:
> =================================================================
> 
> Regards--
> Subrata
> (See attached file: ltp-rwtest.patch)


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to