feat: Add initial support for PlatformIO and Arduino
This commit is contained in:
@@ -30,8 +30,22 @@
|
||||
#include <stdio.h>
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#ifdef ARDUINO
|
||||
void setup() {
|
||||
int argc = 0;
|
||||
char** argv = nullptr;
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
RUN_ALL_TESTS();
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
GTEST_API_ int main(int argc, char **argv) {
|
||||
printf("Running main() from %s\n", __FILE__);
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user