public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: chrubis@suse.cz
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [RFC] replacement for runltp + ltp-pan
Date: Wed, 20 Feb 2013 12:55:07 +0100	[thread overview]
Message-ID: <20130220115507.GB1422@rei.Home> (raw)

Hi!
Some time ago I started to think about replacement for the current
runltp + ltp-pan test execution system, before I start writing any code
here are a few points that I currently have in mind. Feel free to
comment on them.

Here is what I think that is wrong with the current system:

* Open Posix Testsuite is not executed by runtest + ltp-pan
  
  - technically this should be as easy as translating the return
    codes and generating runtest files as we build the testsuite

* Current system doesn't support timeouts

  - which should be easy to implement but would require change
    to the runtest file format (one timeout for all doesn't
    work as we have tests that runs less than second and tests
    that takes more than ten minutes).

* The output to stdout is messy

  What I would like is:

  [004/243] getrusage04 .................................. [FAILED]
  [005/243] getsid01 ..................................... [RUNNING]

* The new tool should be able search runtest files for particular test
  names, blacklist some tests if needed, etc. Which is now done by
  grepping runtest files in the hacked together runltp script.

* There are tests that needs a disk partition or loopback image, we
  should handle that and export right environment variables. This should
  be designed, documented and fixed.

* The current system doesn't produce usable logs

  Well you get list of testcases that succeeded and list of testcases
  that has failed, which is better than nothing.
  
  But what I'm thinking about is some more structured format that
  will include test output, possibly test duration and so. I personally
  think that JSON is good candidate for this job as it's structured,
  easy to read and widely supported as there are libraries for python,
  perl, etc.

  Then we could create git repo with reference results. Generate html
  pages from the repo with results. Write scripts for result comparsion,
  etc.

  The JSON log may look like:

  "LTP Version": 20130109,
  "System Info": {
  	"Kernel Version": "3.7.1",
	"Hardware": {
		"Arch": "x86_64",
		"CPUs": 2,
		"Ram": 4051840,
		(more filelds like this follows),
	},
  },
  "Results": [
  	{
		"Test Name": "getrusage04",
		"Test Result": "FAILED",
		"Test Runtime": 0.011532,
		"Test CPU Time": 0.003234,
		"Test Output": [
			"TINFO : Using 1 as multiply factor for max increment",
			"TINFO : utime:         0us; stime         0us",
			"TINFO : utime:         0us; stime      4000us",
			"TFAIL : stime increased > 2000us",
		],
	},
	(more test results follows),
  ]

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

             reply	other threads:[~2013-02-20 11:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-20 11:55 chrubis [this message]
     [not found] ` <114382587.6789703.1361448130009.JavaMail.root@redhat.com>
2013-02-21 12:37   ` [LTP] [RFC] replacement for runltp + ltp-pan chrubis

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=20130220115507.GB1422@rei.Home \
    --to=chrubis@suse.cz \
    --cc=ltp-list@lists.sourceforge.net \
    /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