On Wed, 2008-06-04 at 09:18 +0530, Rishikesh K. Rajak wrote:
> On Tue, 2008-06-03 at 20:39 +0530, Subrata Modak wrote:
> 
> > 
> > 
> > Rishi,
> > 
> > I did not see these tests fail on:
> 
> Is it something related to Distro releases? because as you can see i
> ran on RHEL 4 kernel.
> 
> Thanks
> Rishi 

<snip>

Hi Rishi,

        You could try this patch and see if it solves the problem. I may not
have a chance to test if for a while.

Cheers,
        -Matt Helsley

Subject: Test kernel version in all fs_bind tests

Distribute tst_kvercmp test to all fs_bind testxx tests by way of the setup file
to make running the tests without the testscripts/test_fs_bind.sh script less
painful on systems that do not support them.

This patch is untested and is submitted for review and testing only.

Signed-off-by: Matt Helsley <[EMAIL PROTECTED]>
---
 testcases/kernel/fs/fs_bind/bin/setup |   12 ++++++++++++
 1 file changed, 12 insertions(+)

Index: ltp-full-20080531/testcases/kernel/fs/fs_bind/bin/setup
===================================================================
--- ltp-full-20080531.orig/testcases/kernel/fs/fs_bind/bin/setup
+++ ltp-full-20080531/testcases/kernel/fs/fs_bind/bin/setup
@@ -35,10 +35,22 @@ rm -rf $disk1/* $disk2/* $disk3/* $disk4
 mkdir $disk1/a $disk1/b $disk1/c
 mkdir $disk2/d $disk2/e $disk2/f
 mkdir $disk3/g $disk3/h $disk3/i
 mkdir $disk4/j $disk4/k $disk4/l
 
+tst_kvercmp 2 6 15
+X=$?
+if [ $X -lt 0 ]; then
+       tst_brkm TBROK "${TCID}: failed to get the running kernel version"
+       exit 1
+elif [ $X -lt 1 ]; then
+       tst_resm TWARN "${TCID}: test requires 2.6.15 or later"
+       tst_exit 0
+else
+       tst_resm TINFO "${TCID}: prereq satisfied: kernel >= 2.6.15"
+fi
+
 lockfile="/.nslock"
 otherpid=
 startparent()
 {
         rm -f $lockfile



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to