mirror of
https://github.com/crankyoldgit/IRremoteESP8266.git
synced 2026-01-12 00:05:10 +08:00
* Initial check-in of Unit Testing for IRremoteESP8266. TL;DR: \o/ for finally having (some) Unit Testing. - Add googletest as a submodule. - Create unit tests for IRutils as a first step. - Create a Makefile under test/ which builds and uses the test framework. - De-Arduino-ise some of the code with #ifndef UNIT_TEST guards to allow it to compile and run outside of the Arduino Framework. Note: The Unit Tests are designed to run on a unix box. Not on the ESP8266. This should allow them to be run under Travis. We can do this fairly safely in v2.0 of the library, as everything now uses c98-style type definitions. e.g. uint16_t etc. Any Arduino/ESP8266 specific code needs to be neutered using #ifndef UNIT_TEST lines. * Update travis to build and run the unit tests. * Unit tests for IRsend's sendData() - Modify files to handle unit tests when compiled on non-arduino frameworks. - Add unit tests to cover sendData() - Fix an issue with sendData() when sending zero bit lengths. - Update .gitignore for some generated content we don't want checked in. * Add unit tests for sending NEC protocol. - Unit tests for sendNEC() & encodeNEC() - Make the unit test infrastructre for IRsend availble for other unit tests. - Fix an issue with encodeNEC() which didn't count for address and command being in LSB order in the protocol spec. - Other changes to make the library more portable when not compiled against the Arduino framework. * Add Unit tests for decodeNEC(). - Add unit tests that cover most of decodeNEC(). - [Bug] Address and Command values needed to be reversed. LSB order etc. - Change the way non-standard NEC messages handle address and command decoding. - Add support methods for converting sendBlah() output into a decode_result. - Include <stdint.h> modifier for Travis compilation. - Update Travis for new unit tests to run. * Update README.md with Unit Test info
4 lines
100 B
Plaintext
4 lines
100 B
Plaintext
[submodule "lib/googletest"]
|
|
path = lib/googletest
|
|
url = https://github.com/google/googletest.git
|