Skip to content

Support for libremesh wifi simulation#212

Open
francoriba wants to merge 5 commits intoaparcar:mainfrom
francoriba:feat/libremesh-wifi-simulation
Open

Support for libremesh wifi simulation#212
francoriba wants to merge 5 commits intoaparcar:mainfrom
francoriba:feat/libremesh-wifi-simulation

Conversation

@francoriba
Copy link

Sending to upstream last VGDSpehar's contributions for libremesh done in https://github.com/VGDSpehar/openwrt-tests-libremesh/tree/libremesh-wifi-simulation

Add QEMU x86-64 target configuration for LibreMesh testing with
virtualized WiFi (vwifi/mac80211_hwsim). This enables testing
LibreMesh features in a simulated mesh network environment.

Features:
- hwsim and libremesh feature flags for test filtering
- Dual network interface (WAN + LAN) setup
- Uses QEMUNetworkStrategy for network management
Add new Makefile target 'x86-64-libremesh' for running LibreMesh tests
in QEMU x86-64 with vwifi support for mesh simulation.

Usage:
  make tests/x86-64-libremesh FIRMWARE=/path/to/libremesh.img.gz
Add upload_vwifi fixture and helper functions for testing LibreMesh
in a virtualized WiFi mesh network using vwifi and mac80211_hwsim.

New features:
- _host_ipv4_from_hostname_I(): Robust IPv4 detection for vwifi-client
- upload_vwifi fixture: Uploads vwifi-client to VM, configures
  mac80211_hwsim, connects to host's vwifi-server, and waits for
  mesh interface establishment

Prerequisites:
- vwifi-server running on the host
- vwifi-client binary in vwifi/ directory
Add test_bat_links_info test for verifying LibreMesh shared-state-async
bat_links_info functionality in a virtualized mesh network.

The test verifies that:
- shared-state-async can publish and sync bat_links_info
- All expected mesh nodes are visible in the shared state
- Links between the test node and other nodes are recorded

Requires @pytest.mark.lg_feature('libremesh') for filtering.
@francoriba francoriba changed the title Feat/libremesh wifi simulation Support for libremesh wifi simulation Jan 18, 2026
Signed-off-by: Franco <franco.riba@mi.unc.edu.ar>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant