1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

47 Commits

Author SHA1 Message Date
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
5e3df08273 Add tests for sqrt, fmod (#612) and floating point printf/scanf (#1179) 2016-06-23 17:44:33 +08:00
Ivan Grokhotkov
d7d98d03ca Use libc from newlib (#1752)
* Use newlib libc library

This change adds libcmin.a, which is created from newlib libc by selectively removing some of the object files (mostly related to heap management).
The list of files is available in tools/sdk/lib/make_libcmin.sh. Files which are not needed are commented out.
This change adds support for various functions which were missing, like sscanf, strftime, etc.

* Fix some of the time functions

* Redirect stdout to serial

* Implement __putc_r

* Switch to custom newlib build

Built from https://github.com/igrr/newlib-xtensa using:
./configure --with-newlib --enable-multilib --disable-newlib-io-c99-formats --enable-newlib-supplied-syscalls --enable-target-optspace --program-transform-name="s&^&xtensa-lx106-elf-&" --disable-option-checking --with-target-subdir=xtensa-lx106-elf --target=xtensa-lx106-elf --enable-newlib-nano-formatted-io --enable-newlib-reent-small  --prefix=path-to-arduino-core/tools/sdk/libc
CROSS_CFLAGS="-DMALLOC_PROVIDED -DSIGNAL_PROVIDED -DABORT_PROVIDED" make
make install

* Update tests
2016-06-23 17:27:57 +08:00
Ivan Grokhotkov
e64e32b329 Fix regression in WiFiClientSecure, update HTTPS test case (#2150) 2016-06-15 11:49:51 +08:00
Ivan Grokhotkov
da17d5425a Fix regression in WiFi.onEvent, add testcase (thanks @everslick) 2016-06-14 13:09:46 +08:00
Ivan Grokhotkov
a14ac2cbdd Bring back old semantics to random and randomSeed, add secureRandom (#1710) (#2142) 2016-06-14 07:17:54 +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
5eb6a7f449 Add mechanism for posting functions to the main loop (#2082)
* Add mechanism for posting functions to the main loop (#1064)

* Fix indentation, add note that API is not stable
2016-06-08 11:22:48 +08:00
Ivan Grokhotkov
dd81336b79 ESP8266HTTPClient: fix duplicate Content-Length headers (#1902) 2016-06-03 16:11:44 +08:00
Ivan Grokhotkov
15aed3b06e Add missing python script for HTTP client test 2016-05-11 14:56:46 +08:00
Ivan Grokhotkov
082a4865fc Tests update 2016-05-10 21:52:26 +08:00
Ivan Grokhotkov
102872a296 More HTTPClient tests 2016-04-26 16:04:19 +08:00
Ivan Grokhotkov
e9f3a3de1f Fix passing of debug level to the builder 2016-04-26 16:04:19 +08:00
Ivan Grokhotkov
ab7af89002 Device side test library and test runner 2016-04-26 16:04:19 +08:00
Ivan Grokhotkov
51880310be Clean build directory after each sketch 2016-03-28 00:28:05 +03:00
Ivan Grokhotkov
730764075e Declare __get_adc_mode and __get_rf_mode with C++ linkage
Workaround for #1759. Using extern "C" qualifiers in sketch breaks compilation in Arduino IDE 1.6.8.
2016-03-13 22:35:18 +03:00
Ivan Grokhotkov
d06549e86e Use folds to improve readability of Travis logs 2016-03-13 01:56:21 +03:00
Ivan Grokhotkov
324c41fd7f CI: print elf segment size info for example sketches 2016-03-13 01:44:33 +03: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
661fbca6dc Don't let test runner script bail out before printing logs 2016-03-10 12:43:54 +03:00
Ivan Grokhotkov
ec99268824 Travis: print verbose build log only if build errors 2016-03-03 17:52:46 +03:00
Ivan Grokhotkov
53ba831c90 Skip files which aren't main sketch files 2016-03-03 17:42:27 +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
Ivan Grokhotkov
103b5811be Fix error when umm_malloc.h is included from sketch (#1652) 2016-02-19 14:17:09 +03:00
Ivan Grokhotkov
af18612a4c Turn of '--verbose' option in Travis builds to place log size within limits 2016-01-26 22:58:00 +03:00
Ivan Grokhotkov
f7bbea407e Fix failure when trying to open empty file (#1126) 2015-12-05 16:29:37 +03:00
Ivan Grokhotkov
d0a944e417 Refactoring of FS::info (#779) 2015-11-13 13:23:16 +03:00
Ivan Grokhotkov
4cf72e7ef4 Add libc time functions
Merging https://github.com/igrr/axtls-8266/pull/1 by @Juppit into the core
2015-11-08 23:44:25 +03:00
Ivan Grokhotkov
041f971a8b Add FS::format (#702) 2015-08-31 10:26:04 +03:00
Ivan Grokhotkov
700cb3a527 Travis-CI: Install libraries into sketchbook/libraries directory 2015-08-10 17:03:35 +03:00
Ivan Grokhotkov
e5f9bec4ed Install necessary libraries during travis build 2015-08-10 16:47:17 +03:00
Ivan Grokhotkov
47a24ef23a FileSystem: update test case 2015-07-30 13:58:00 +03:00
Ivan Grokhotkov
bbd8c9b411 FS wrapper 2015-07-28 15:23:11 +03:00
Ivan Grokhotkov
496da02f14 Verify sketches as part of travis build
Squashed commits:
[7d1b42f] Encrypt token, skip some tests
[17b8f39] Fix sha1 example path
[f3050b1] Fix build, add webhook
[fd2c9bd] Fix build errors, update mDNS library readme
[7b87031] Make common.sh more flexible
[3ba3eb2] Test all sketches
[87beb8a] Build all sketches in esp8266 core
[f2464f1] Fix paths
[823a9ae] Remove sudo usage
[7fce734] Fix arduino commands
[619bc7d] Move all commands into travis script
[15a5ada] First attempt test runner
2015-07-23 16:06:07 +03:00