mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-01 03:47:23 +03:00
Stream::send() (#6979)
This commit is contained in:
@ -64,7 +64,7 @@ $(TEST_LIST):
|
||||
$(SILENT)mkdir -p $(LOCAL_BUILD_DIR)
|
||||
ifeq ("$(MOCK)", "1")
|
||||
@echo Compiling $(notdir $@)
|
||||
(cd ../host; make ULIBDIRS=../device/libraries/BSTest ../device/$(@:%.ino=%))
|
||||
(cd ../host; make D=$(V) ULIBDIRS=../device/libraries/BSTest ../device/$(@:%.ino=%))
|
||||
$(SILENT)source $(BS_DIR)/virtualenv/bin/activate && \
|
||||
$(PYTHON) $(BS_DIR)/runner.py \
|
||||
$(RUNNER_DEBUG_FLAG) \
|
||||
|
25
tests/device/test_sw_StreamString/test_sw_StreamString.ino
Normal file
25
tests/device/test_sw_StreamString/test_sw_StreamString.ino
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <BSTest.h>
|
||||
|
||||
#define check(what, res1, res2) CHECK(strcmp(res1, res2) == 0)
|
||||
|
||||
#include "../../../libraries/esp8266/examples/StreamString/StreamString.ino"
|
||||
|
||||
BS_ENV_DECLARE();
|
||||
|
||||
bool pretest ()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void setup ()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
BS_RUN(Serial);
|
||||
}
|
||||
|
||||
TEST_CASE("StreamString tests", "[StreamString]")
|
||||
{
|
||||
testStream();
|
||||
}
|
@ -11,6 +11,7 @@ def setup_echo_server(e):
|
||||
global stop_client_thread
|
||||
global client_thread
|
||||
def echo_client_thread():
|
||||
time.sleep(1) # let some time for mDNS to start
|
||||
server_address = socket.gethostbyname('esp8266-wfs-test.local')
|
||||
count = 0
|
||||
while count < 5 and not stop_client_thread:
|
||||
|
Reference in New Issue
Block a user