initial commit for tests

This commit is contained in:
Janosch
2022-10-10 11:46:30 +01:00
commit 0e8e1e4db6
20 changed files with 1515 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#include "../libopeninv/include/my_fp.h"
#include "../libopeninv/include/my_math.h"
#include "../libopeninv/include/params.h"
#include "test.h"
#include "test_can.h"
#include "test_state.h"
extern void Param::Change(Param::PARAM_NUM ParamNum){ };
// To add a test:
// 1) write void function test_x (see existing includes)
// 2) register function & name to test_cases below
int main() {
//Test Case register
TestCase tests[] = {
(TestCase){"test_is_evse_input", test_is_evse_input},
(TestCase){"test_check_unplugged", test_check_unplugged},
// Example:
//(TestCase){"Your tests name", function_name_without_brackets}
//...
};
run_suite(tests, sizeof(tests)/sizeof(TestCase));
return 0;
}