mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-05 07:54:18 +01:00
ci: use esp8266 mock framework
Resolve the issue with the UnixHostDuino not really being compatible with the esp8266 Core String (...and the rest of the Core, as well) Port the CMakeLists.txt from the rpnlib and update it use FetchContent instead of either manually fetching dependencies or using PIO artifacts Caching is *expected* to work, but might need slight adjustments
This commit is contained in:
16
code/test/unit/src/basic/basic.cpp
Normal file
16
code/test/unit/src/basic/basic.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <unity.h>
|
||||
#include <Arduino.h>
|
||||
|
||||
// Ensure build system works
|
||||
// ref: https://github.com/bxparks/UnixHostDuino/pull/6
|
||||
|
||||
void test_linkage() {
|
||||
pinMode(0, INPUT);
|
||||
pinMode(0, OUTPUT);
|
||||
}
|
||||
|
||||
int main(int, char**) {
|
||||
UNITY_BEGIN();
|
||||
RUN_TEST(test_linkage);
|
||||
return UNITY_END();
|
||||
}
|
||||
Reference in New Issue
Block a user