<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://reviewboard.asterisk.org/r/3949/">https://reviewboard.asterisk.org/r/3949/</a>
</td>
</tr>
</table>
<br />
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('https://reviewboard.asterisk.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
<tr>
<td>
<div>Review request for Asterisk Developers.</div>
<div>By Tzafrir Cohen.</div>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
testsuite
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This is a preliminary patch and I don't expect it to be included in the test suite as-is. However I welcome any ideas on generalising it so I could avoid including it.
I package the test suite in Debian in order to be able to run tests on Asterisk ci.debian.org (and wherever). Including the test suite within the Asterisk package itself didn't look as a good alternative: I should be able to update it independenly of Asterisk, and such huge extra sources don't look good.
Running the test suite on an installed version of Asterisk works well (and the test driver makes it trivially easy to run tests in a separate container. Of any type). However the test suite likes to write into the same directory structure as the one of the tests. The tests are a large collection of architecture-independent files[1] and thus all belong under /usr/share . But the test results[2] seem to be basically two things:
1. the logs directory
2. The results XML file
I started writing a patch that redirects both of them to a structure under /var/lib/asterisk-testsuite (maybe /var/log would have been better). Redirecting the XML file was very simple. I started trying to figure out how to redirect the logs, and noticed that there are too many references to them. But then noticed that it would be simpler for me to redirect the logs directory at install time using a symlink.
So: anybody else needs such a patch? If so: is it useful without redirecting the logs?
BTW: the wrapper I use to run the tests:
#!/bin/sh
cd /usr/share/asterisk-testsuite
exec ./runtests.py -o "/var/lib/asterisk-testsuite" "$@"
[1] besides asttest. I have it in a separate binary package. It seems it is still needed.
[2] Ignoring /tmp/asterisk-testsuite - a permanent path under /tmp. I really hope noone shouts at me for that.
</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>/asterisk/trunk/runtests.py <span style="color: grey">(5520)</span></li>
</ul>
<p><a href="https://reviewboard.asterisk.org/r/3949/diff/" style="margin-left: 3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>