manufacturing
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
#include <unity.h>
|
||||
#ifdef UNIT_TEST
|
||||
|
||||
|
||||
int main( int argc, char **argv) {
|
||||
UNITY_BEGIN();
|
||||
|
||||
UNITY_END();
|
||||
}
|
||||
|
||||
|
||||
#endif //UNIT_TEST
|
||||
30
test/native/test_main.cpp
Normal file
30
test/native/test_main.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#include <Arduino.h>
|
||||
#include <cstdlib>
|
||||
#include <unity.h>
|
||||
|
||||
#include "test_simpleled.h"
|
||||
|
||||
#ifdef UNIT_TEST
|
||||
|
||||
|
||||
#define RUN_TEST_GROUP(TEST) \
|
||||
if (!std::getenv("TEST_GROUP") || (strcmp(#TEST, std::getenv("TEST_GROUP")) == 0)) { \
|
||||
TEST::run_tests(); \
|
||||
}
|
||||
|
||||
void setUp(void)
|
||||
{
|
||||
ArduinoFakeReset();
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
UNITY_BEGIN();
|
||||
|
||||
RUN_TEST_GROUP(simpleLedTest);
|
||||
|
||||
UNITY_END();
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif //UNIT_TEST
|
||||
12
test/native/test_simpleled.h
Normal file
12
test/native/test_simpleled.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifdef UNIT_TEST
|
||||
|
||||
namespace simpleLedTest
|
||||
{
|
||||
void test_initfunction( void )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user