Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSoC 2019 unittesting reference PR #2

Open
wants to merge 51 commits into
base: master
from

Conversation

@spiccinini
Copy link
Owner

commented Aug 26, 2019

This PR is only for reference of all the work done for the GSoC.

In order to have this work merged I created many small PR in the libremesh repository: #562 #563 #564 #565 #566 #567.

spiccinini added 30 commits Jun 17, 2019
lime.config: refactor prints into log function
this allows disabling the verbosity from the tests
lime.config: fix minor bug when getting a false value from uci
this probably never gets triggered in the field but the code is
clearer comparing to nil and not to a boolean value.
travis: add unittests and use new openwrt docker images
Also removed package signing as the new images doesn't have the
keys. We should find a way to do the signing.
add nixio to the docker test image
As the nixio version that is in luarocks (0.3-2) is very old and
is not building here it is provided a 0.4 release not yet provided
by upstream.
spiccinini added 21 commits Aug 15, 2019
tests: fix lime.network tests
As lime.proto.anygw is now available the lime.network code performs
more checks.
tests: add iwinfo fake library
some helper function are provided to aid testing:
    iwinfo.fake.set_scanlist(phy_id, scanlist)
    iwinfo.fake.scanlist_gen_station(ssid, channel, signal, mac, mode, quality)
    iwinfo.fake.set_channel(phy_id, channel)
    iwinfo.fake.set_assoclist(radio, assoclist)
    iwinfo.fake.gen_assoc_station(....)
    iwinfo.fake.set_hwmodelist(radio_or_phy, hwmodelist)

@spiccinini spiccinini changed the title GSoC 2019 unittesting PR GSoC 2019 unittesting reference PR Aug 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.