<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 2014&#24180;04&#26376;02&#26085; 06:33, Otavio Salvador
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAP9ODKpm7Kw5MJvrPVvUga_nhUhtNTPsD1ciEk5Rp0zOES3CUg@mail.gmail.com"
      type="cite">
      <pre wrap="">Hello,

On Tue, Apr 1, 2014 at 7:49 AM, Richard Purdie
<a class="moz-txt-link-rfc2396E" href="mailto:richard.purdie@linuxfoundation.org">&lt;richard.purdie@linuxfoundation.org&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">On Tue, 2014-04-01 at 17:09 +0800, Kai Kang wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">From: Li Wang <a class="moz-txt-link-rfc2396E" href="mailto:li.wang@windriver.com">&lt;li.wang@windriver.com&gt;</a>

ptest output format is incorrect, according to yocto Development Manual
(<a class="moz-txt-link-freetext" href="http://www.yoctoproject.org/docs/latest/dev-manual/dev-manual.html#testing-packages-with-ptest">http://www.yoctoproject.org/docs/latest/dev-manual/dev-manual.html#testing-packages-with-ptest</a>)

The test generates output in the format used by Automake:
&lt;result&gt;: &lt;testname&gt;
where the result can be PASS, FAIL, or SKIP, and the testname can be any identifying string.

So we should change the test result format to match yocto ptest rules.

Signed-off-by: Li Wang <a class="moz-txt-link-rfc2396E" href="mailto:li.wang@windriver.com">&lt;li.wang@windriver.com&gt;</a>
Signed-off-by: Robert Yang <a class="moz-txt-link-rfc2396E" href="mailto:liezhi.yang@windriver.com">&lt;liezhi.yang@windriver.com&gt;</a>
Signed-off-by: Kai Kang <a class="moz-txt-link-rfc2396E" href="mailto:kai.kang@windriver.com">&lt;kai.kang@windriver.com&gt;</a>
---
 meta/recipes-devtools/cmake/cmake.inc              |   1 +
 .../cmake/cmake/follow_ptest_output_format.patch   | 118 +++++++++++++++++++++
 2 files changed, 119 insertions(+)
 create mode 100644 meta/recipes-devtools/cmake/cmake/follow_ptest_output_format.patch

diff --git a/meta/recipes-devtools/cmake/cmake.inc b/meta/recipes-devtools/cmake/cmake.inc
index 1d5303f..254af45 100644
--- a/meta/recipes-devtools/cmake/cmake.inc
+++ b/meta/recipes-devtools/cmake/cmake.inc
@@ -17,6 +17,7 @@ SRC_URI = <a class="moz-txt-link-rfc2396E" href="http://www.cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gzfile://aarch64-kwsys.patch\file://qt4-fail-silent.patch\file://cmake-2.8.11.2-FindFreetype.patch\+file://follow_ptest_output_format.patch\">"http://www.cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz
            file://aarch64-kwsys.patch \
            file://qt4-fail-silent.patch \
            file://cmake-2.8.11.2-FindFreetype.patch \
+           file://follow_ptest_output_format.patch \
            "</a>

 inherit autotools-brokensep
diff --git a/meta/recipes-devtools/cmake/cmake/follow_ptest_output_format.patch b/meta/recipes-devtools/cmake/cmake/follow_ptest_output_format.patch
new file mode 100644
index 0000000..5428df2
--- /dev/null
+++ b/meta/recipes-devtools/cmake/cmake/follow_ptest_output_format.patch
@@ -0,0 +1,118 @@
+cmake: follow ptest output format
+
+ptest output format is incorrect, according to yocto Development Manual
+(<a class="moz-txt-link-freetext" href="http://www.yoctoproject.org/docs/latest/dev-manual/dev-manual.html#testing-packages-with-ptest">http://www.yoctoproject.org/docs/latest/dev-manual/dev-manual.html#testing-packages-with-ptest</a>)
+5.10.6. Testing Packages With ptest
+The test generates output in the format used by Automake:
+&lt;result&gt;: &lt;testname&gt;
+where the result can be PASS, FAIL, or SKIP, and the testname can be any identifying string.
+So we should change the test result format to match yocto ptest rules.
+
+Signed-off-by: Li Wang <a class="moz-txt-link-rfc2396E" href="mailto:li.wang@windriver.com">&lt;li.wang@windriver.com&gt;</a>
</pre>
        </blockquote>
        <pre wrap="">
No upstream status. Is there any chance of this going upstream? Might we
be better off postprocessing the output with a script to put it into the
right format?
</pre>
      </blockquote>
      <pre wrap="">
I agree with both remarks. It'd be good to try to get it somehow
integrated upstream and for OE-Core interim solution would be better
to 'convert' using an external script. This may break external tests
tools people may be using as it changes the format without allowing to
'revert' for normal format.

</pre>
    </blockquote>
    <font size="+1"><br>
      OK. I'll send it upstream and see what<font size="+1">'s going on.<br>
      </font></font><br>
    <pre class="moz-signature" cols="72">-- 
Regards,
Neil | Kai Kang</pre>
  </body>
</html>