This commit is contained in:
rusefi 2019-08-25 02:49:11 -04:00
parent 9161703598
commit 9d3805eafc
2 changed files with 6 additions and 7 deletions

6
unit_tests/readme.md Normal file
View File

@ -0,0 +1,6 @@
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.
1. Execute rusefi_test binary on your PC/Mac, it's expected to say SUCCESS and not fail :) Googletest will also print results summary.

View File

@ -1,7 +0,0 @@
In this folder we have a naive test suite.
I am not sure what is the best approach to tests in C (someone can educate me), but my approach is:
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.
Run 'make' to build desktop binary & run it on your PC/Mac, it's expected to say SUCCESS and not fail :)