Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ NON_INIT_PY := $(filter-out %__init__.py,$(PY_FILES))
MPY_TARGETS = $(patsubst $(SRC_DIR)/%.py,$(BUILD_DIR)/%.mpy,$(NON_INIT_PY))
INIT_TARGETS = $(patsubst $(SRC_DIR)/%.py,$(BUILD_DIR)/%.py,$(filter %__init__.py,$(PY_FILES)))

# Performance testing properties
DEVICE_IP := # e.g. 192.168.1.100
DEVICE_NAME := # e.g. ESP32-C3, will be used for report generation
PT_DIR := tests/system

.PHONY: all
all: clean toolchain static-checkers unit-test build test-unix deploy deploy-config tls-cert deploy-cert deploy-example

Expand Down Expand Up @@ -282,6 +287,28 @@ test-device: stage-test #clean-device upload
done
@mpremote $(DEVICE) reset

# ================================================
# Performance testing
# ================================================

# -----------------------------
# Run HTTP dimensioning tests
# -----------------------------
.PHONY: perf-test-http-dimensioning
perf-test-http-dimensioning:
@mpremote $(DEVICE) soft-reset
mpremote $(DEVICE) cp $(PT_DIR)/http_dimensioning/app_base.py :app_base.py
mpremote $(DEVICE) cp $(PT_DIR)/http_dimensioning/app_multipart.py :app_multipart.py
mpremote $(DEVICE) cp $(PT_DIR)/http_dimensioning/boot.py :boot.py
@mpremote $(DEVICE) reset
$(PT_DIR)/http_dimensioning/test.py "$(DEVICE)" "$(DEVICE_IP)" "$(DEVICE_NAME)"

# -----------------------------
# Run all performance tests
# -----------------------------
.PHONY: perf-test-device
perf-test-device: perf-test-http-dimensioning

# ================================================
# Utilities for TLS
# ================================================
Expand Down
Binary file modified docs/dimensioning/esp32_c3/base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dimensioning/esp32_c3/files_api_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dimensioning/esp32_c3/files_api_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dimensioning/esp32_c3/files_api_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dimensioning/esp32_c3/high_mem_cap_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dimensioning/esp32_c3/high_mem_cap_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dimensioning/esp32_c3/high_mem_cap_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dimensioning/esp32_c3/low_mem_cap_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dimensioning/esp32_c3/low_mem_cap_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dimensioning/esp32_c3/low_mem_cap_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading