More low-level firmware coverage for the simulator/unit-tests #2656
This commit is contained in:
parent
fbc10d43f9
commit
4f63d2b476
|
@ -10,8 +10,6 @@
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "controller_base.h"
|
#include "controller_base.h"
|
||||||
|
|
||||||
#if ! EFI_UNIT_TEST
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief A base class for a controller that requires its own thread.
|
* @brief A base class for a controller that requires its own thread.
|
||||||
*
|
*
|
||||||
|
@ -68,5 +66,3 @@ public:
|
||||||
m_isStarted = true;
|
m_isStarted = true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -74,6 +74,7 @@ INCDIR += $(UNIT_TESTS_DIR) \
|
||||||
$(HW_SENSORS_INC) \
|
$(HW_SENSORS_INC) \
|
||||||
$(HW_LAYER_DRIVERS_INC) \
|
$(HW_LAYER_DRIVERS_INC) \
|
||||||
$(UNIT_TESTS_DIR)/test_data_structures \
|
$(UNIT_TESTS_DIR)/test_data_structures \
|
||||||
|
$(UNIT_TESTS_DIR)/chibios-mock \
|
||||||
$(UNIT_TESTS_DIR)/tests \
|
$(UNIT_TESTS_DIR)/tests \
|
||||||
$(UNIT_TESTS_DIR)/tests/sensor \
|
$(UNIT_TESTS_DIR)/tests/sensor \
|
||||||
$(UNIT_TESTS_DIR)/test_basic_math
|
$(UNIT_TESTS_DIR)/test_basic_math
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
#define THD_WORKING_AREA(name, size) uint8_t name[size];
|
||||||
|
|
||||||
|
typedef int tprio_t;
|
||||||
|
|
||||||
|
class thread_t {
|
||||||
|
char *name;
|
||||||
|
|
||||||
|
};
|
|
@ -29,6 +29,7 @@ typedef uint32_t ioportmask_t;
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
#include "mock-threads.h"
|
||||||
// todo: include it right here? #include "unit_test_framework.h"
|
// todo: include it right here? #include "unit_test_framework.h"
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue