rusefi-1/unit_tests
Matthew Kennedy 690ab7e917
gpio unit tests (#2099)
* fix unregister api for gpio

* consumers

* guard with a critical section

* index

* guard less

* unregister under lock

* fix reinit

* dead flag

* fix most tests

* initialize properly

* initialize properly

* assertions in tests

* fix message

* move gpio mocking

* test gpios

* we must lock earlier to be truly safe

* this was using huge memory

* devirtualize

* test deinit
2020-12-18 17:19:02 -05:00
..
googletest@dcc92d0ab6
test_basic_math fix #1968 (#1976) 2020-11-22 08:26:17 -05:00
tests gpio unit tests (#2099) 2020-12-18 17:19:02 -05:00
.cproject
.gitignore Trigger action (#2070) 2020-12-12 21:36:41 -05:00
.project
Makefile only build in config for the correct board (#2088) 2020-12-17 17:12:24 -05:00
adc_inputs.h
boards.cpp
boards.h
ci_gcov.sh No latest gcov #1973 2020-11-19 21:57:18 -05:00
compile.bat
compile.sh
efifeatures.h start fuel pump as soon as trigger events happen (#2038) 2020-12-10 01:23:24 -05:00
engine_test_helper.cpp Fix gpio reinit race condition (#2098) 2020-12-18 17:18:12 -05:00
engine_test_helper.h fix mock pins array (#2050) 2020-12-10 00:10:58 -05:00
global.h avoid float -> int64 conversion #1977 2020-11-23 23:33:46 -05:00
global_execution_queue.cpp expose the problem 2020-07-31 14:41:29 -07:00
global_execution_queue.h expose the problem 2020-07-31 14:41:29 -07:00
globalaccess.h Move all DECLARE_ENGINE_PTR etc to one place (#1937) 2020-11-11 19:06:04 -05:00
gmock-all.cpp
gtest-all.cpp
jenkins.sh
logicdata.cpp
logicdata.h
logicdata_sandbox.cpp
main.cpp trigger lifecycle 2020-12-09 12:19:25 -05:00
map_resize.cpp
map_resize.h
mocks.h clang warnings again #2055 2020-12-11 10:33:00 -05:00
os_access.h
readme.md
rules.mk unit tests in clang (#2012) 2020-12-05 23:21:17 -05:00
run_clean_gcov.sh
run_gcov.bat
run_logicdata_sandbox.bat
svnversion.h occasional tunerstudio CRC errors #1943 2020-11-15 11:53:09 -05:00
test.mk
triggers.txt Trigger wheel definitions 2020-12-14 00:34:22 +00:00
unit_test_framework.cpp put getTimeNowLowerNt in to mpu_util (#1950) 2020-11-18 14:17:00 -05:00
unit_test_framework.h Etb function cfg, try again (#1860) 2020-10-08 14:12:03 -04:00

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