gluon icon indicating copy to clipboard operation
gluon copied to clipboard

More automated testing on real hardware or QEMU for gluon

Open SmithChart opened this issue 5 years ago • 4 comments

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.

  • Blog [1] [2]
  • Test repo [3] (Tests are here [3a])
  • Hardware is abstracted using labgrid [4]

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^

SmithChart avatar Jun 01 '19 16:06 SmithChart

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

rotanid avatar Jun 01 '19 18:06 rotanid

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

A docker build environment is being prepared in #1738.

mweinelt avatar Jun 07 '19 23:06 mweinelt

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.

CodeFetch avatar Jun 11 '19 18:06 CodeFetch

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.

mweinelt avatar Mar 26 '22 23:03 mweinelt