<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 2018-03-22 07:14 AM, Alexander
      Kanavin wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:bf908c93-3935-e053-e601-445400ff7ed4@linux.intel.com">On
      03/22/2018 08:06 AM, ChenQi wrote:
      <br>
      <blockquote type="cite">The test framework meson uses is like:
        <br>
        <br>
        |e = executable('prog', 'testprog.c') test('name of test', e)|
        <br>
        <br>
        <br>
        <a class="moz-txt-link-freetext" href="http://mesonbuild.com/Unit-tests.html">http://mesonbuild.com/Unit-tests.html</a>
        <br>
        <br>
        So they could be defined in any valid meson.build file. In
        systemd's case, most of them are in top-level meson.build.
        <br>
        <br>
        I agree with you that it's possible to extract all these test
        cases and hold them in a custom script we write. I think this
        could serve as a fall-back approach to adding ptest support for
        systemd.
        <br>
        But I'd like to spend some time to try to find a more general
        approach, avoiding headaches when upgrading.
        <br>
      </blockquote>
      <br>
      That's right. We probably need to put some kind of 'hook' inside
      meson's test() that would copy the test case to a ptest directory,
      instead of running it.
      <br>
      <br>
      Alex
      <br>
    </blockquote>
    <p><span class="l7"><br>
      </span></p>
    <p><span class="l7">Best if we could pitch this to the meson devs on
        their list:<br>
      </span></p>
    <p><span class="l7">    The Meson Build System &lt;<span class="lG"><a class="moz-txt-link-abbreviated" href="mailto:mesonbuild@googlegroups.com">mesonbuild@googlegroups.com</a></span>&gt;</span></p>
    <p><span class="l7">The earlier that we describe the problem and our
        proposed solution with them the better.</span></p>
    <p><span class="l7">../Randy</span></p>
  </body>
</html>