[Nodeshot] draw non-OLSR wireless links
nemesis
nemesis at ninux.org
Sat Nov 16 16:34:59 CET 2013
Very good!
Do you think you will be able to dedicate some time with me (and
hopefully somebody else) in the next months to setup a controlled
standard setup on which to run unit tests?
I explain:
we can set up a test database with immaginary nodes, devices and ip
addresses (we can also use a subset of the ninux ones), then setup the
application to use a fake OLSR topology file, and test for each case we
need.
This way whenever we encounter a new case we can develop on the test
environment, moreover, we'll be able to change/refactor the code without
the fear of breaking something and ensuring that in the end things will
(mostly) work, because unit tests pass.
I'll cite another pratical example of how unit tests come handy.
Whenever a new django version comes out, or any critical update for any
dependency is released, I try to install it in my dev environment for
nodeshot2 and then I run all the tests. This way I'm able to individuate
and fix any issue really easily and quickly.
It's a real fucking WIN. The time spent in the beginning is surely
worth it and will get repaid on the long run.
Django has a Test Suite that inherits from Python standard UnitTest
Framework (http://docs.python.org/2/library/unittest.html) so everything
learnt for django/nodeshot2 will come handy to anyone who is serious
about python development.
Federico
On Sat, 16 Nov 2013 15:02:25 +0100, Clauz <clauz at ninux.org> wrote:
> Hello!
> On Thursday night I pushed a patch to draw links including devices
> that
> don't speak OLSR, usually connected to OLSR-capable nodes through
> bridged interfaces.
>
> We have a few nodes with this setup in the Ninux Rome network:
> http://map.ninux.org/select/Halnet
> http://map.ninux.org/select/Namex
>
> The idea is to cycle through all IP addresses and to check if these
> belong to active HNA networks announced by OLSR.
>
> commit:
>
> https://github.com/ninuxorg/nodeshot/commit/36906a832bed3dd7ad2d5bd7949017ee61fe0301
>
> cheers,
> Clauz
More information about the Nodeshot
mailing list