freifunk-gluon / gluon

a modular framework for creating OpenWrt-based firmwares for wireless mesh nodes
https://gluon.readthedocs.io
Other
550 stars 324 forks source link

More automated testing on real hardware or QEMU for gluon #1734

Open SmithChart opened 5 years ago

SmithChart commented 5 years ago

During the Freifunk Meetup during GPN19 [0] we talked about automated testing of gluon on real hardware or QEMU.

I have briefly introduced my CI system. Here are some follow ups on this.

Currently this setup runs using a TL-WR 841 under my desk and is currently not publicly available. I would happily share my work and knowledge.

In the discussion we agreed that we would like to continue this discussion and that it would be great to have such an infrastructure for gluon development and or other communities.

For the linux kernel there is a distributed testing infrastructure: Kernel-Ci [5]. Maybe we can learn from their system and adapt this to gluon.

This issue is meant to start a discussion on this topic. I can suggest that we may have a meeting during the Chaos Communication Camp this summer or maybe have a meeting in mumble.

Cheers Chrissi^

rotanid commented 5 years ago

Hi, thanks four your ideas and work on this topic! maybe related issues: #1680 #1569

Regarding meetings i'd like to remind everyone that we agreed last year to not have Gluon meetings at events, as these meetings are not inclusive (time, distance, money). There's a planned Gluon Developer meeting in mumble in the next weeks. Regards

mweinelt commented 5 years ago

@lemoer is currently in process of setting up a ci pipeline using jenkins.

A docker build environment is being prepared in #1738.

CodeFetch commented 5 years ago

There is also a test suite from Qualcomm somewhere to use real hardware, but I think as Gluon focuses on the software development and not e.g. debugging WiFi drivers, lemoer's approach is the right way to start.

mweinelt commented 2 years ago

I have written a QEmu test driver based on what NixOS was using like a year ago. It does work, but the test harness around it would need to be written. A way to define test scripts, start one test after another.

https://github.com/freifunk-gluon/gluon/blob/qemu-serial-testdriver/tests/driver.py

Looking for volunteers. This is especially interesting since we don't currently know if a build actually works beyond having been built.