On Tue, Apr 13, 2010 at 10:37 PM, rahul agarwal <[email protected]> wrote:
> I have a query regarding how to compile individual testcase in ltp.
>
> For example:
>
> fallocate tests inside syscalls are failing and so I want to compile and
> check them seperately after some modifications. But I am facing the problem
> due to various dependencies which are there. And as a result I am not being
> able to isolate the errors which I am facing.
>
> Kindly guide me so that I can overcome such a problem.

Hint:

    Files in runtest describe the tests. The format for runtests is:

# This is a call to a program called test-apps with args as the arguments!
testname1 test-app args

# I am a comment!

# The following is multiple commands strung together -- so I get run in a shell!
testname2 FOO=1; bar

1. You should export some variables like LTPROOT,  to your ltp
install, etc, i.e. these variables (clipped from runltp) if you want
the full experience:

    export LTPROOT=${PWD}
    export TMPBASE="/tmp"
    export PATH="${PATH}:${LTPROOT}/testcases/bin"
    export TMPBASE=`cd \`dirname ${OPTARG}\`; pwd`/`basename ${OPTARG}`
    export TMPTEMPLATE="${TMPBASE}/ltp-XXXXXXXXXX"
    export TMP
    export TMPDIR=$TMP
    export RHOST=$RHOST
    export PASSWD=$PASSWD

2. Or you can either pear down the runtest file, or use the
appropriate blacklist / whitelisting arguments via runltp (runltp
--help will give you more details).

Happy fishing,
-Garrett

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to