#617 unit test skeleton

This commit is contained in:
rusefi 2019-01-03 07:57:34 -05:00
parent 02f7380921
commit 19c3f7370f
6 changed files with 40 additions and 3 deletions

View File

@ -8,6 +8,8 @@
#ifndef HW_LAYER_SENSORS_CJ125_H_
#define HW_LAYER_SENSORS_CJ125_H_
#include "engine_configuration.h"
// CJ125 SPI Registers
#define IDENT_REG_RD 0x48 // Read Identity Register
#define INIT_REG1_WR 0x56 // Write To Initialization Register 1

View File

@ -23,6 +23,7 @@
#include "engine_configuration.h"
#include "test_idle_controller.h"
#include "test_c125.h"
#include "afm2mapConverter.h"
#include "test_signal_executor.h"
#include "trigger_central.h"
@ -124,8 +125,10 @@ int main(void) {
testTriggerDecoder();
testCJ125();
// resizeMap();
printf("Success 20181206\r\n");
printf("Success 20190103\r\n");
printAllTriggers();
// printConvertedTable();
return EXIT_SUCCESS;

View File

@ -4,6 +4,7 @@ TEST_SRC_CPP = test_util.cpp \
global_execution_queue.cpp \
test_basic_math/test_find_index.cpp \
test_basic_math/test_interpolation_3d.cpp \
test_cj125.cpp \
test_data_structures/test_engine_math.cpp \
test_startOfCrankingPrimingPulse.cpp \
test_fasterEngineSpinningUp.cpp \

13
unit_tests/test_c125.h Normal file
View File

@ -0,0 +1,13 @@
/*
* test_c125.h
*
* Created on: Jan 3, 2019
* @author Andrey Belomutskiy, (c) 2012-2019
*/
#ifndef TEST_C125_H_
#define TEST_C125_H_
void testCJ125();
#endif /* TEST_C125_H_ */

18
unit_tests/test_cj125.cpp Normal file
View File

@ -0,0 +1,18 @@
/*
* test_cj125.cpp
*
* Created on: Jan 3, 2019
* @author Andrey Belomutskiy, (c) 2012-2019
*/
#include "test_c125.h"
#include "CJ125.h"
void testCJ125() {
printf("====================================================================================== testCJ125\r\n");
}

View File

@ -1,8 +1,8 @@
/*
* @file test_engine_math.c
*
* Created on: Nov 14, 2013
* Author: Andrey Belomutskiy, (c) 2012-2018
* @date Nov 14, 2013
* @author Andrey Belomutskiy, (c) 2012-2019
*/
#include "test_engine_math.h"