<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<div class="moz-cite-prefix">On 4/18/19 6:01 AM, Richard Purdie
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:f6e345e417eb8219c0b08ba72ef4e7f6916fdf11.camel@linuxfoundation.org">
<pre class="moz-quote-pre" wrap="">On Wed, 2019-04-17 at 16:38 +0800, <a class="moz-txt-link-abbreviated" href="mailto:changqing.li@windriver.com">changqing.li@windriver.com</a> wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">From: Changqing Li <a class="moz-txt-link-rfc2396E" href="mailto:changqing.li@windriver.com"><changqing.li@windriver.com></a>
1. since one bug in run-ptest, testcase test-bus have never been
actually run (althrough it's result is PASS).
After commit 0828850, test-bus can actually run but it
did not install:
test-service, test-shell-service, test-segfault, and
dbus-daemon-launch-helper-test
Add the configure flag:
--enable-embedded-tests
to generate binary dbus-daemon-launch-helper-test, then install
them so that test-bus will now pass.
2. fix testcase test-dbus-daemon failed
we enable --enable-verbose-mode in recipe dbus-test, and don't
enable it in recipe dbus. This will make below test code get
unexpect result of have_verbose and assert.
disable --enable-verbose-mode for recipe dbus-test to fix it.
#ifdef DBUS_ENABLE_STATS
g_assert_true (have_stats);
#else
g_assert_false (have_stats);
#endif
Signed-off-by: Changqing Li <a class="moz-txt-link-rfc2396E" href="mailto:changqing.li@windriver.com"><changqing.li@windriver.com></a>
---
meta/recipes-core/dbus/dbus-test_1.12.12.bb | 13 ++++++++++---
meta/recipes-core/dbus/dbus/run-ptest | 16 ++++++++++++----
2 files changed, 22 insertions(+), 7 deletions(-)
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
I'm wondering if some of these tests were intentionally not run due to
the length of time they take? It takes the dbus-ptest time from 26s to
250+s. Can you see which test that is and why its taking so long
please?</pre>
</blockquote>
<p>test-bus take most of the time, it include several sub tests. My
test result:</p>
<p>all test runed: <br>
</p>
<p>real 2m59.637s<br>
user 0m59.494s<br>
sys 0m41.952s</p>
<p>skipped test-bus:</p>
<p>real 0m13.125s<br>
user 0m12.230s<br>
sys 0m0.162s</p>
<p><br>
</p>
<p>Previously we don't intentionally skip test-bus, just because we
had a bug in run-ptest before,</p>
<p>so test-bus accidentally not run, just return PASS. <br>
</p>
<p>After below commit fix this bug, test-bus can be runned.</p>
<p><a class="moz-txt-link-freetext" href="https://git.openembedded.org/openembedded-core/commit/?id=0828850fd09f738572ae8259384af07eeb81182b">https://git.openembedded.org/openembedded-core/commit/?id=0828850fd09f738572ae8259384af07eeb81182b</a></p>
<p><br>
</p>
<p><span style="color: rgb(255, 0, 0); font-family: monospace; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">-for i in `ls test/test-*`; do ./$i ./test/data DBUS_TEST_HOMEDIR=./test >/dev/null; output; done</span></p>
<p><br>
<span style="font-family: monospace; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"><span style="font-family: monospace; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">"DBUS_TEST_HOMEDIR=./test" will take as an argument, make no sub test is runned. </span></span></p>
<p> <br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:f6e345e417eb8219c0b08ba72ef4e7f6916fdf11.camel@linuxfoundation.org">
<pre class="moz-quote-pre" wrap="">
Cheers,
Richard
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
BRs
Sandy(Li Changqing)</pre>
</body>
</html>