public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] Usage of tst_parse and Emailing results
@ 2018-06-21 18:49 umeshyv
  2018-06-25 14:06 ` Cyril Hrubis
  0 siblings, 1 reply; 2+ messages in thread
From: umeshyv @ 2018-06-21 18:49 UTC (permalink / raw)
  To: ltp

Hi All,

I have a requirement to run a test case along with device  address from
command line, for eg., running an i2c test  as follows

 i2c_test <device addr>

How could I make use of tst_parse() to get device addr, please suggest with
examples.

Also I wanted to send test results to email id on completion of test
execution, please update me if I need to add any code snippet in test code
or from command line configuration. Please suggest.


Thanks
​Umesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20180622/7d177490/attachment.html>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [LTP] Usage of tst_parse and Emailing results
  2018-06-21 18:49 [LTP] Usage of tst_parse and Emailing results umeshyv
@ 2018-06-25 14:06 ` Cyril Hrubis
  0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2018-06-25 14:06 UTC (permalink / raw)
  To: ltp

Hi!
> I have a requirement to run a test case along with device  address from
> command line, for eg., running an i2c test  as follows
> 
>  i2c_test <device addr>
> 
> How could I make use of tst_parse() to get device addr, please suggest with
> examples.

There is no tst_parse() function in LTP.

Documentation and example on how to pass parameters to a test is at:

https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#225-test-specific-command-line-options

> Also I wanted to send test results to email id on completion of test
> execution, please update me if I need to add any code snippet in test code
> or from command line configuration. Please suggest.

What exactly are you trying to do here?

It's not clear what "completion of test execution" means.

The runltp script has an option to send a email with results but you
have to install and configure mutt beforehand.

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-25 14:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-21 18:49 [LTP] Usage of tst_parse and Emailing results umeshyv
2018-06-25 14:06 ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox