1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-29 05:21:37 +03:00

tests: minor fixes, add README.md

This commit is contained in:
Ivan Grokhotkov
2018-01-07 20:31:19 +08:00
committed by Ivan Grokhotkov
parent e7127118c6
commit 2c8b2b92ce
4 changed files with 160 additions and 5 deletions

View File

@ -10,9 +10,11 @@ UPLOAD_BAUD ?= 921600
UPLOAD_BOARD ?= nodemcu
BS_DIR ?= libraries/BSTest
DEBUG_LEVEL ?= DebugLevel=None____
FQBN ?= esp8266com:esp8266:generic:CpuFrequency=80,FlashFreq=40,FlashMode=DIO,UploadSpeed=115200,FlashSize=4M1M,ResetMethod=none,Debug=Serial,$(DEBUG_LEVEL)
BUILD_TOOL = $(ARDUINO_IDE_PATH)/arduino-builder
TEST_CONFIG = libraries/test_config/test_config.h
FQBN ?= esp8266com:esp8266:generic:CpuFrequency=80,FlashFreq=40,FlashMode=dio,UploadSpeed=115200,FlashSize=4M1M,LwIPVariant=v2mss536,ResetMethod=none,Debug=Serial,$(DEBUG_LEVEL)
BUILD_TOOL := $(ARDUINO_IDE_PATH)/arduino-builder
TEST_CONFIG := libraries/test_config/test_config.h
TEST_REPORT_XML := test_report.xml
TEST_REPORT_HTML := test_report.html
ifeq ("$(UPLOAD_PORT)","")
$(error "Failed to detect upload port, please export UPLOAD_PORT manually")
@ -57,6 +59,7 @@ ifneq ("$(NO_BUILD)","1")
$@
endif
ifneq ("$(NO_UPLOAD)","1")
@echo Uploading binary
$(SILENT)$(ESPTOOL) $(UPLOAD_VERBOSE_FLAG) \
-cp $(UPLOAD_PORT) \
-cb $(UPLOAD_BAUD) \

View File

@ -1,9 +1,12 @@
#pragma once
// Tests which use STA mode will connect to this AP:
#define STA_SSID "test_wifi"
#define STA_PASS "test_wifi_pass"
// Tests which use AP mode will set up a SoftAP with these parameters:
#define AP_SSID "test_wifi_ap"
#define AP_PASS "test_wifi_ap_pass"
// IP address of the PC running the tests (needed for HTTP client and HTTP server tests)
#define SERVER_IP "192.168.10.1"