Supply Arduino version headers in station test fixtures

This commit is contained in:
mikecarper committed 2026-11-01 20:05:47 -08:00
1 parent f056ea688d
commit 4fb7dfc0cf
3 files changed
+3 -1

No files matched your search

+1
View File
@@ -296,6 +296,7 @@ inline void noteStationDiagnosticPhase(ConnectionPhase) {}
}}
''')
(folder/'esp_err.h').write_text('#pragma once\nusing esp_err_t=int;\nconstexpr int ESP_OK=0,ESP_ERR_INVALID_STATE=-2,ESP_ERR_WIFI_NOT_INIT=-3;\n')
(folder/'esp_arduino_version.h').write_text('#pragma once\n')
(folder/'esp_wifi.h').write_text(r'''
#pragma once
#include <cstdint>
+1 -1
View File
@@ -224,7 +224,7 @@ inline void beginStationDiagnostics(const char*) {}
inline void noteStationDiagnosticPhase(ConnectionPhase) {}
}}
''')
for name in ('esp_err.h', 'esp_wifi.h', 'WiFi.h', 'Preferences.h'):
for name in ('esp_err.h', 'esp_wifi.h', 'esp_arduino_version.h', 'WiFi.h', 'Preferences.h'):
(folder / name).write_text('#pragma once\n')
fixture = (ROOT / 'test/fixtures/wifi_ap_shared_lr_sdk.h').read_text()
dispatcher = (ROOT / 'src/Dispatcher.h').read_text()
+1
View File
@@ -112,6 +112,7 @@ class WiFiStationDiagnosticsIntegrationTests(unittest.TestCase):
(cls.folder / "helpers/esp32").mkdir(parents=True)
for name, content in {
"Arduino.h": ARDUINO,
"esp_arduino_version.h": "#pragma once\n",
"WiFi.h": WIFI,
"helpers/esp32/WiFiRadioPolicy.h": RADIO_POLICY,
"helpers/WirelessControl.h": WIRELESS_CONTROL,