[Commotion-dev] Python-based testing framework across Ubuntu/Debian and Android (and maybe OSX)?

Ben West ben at gowasabi.net
Fri Mar 15 20:03:03 UTC 2013


Hi Hans,

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.

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.

Since the list of desired tests is pretty exhaustive, I think *any* extent
to which portions of those tests could be implemented across multiple
platforms simultaneously indicates those tests that ever actually get
implemented. ;)

On Fri, Mar 15, 2013 at 2:52 PM, Hans of Guardian <hans at guardianproject.info
> wrote:

>
> 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.
>
> 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.
>
> .hc
>
> On Mar 15, 2013, at 2:48 PM, Ben West wrote:
>
> Hi All,
>
> 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?
>
> 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):
>
>
> https://code.commotionwireless.net/projects/commotion/wiki/Testing#Mesh-Routing-Tech-Evaluations
>
> https://code.commotionwireless.net/projects/commotion/wiki/Testing#Testbed-Requirements-based-on-test-suite-defined-above
>
> https://code.commotionwireless.net/projects/commotion/wiki/Testing#Release-Candidate-Test-Regimen
>
> 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?
>
> http://qpython.com/ (for Android)
> https://dev.openwrt.org/browser/packages/lang/python/Makefile (for
> OpenWRT, to be compiled as module)
>
> Has anyone on the list had good experience with these Python
> implementations?
>
> 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.
>
> --
> Ben West
> http://gowasabi.net
> ben at gowasabi.net
> 314-246-9434
> _______________________________________________
> Commotion-dev mailing list
> Commotion-dev at lists.chambana.net
> https://lists.chambana.net/mailman/listinfo/commotion-dev
>
>
>


-- 
Ben West
http://gowasabi.net
ben at gowasabi.net
314-246-9434
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-dev/attachments/20130315/b5dce546/attachment.html>


More information about the Commotion-dev mailing list