rusefi/unit_tests
Matthew Kennedy 5c60973dd8
Consolidate hwHandleShaftSignal (#2875)
* consolidate trigger input

* merge functions

* comment

* dead

* hw vs. not hw

* stray comma

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-28 10:06:22 -04:00
..
chibios-mock misc threading/safety improvements (#2854) 2021-06-24 20:18:23 -04:00
googletest@dcc92d0ab6
test_basic_math make the test legible (#2834) 2021-06-18 22:53:22 -04:00
tests no fan if stopped engine (#2822) 2021-06-28 08:52:54 -04:00
.cproject
.gitignore .logicdata files closer together - partial revert, that did not work as expected 2021-06-25 12:59:44 -04:00
.project
Makefile
adc_inputs.h
boards.cpp
boards.h
ci_gcov.sh
compile.bat
compile.sh
efifeatures.h Trigger: warning code on normal engine start up #669 2021-06-25 11:50:23 -04:00
engine_test_helper.cpp VW warnings on cranking #2861 2021-06-26 16:05:43 -04:00
engine_test_helper.h VW warnings on cranking #2861 2021-06-26 16:05:43 -04:00
global.h
global_execution_queue.cpp
global_execution_queue.h
global_mocks.cpp
globalaccess.h
gmock-all.cpp
gtest-all.cpp
jenkins.sh
logicdata.cpp
logicdata.h
logicdata_csv_reader.cpp Consolidate hwHandleShaftSignal (#2875) 2021-06-28 10:06:22 -04:00
logicdata_csv_reader.h please use const char* they say 2021-06-26 01:39:04 -04:00
logicdata_sandbox.cpp
main.cpp
map_resize.cpp
map_resize.h
mocks.h
os_access.h
readme.md
rules.mk
run_clean_gcov.sh
run_gcov.bat
run_logicdata_sandbox.bat
svnversion.h
test.mk progress 2021-06-26 00:16:41 -04:00
triggers.txt Trigger wheel definitions 2021-06-25 18:45:59 +00:00
unit_test_framework.cpp
unit_test_framework.h
unit_test_rules.mk

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