From: Linux Linux <[email protected]>
Subject: Re: [LTP] times03
Date: Wed, 22 Apr 2009 14:54:06 +0530

>  HiHi
> 
> I am trying to test a *custom* shared *file* *system* using the *LTP*. I
> have mounted my *file* *system* *on* /my-*filesys* *on* my
> linux box. I have few questions about testing this *file* *system* using *
> LTP*. I would require your help to get these doubts resolved.
> 
> 1. Is it required that *LTP* needs to be installed in the
> /my-*filesys* directory
> for *running* *LTP* to test this *file* *system*?
> 

It depends on what tests you are going to run. Some tests provide an
option, so you can point them to /my-filesys. If you are talking about
tests defined in runtest/fs etc, you can see there are some tests
hard-coded the testing path using an absolute path like /tmp.

  rwtest05 export LTPROOT; rwtest -N rwtest05 -c -q -i 50 -T 64b
  500b:/tmp/rwtest01%f

  #Also run the fs_di (Data Integrity tests)
  fs_di fs_di -d /tmp/
  ...

Some tests use relative directories, i.e. testcases/bin if using runltp
(pan).

  gf01 growfiles -W gf01 -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10
  glseek20 glseek20.2
  ...

> 2. Considering my mounted *file* *system* to be unstable, Can I install *LTP
> * under "/root/*ltp*" and start the *LTP* tests from the /my-*filesys* folder
> with absolute path pointing to the *LTP* runltp *file* ?
> 

It will not work not only for tests using absolute paths, but also
for relative paths. In runltp file,

  # Some tests need to run inside the "bin" directory.
  cd "${LTPROOT}/testareas/bin"
  ${LTPROOT}/pan/pan $QUIET_MODE -e -S $INSTANCES $DURATION -a $$ -n
  $$ $PRETTY_PRT -f ${TMP}/alltests $LOGFILE $OUTPUTFILE $FAILCMDFILE

so all directories will use "${LTPROOT}/testareas/bin" as the current
working directory unless pan or individual tests changing that later.

> 3. In the above case, where does the *LTP* tests run from: in the local *
> file* *system* or my mounted *file* *system* ? and where are the temporary *
> files* created ?
> 

There are some options in runltp script may help.

-d TMPDIR       Directory where temporary files will be created.
-r LTPROOT      Fully qualified path where testsuite is installed.

But again, some tests may not honor those options.

> 4. Also, How can I be sure that my *custom* *file* *system* is being exercised
> instead of the local *file* *system* in this case?
> 

To run most of tests mentioned above, you can mount your filesystem as
/tmp, and also run and install LTP there, or you can pick up tests you
would like to run from runtest/fs etc, and run them individually. Maybe
Subrata have a better idea for you.

CAI Qian

> Please help me by answering these questions.
> 
> Best Regards
> 
> 
> On Fri, Apr 17, 2009 at 9:33 PM, Michal Simek 
> <[email protected]>wrote:
> 
>> Hi Subrata,
>>
>> I would like talk to you about times03.
>>
>> I found this part of message at http://lwn.net/Articles/280726/ about
>> times03 but times03 is still there.
>> That message is from Thu, 01 May 2008 and from that time there are only
>> changes which I did around coding style cleanup.
>>
>> 33) Log Message:
>> According to Ulrich Drepper, times02 test is bogus (at least for archs
>> which report return value and error in the same value) and times has no
>> reserved error code. So following patch removes times02 from testsuite and
>> moves times03 test to times02. For more information please see
>> http://sources.redhat.com/ml/libc-alpha/2008-04/msg00054.... <
>> http://sources.redhat.com/ml/libc-alpha/2008-04/msg00054.html> and
>> http://sources.redhat.com/ml/libc-alpha/2008-04/msg00055.... <
>> http://sources.redhat.com/ml/libc-alpha/2008-04/msg00055.html>.
>> Signed-off-by:
>> S.Ça?lar Onur <[email protected]>
>>
>>
>> Currently times03 failed on my system with the following fault
>> # ./times03
>> times03     1  FAIL  :  Error: times() report 0 child system time should
>> be > than zero
>>
>> Any hints what could be wrong?
>>
>> Thanks,
>> Michal
>>
>> --
>> Michal Simek, Ing. (M.Eng)
>> PetaLogix - Linux Solutions for a Reconfigurable World
>> w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Stay on top of everything new and different, both inside and
>> around Java (TM) technology - register by April 22, and save
>> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
>> 300 plus technical and hands-on sessions. Register today.
>> Use priority code J9JMT32. http://p.sf.net/sfu/p
>> _______________________________________________
>> Ltp-list mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ltp-list
>>

------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to