<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Hi,</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Probably the easiest way is to parse
      stdout and check for TPASS/TFAIL message here (adding a timer
      somewhere):</div>
    <div class="moz-cite-prefix"><a class="moz-txt-link-freetext" href="https://github.com/acerv/runltp-ng/blob/401f366ccd4bae00a2b247397aae21286594eb5a/ltp/ui.py#L307">https://github.com/acerv/runltp-ng/blob/401f366ccd4bae00a2b247397aae21286594eb5a/ltp/ui.py#L307</a></div>
    <p>Beware that resulting time is an approximation, since python is
      running through syscalls and buffering. Also, not all<br>
      tests are implemented with latest LTP API, so TPASS/TFAIL messages
      might not always appear after sub-tests.</p>
    <p>Andrea<br>
    </p>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 8/8/22 12:44, Chen, Zion wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:VI1PR02MB6189D65184F2713C2E1AB409EA639@VI1PR02MB6189.eurprd02.prod.outlook.com">
      
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        font-size:10.0pt;
        font-family:"Courier New";}span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        mso-fareast-language:EN-US;}span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US">Hello Andera,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Thanks for your answer,
            but we need a duration time of a specific TPASS/TFAIL. Do
            you have something like this?
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">If not, can you point me
            to which line in “runltp” I can add “time” linux command to
            get the duration time of it?<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Thanks,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Zion<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span style="mso-fareast-language:#2000" lang="EN-US">From:</span></b><span style="mso-fareast-language:#2000" lang="EN-US"> Andrea
                Cervesato <a class="moz-txt-link-rfc2396E" href="mailto:andrea.cervesato@suse.com"><andrea.cervesato@suse.com></a>
                <br>
                <b>Sent:</b> Monday, 8 August 2022 12:02<br>
                <b>To:</b> Chen, Zion <a class="moz-txt-link-rfc2396E" href="mailto:zion.chen01@sap.com"><zion.chen01@sap.com></a>;
                <a class="moz-txt-link-abbreviated" href="mailto:ltp@lists.linux.it">ltp@lists.linux.it</a><br>
                <b>Subject:</b> Re: [LTP] Duration run time of each
                benchmark<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <table class="MsoNormalTable" style="width:100.0%" width="100%" cellspacing="0" cellpadding="0" border="0" align="left">
          <tbody>
            <tr>
              <td style="background:#A6A6A6;padding:5.25pt 1.5pt 5.25pt
                1.5pt"><br>
              </td>
              <td style="width:100.0%;background:#EAEAEA;padding:5.25pt
                3.75pt 5.25pt 11.25pt" width="100%">
                <div>
                  <p class="MsoNormal" style="mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly"><span style="font-size:9.0pt;font-family:"Segoe
                      UI",sans-serif;color:#212121">You don't often
                      get email from
                      <a href="mailto:andrea.cervesato@suse.com" moz-do-not-send="true" class="moz-txt-link-freetext">andrea.cervesato@suse.com</a>.
                      <a href="https://aka.ms/LearnAboutSenderIdentification" moz-do-not-send="true">
                        Learn why this is important</a><o:p></o:p></span></p>
                </div>
              </td>
              <td style="width:56.25pt;background:#EAEAEA;padding:5.25pt
                3.75pt 5.25pt 3.75pt;align:left" width="75">
                <br>
              </td>
            </tr>
          </tbody>
        </table>
        <div>
          <div>
            <div>
              <p class="MsoNormal">Hi!<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p> </o:p></p>
            </div>
            <div>
              <p class="MsoNormal">We are currently working on a new LTP
                runner which is the future replacement of the runltp
                script written in bash:
                <a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Facerv%2Frunltp-ng&data=05%7C01%7Czion.chen01%40sap.com%7Cc9db0750bd484703a7d208da791cc4a6%7C42f7676cf455423c82f6dc2d99791af7%7C0%7C0%7C637955462366946140%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=LZ1%2FvGgfDW0vME8ymCXHTkzVXlNjKnP%2BpRxuj%2FszxYo%3D&reserved=0" moz-do-not-send="true">
                  https://github.com/acerv/runltp-ng</a><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">The new runner is written in python
                3.7+ and it supports duration time between tests. At the
                moment, it considers execution time of a single test
                binary,<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">not the duration time of specific
                TPASS/TFAIL results as you might expect, also because
                the old format is still supported and it doesn't give
                this possibility.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p> </o:p></p>
            </div>
            <div>
              <p class="MsoNormal">If you don't need to have duration
                time of specific TPASS/TFAIL , runltp-ng might be the #1
                choice for you, since it also implements a JSON report
                file which<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">can be parsed easily to obtain the
                results.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p> </o:p></p>
            </div>
            <div>
              <p class="MsoNormal">The runltp-ng source code is open and
                available to everyone, so feel free to help and give any
                feedback if needed!<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p> </o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Regards,<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Andrea<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p> </o:p></p>
            </div>
          </div>
          <div>
            <p class="MsoNormal">On 8/8/22 10:17, Chen, Zion via ltp
              wrote:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <p class="MsoNormal"><span lang="EN-US">Hello Linux Test
                Project</span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-US">We are in SAP using
                your ltp benchmark in our linux machine. We are looking
                in the results file after the run is finish and we want
                to know the duration time of each sub-test.</span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-US">Can you point me how
                to do it? How to find the duration time of each
                sub-test?</span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-US">Regards,</span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-US">Zion </span><o:p></o:p></p>
            <p class="MsoNormal"><span style="mso-fareast-language:#2000"><br>
                <br>
                <o:p></o:p></span></p>
            <pre><o:p> </o:p></pre>
          </blockquote>
          <p><o:p> </o:p></p>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>