rusefi/unit_tests
Matthew Kennedy 2ad4a9df1e
actually remove FSIO idle stuff (#3150)
* debug mode

* pid cleanup

* more dead

* more dead

* wow more dead

* much dead many death wow
2021-08-14 09:48:45 +03:00
..
chibios-mock
googletest@dcc92d0ab6
test_basic_math even more pch (#3112) 2021-08-04 19:30:52 -04:00
tests actually remove FSIO idle stuff (#3150) 2021-08-14 09:48:45 +03:00
.cproject
.gitignore
.project
Makefile
adc_inputs.h
boards.cpp yet more pch (#3068) 2021-08-03 22:05:01 -04:00
boards.h
ci_gcov.sh
compile.bat
compile.sh
efifeatures.h
engine_test_helper.cpp yet more pch (#3068) 2021-08-03 22:05:01 -04:00
engine_test_helper.h yet more pch (#3068) 2021-08-03 22:05:01 -04:00
global.h
global_execution_queue.cpp yet more pch (#3068) 2021-08-03 22:05:01 -04:00
global_execution_queue.h
global_mocks.cpp yet more pch (#3068) 2021-08-03 22:05:01 -04:00
globalaccess.h
gmock-all.cpp
gtest-all.cpp
jenkins.sh
logicdata.cpp
logicdata.h
logicdata_csv_reader.cpp yet more pch (#3068) 2021-08-03 22:05:01 -04:00
logicdata_csv_reader.h
logicdata_sandbox.cpp
main.cpp
map_resize.cpp yet more pch (#3068) 2021-08-03 22:05:01 -04:00
map_resize.h
mocks.h
os_access.h
readme.md
rules.mk
run_clean_gcov.sh
run_gcov.bat
run_logicdata_sandbox.bat
run_sharded_tests.sh
svnversion.h
test.mk
triggers.txt Trigger wheel definitions 2021-08-11 22:53:10 +00:00
unit_test_framework.cpp yet more pch (#3068) 2021-08-03 22:05:01 -04:00
unit_test_framework.h yet more pch (#3068) 2021-08-03 22:05:01 -04:00
unit_test_rules.mk

readme.md

TL, DR: just follow tests folder as examples

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

See also https://github.com/rusefi/rusefi/wiki/Build-Server-and-Automation