1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-25 20:02:37 +03:00

20 Commits

Author SHA1 Message Date
Earle F. Philhower, III
03ea61a32a Add valgrind and string tests to host_tests (#4939)
* Add valgrind and string tests to host_tests

Valgrind identified an error that was causing intermittent failures in
the host tests, and can check for subtle memory access and allocation bugs.
Add it to the standard host_test suite, and any errors will cause test
failure.

Also start adding string tests, since two undefined behaviors have been
found so far just by inspection.

* Add additional String tests

Looks like a possible bug in the concatenation operator, need to verify
expected behavior.

* Remove verbose from valgrind run

No need to be so chatty on the test.  Errors were a little hard to spot.
Go to normal verbosity.

* Add lcov and more string tests

LCOV and genhtml can generate nice HTML coverage charts hilighting test
coverage issues in a much simpler way than gcov text format.  Generate these
automatically from gcov output.

Add additional string creation and comparison tests.

* Move String coverage to >50%

Additional string tests and checks

* 66% test coverage in String

* Add allocation-unit-sized strings test

Ensure that strings that are right on the edge of the allocation
size are handled properly and account for trailing 0.
2018-07-27 13:10:55 -04:00
Ivan Grokhotkov
2c8b2b92ce tests: minor fixes, add README.md 2018-01-09 15:59:08 +08:00
Sven Eliasson
2404a602af Const-correctness for MD5Builder (#3222)
Resolves #1175
2017-05-12 01:03:14 -05:00
Ivan Grokhotkov
6d3109e8c7 Remove implementations of non-ISO libc functions which are present in newlib 2016-06-27 21:10:41 +08:00
Ivan Grokhotkov
b9dfe01903 Fix SPIFFS.openDir("") (#2143)
* Update spiffs_api.cpp

Fixes a bug where un-prefixed files are irretrievable with openDir(""). Described: https://github.com/esp8266/Arduino/issues/1818.

* Update FS test cases
2016-06-14 07:15:55 +08:00
Ivan Grokhotkov
063e4cc88f Add tests for MD5Builder, reformat and clean up code 2016-06-13 12:47:33 +08:00
Ivan Grokhotkov
54ae922037 Fix strstr return type 2016-03-11 09:55:12 +03:00
Ivan Grokhotkov
c3b33d5bab Add missing pgmspace test file 2016-03-11 09:50:19 +03:00
Ivan Grokhotkov
d49024cfdf Implement strstr_P, add pgmspace tests (#1749) 2016-03-11 09:47:49 +03:00
Ivan Grokhotkov
1692798860 Add more FS tests
Including a test for #1685
2016-03-10 13:03:38 +03:00
Ivan Grokhotkov
031a18c836 Build sketches with arduino-builder 2016-03-03 17:21:58 +03:00
Ivan Grokhotkov
678a8ff8f1 Request gcov-4.8 on Travis 2016-03-03 15:49:32 +03:00
Ivan Grokhotkov
de2c81594d Attempt to fix gcov and codecov integration 2016-03-03 15:37:50 +03:00
Ivan Grokhotkov
9cf3d7a360 Don't override CC and CXX unless running on OS X 2016-03-03 14:01:18 +03:00
Ivan Grokhotkov
59e3aff678 Add coverage 2016-03-03 13:57:28 +03:00
Ivan Grokhotkov
6d9255ab55 Some cleanup on file system test, add reset test 2016-03-03 13:01:08 +03:00
Ivan Grokhotkov
266962f9fe Fix license headers in new files 2016-03-03 12:59:50 +03:00
Ivan Grokhotkov
93fee9df3f Add Makefile and run tests on Travis 2016-03-03 10:59:21 +03:00
Ivan Grokhotkov
624665911d A few tests for filesystem APIs 2016-03-03 09:38:26 +03:00
Ivan Grokhotkov
5724f38542 Initial batch of mocks for host side testing 2016-03-03 09:37:35 +03:00