rusefi-1/unit_tests
Matthew Kennedy 9dda1a21bc
Redundant tps (#1427)
* add redundant sensor

* add tests

* add configure, info printing

* tests

* tests

* partial hookup

* fix

* fix

* bad makefile merge

* use second TPS config

* update test

* update test

* sensor names

* set second pin by default

* fix auto cal

* auto cal both sensors

* add reconfigure of secondary sensors

* gobblin' up your ram

* slow down write a little bit

* put split in debug gauge

* s

Co-authored-by: Matthew Kennedy <matthew@mck-mbp-15.local>
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-18 14:32:00 -04:00
..
googletest@dcc92d0ab6 Closed loop controller base & ETB testing (#1322) 2020-04-19 17:18:47 -04:00
test_basic_math docs & clean-up 2020-05-10 00:59:32 -04:00
tests Redundant tps (#1427) 2020-05-18 14:32:00 -04:00
.cproject
.gitignore
.project
Makefile binary logging (#1443) 2020-05-17 15:56:37 -04:00
adc_inputs.h
afm2mapConverter.cpp
afm2mapConverter.h
boards.cpp happy new year unification 2020-01-13 21:57:43 -05:00
boards.h
compile.bat
efifeatures.h
engine_test_helper.cpp
engine_test_helper.h
global.h
global_execution_queue.cpp Fix 100% duty injection (#1431) 2020-05-14 07:44:32 -04:00
global_execution_queue.h Fix 100% duty injection (#1431) 2020-05-14 07:44:32 -04:00
globalaccess.h
gmock-all.cpp
gtest-all.cpp
jenkins.sh
main.cpp docs & clean-up 2020-05-10 00:59:32 -04:00
map_resize.cpp
map_resize.h
mocks.h Fix 100% duty injection (#1431) 2020-05-14 07:44:32 -04:00
os_access.h
readme.md
rules.mk
run_clean_gcov.sh
run_gcov.bat
run_gcov.sh
test.mk
unit_test_framework.cpp
unit_test_framework.h

readme.md

In this folder we have rusEfi unit tests using https://github.com/google/googletest

Unit tests are not aware of ChibiOS or ARM or else, they are just plain C/C++ which you build for your desktop, not your MCU.

  1. Run 'make' to build desktop binary.
  2. Execute rusefi_test binary on your PC/Mac, it's expected to say SUCCESS and not fail :) Googletest will also print results summary.

Code Coverage Report