Hi Hans,<br><br>Thanks for the response.  Indeed, each platform would have its own eccentric way to establish the adhoc connection.  So writing any such test scripts would have to account for that, even if one wasn't attempting to share any portions of the test scripts.<br>
<br>My curiosity in leveraging the cross-platform nature of Python (albeit with platform-specific hooks to radio mgmt) is that such would not be so easy with tests written in shell scripting.  Likewise, script hooks for those instances where we can rely on NetworkManager, instead of having the Python script itself start the adhoc interface.<br>
<br>Since the list of desired tests is pretty exhaustive, I think <i>any</i> extent to which portions of those tests could be implemented across multiple platforms simultaneously indicates those tests that ever actually get implemented. ;)<br>
<br><div class="gmail_quote">On Fri, Mar 15, 2013 at 2:52 PM, Hans of Guardian <span dir="ltr"><<a href="mailto:hans@guardianproject.info" target="_blank">hans@guardianproject.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div><br></div><div>Python is great for writing tests, and runs in many places.  If the tests themselves are based on TCP/IP and jsoninfo, and written in python, then I think they'll be quite portable, and should run fine on Windows too.</div>
<div><br></div><div>The tricky part is that each platform is going to have different ways of getting things into adhoc mode.  You can do something quite similar with Android and GNU/Linux since they both use the Linux kernel, but honestly, recent versions of NetworkManager are so much better to deal with for setting up adhoc than the low level stuff.  So that means Android and GNU/Linux would be handled differently.</div>
<div><br></div><div>.hc</div><br><div><div><div class="h5"><div>On Mar 15, 2013, at 2:48 PM, Ben West wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5">Hi All,<br><br>In lieu of recent progress towards getting Commotion to a working state on Android, Ubuntu/Debian. and now possibly OSX, what thoughts about building a simple and (to whatever degree feasible) cross-platform testing framework in Python?<br>


<br>The general idea is that python scripts could be used to start hitting the test vectors listed here (note the server appears to be really slow):<br><br><a href="https://code.commotionwireless.net/projects/commotion/wiki/Testing#Mesh-Routing-Tech-Evaluations" target="_blank">https://code.commotionwireless.net/projects/commotion/wiki/Testing#Mesh-Routing-Tech-Evaluations</a><br>

<a href="https://code.commotionwireless.net/projects/commotion/wiki/Testing#Testbed-Requirements-based-on-test-suite-defined-above" target="_blank">https://code.commotionwireless.net/projects/commotion/wiki/Testing#Testbed-Requirements-based-on-test-suite-defined-above</a><br>

<a href="https://code.commotionwireless.net/projects/commotion/wiki/Testing#Release-Candidate-Test-Regimen" target="_blank">https://code.commotionwireless.net/projects/commotion/wiki/Testing#Release-Candidate-Test-Regimen</a><br>
<br>That is, assuming Ubuntu/Debian/OSX's python support as a starting point, could these lighweight python implementations allow for some unified test scripts across platforms?<br>
<br><a href="http://qpython.com/" target="_blank">http://qpython.com/</a> (for Android)<br><a href="https://dev.openwrt.org/browser/packages/lang/python/Makefile" target="_blank">https://dev.openwrt.org/browser/packages/lang/python/Makefile</a> (for OpenWRT, to be compiled as module)<br clear="all">

<br>Has anyone on the list had good experience with these Python implementations?<br><br>My original thought for such testing scripts was to do them in shell scripting, but I'm guessing Python would be easier and more powerful.<br>

<br>-- <br>Ben West<div><a href="http://gowasabi.net/" target="_blank">http://gowasabi.net</a><br><a href="mailto:ben@gowasabi.net" target="_blank">ben@gowasabi.net</a><br>
<a href="tel:314-246-9434" value="+13142469434" target="_blank">314-246-9434</a><br></div></div></div>
_______________________________________________<br>Commotion-dev mailing list<br><a href="mailto:Commotion-dev@lists.chambana.net" target="_blank">Commotion-dev@lists.chambana.net</a><br><a href="https://lists.chambana.net/mailman/listinfo/commotion-dev" target="_blank">https://lists.chambana.net/mailman/listinfo/commotion-dev</a><br>
</blockquote></div><br></div></blockquote></div><br><br clear="all"><br>-- <br>Ben West<div><a href="http://gowasabi.net" target="_blank">http://gowasabi.net</a><br><a href="mailto:ben@gowasabi.net" target="_blank">ben@gowasabi.net</a><br>
314-246-9434<br></div>