Conformance testing script check.sh added
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
|
||||

|
||||
|
||||
Firmware based on ARM mbed framework for the Libre Solar MPPT/PWM solar charge controllers
|
||||
Firmware based on ARM mbed framework for the Libre Solar MPPT/PWM solar charge controllers.
|
||||
|
||||
Coding style is described [here](https://libre.solar/docs/coding_style/).
|
||||
|
||||
## Supported devices
|
||||
|
||||
@@ -72,12 +74,25 @@ The custom linker script file STM32L073XZ.ld.link_script.ld needs to be updated
|
||||
|
||||
The documentation auto-generated by Doxygen can be found [here](https://libre.solar/charge-controller-firmware/).
|
||||
|
||||
## Unit tests
|
||||
## Conformance testing
|
||||
|
||||
We are using Travis CI to perform several checks for each commit or pull-request. In order to run
|
||||
the same tests locally (recommended before each pull-request) use the script `check.sh`:
|
||||
|
||||
bash check.sh
|
||||
|
||||
### Unit-tests
|
||||
|
||||
In order to run the unit tests, you need a PlatformIO Plus account. Run tests with the following command:
|
||||
|
||||
platformio test -e unit-test-native
|
||||
|
||||
### Static code analysis
|
||||
|
||||
PlatformIO integrates cppcheck and clangtidy. The following command is an example to run the checks for MPPT 1210 HUS charge controller code:
|
||||
|
||||
platformio check -e mppt-1210-hus-v0.7
|
||||
|
||||
## Additional firmware documentation (docs folder)
|
||||
|
||||
- [MPPT charger firmware details](docs/firmware.md)
|
||||
|
||||
Reference in New Issue
Block a user