rusefi-1/unit_tests/readme.txt

7 lines
376 B
Plaintext
Raw Normal View History

2017-04-21 16:05:02 -07:00
In this folder we have a naive test suite.
2015-07-10 06:01:56 -07:00
2017-04-21 16:05:02 -07:00
I am not sure what is the best approach to tests in C (someone can educate me), but my approach is:
2015-07-10 06:01:56 -07:00
2017-04-21 16:05:02 -07:00
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 :)