public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] Correlation between test cases and .c files
Date: Thu, 30 Mar 2017 15:22:39 +0200	[thread overview]
Message-ID: <20170330132239.GH12095@rei.lan> (raw)
In-Reply-To: <CADKPhiMYE5VeJEMkmgUww6c5ayn9D9SpA3ieF+-KYAZ=Xhopuw@mail.gmail.com>

Hi!
> I`m a PhD student interested in run some studies with the different LTP
> releases. I would like to know how can I correlate tests cases with .c file
> that contain the test case ?
> All test cases listed in runtest/ directory. each file in side it contains
> the list of test.

The runtest file syntax is simple:

* Start of the line until first whitespace is test id
  the rest of the line is command line to be executed

* Every line starting with # is comment

> For example:  ltp-20011206 the file crashme in the runtest/ directory
> contains
> 
> # Before running these: BACKUP YOUR SYSTEM!  you've been warned!
> f00f f00f
> # This is a simple test for handling of the pentium f00f bug.
> # It is an example of a catistrophic test case.  If the system
> # doesn't correctly handle this test, it will likely lockup.
> crash01 crash01
> # Generate random code and execute it. Read f00f comment,
> # this test lockup SunOS,WindowsNT,etc. in seconds..
> crash02 crash02
> # Generate random syscalls and execute them, less probability
> # to hose your system, but still.
> mem01 mem01 -r
> # Memory eater. Loves to be run in parallel with other programs.
> # May panic on buggy systems if the OOM killer was not fast enough :-)
> proc01 proc01
> # Read every file in /proc. Not likely to crash, but does enough
> # to disturb the kernel. A good kernel latency killer too.
> 
> Where the relations between f001 test case and the respective test file
> (code) is established ? I need to inspect the code for each test case and
> get some metrics.

All test binaries are installed into a single directory. To get the test
source you need to locate the executable name in the command line part
of the corresponding line, then do something as find -name foo* in the
LTP source tree. You will likely end up either with C source or a shell
script.

-- 
Cyril Hrubis
chrubis@suse.cz

  reply	other threads:[~2017-03-30 13:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-30 13:13 [LTP] Correlation between test cases and .c files Jonatas Bastos
2017-03-30 13:22 ` Cyril Hrubis [this message]
2017-04-30 21:19   ` Jonatas Bastos
2017-05-02 10:35     ` Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170330132239.GH12095@rei.lan \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox