-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
86 lines (77 loc) · 2.84 KB
/
platformio.ini
File metadata and controls
86 lines (77 loc) · 2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[platformio]
default_envs = esp32dev
[env]
monitor_speed = 115200
test_build_src = yes
# Build flags for better debugging and optimization (shared)
build_flags =
-Wall
-Wextra
-DCORE_DEBUG_LEVEL=3
[env:esp32dev]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
board = esp32dev
framework = arduino
build_src_filter = -<*> +<../src/> +<../test/compile_test_internal/compile_test.cpp>
; Run only Arduino-suitable tests on the device build
test_filter = test_parse_url, test_chunk_parse, test_keep_alive, test_cookies, test_redirects
test_ignore = test_urlparser_native
lib_deps =
ESP32Async/AsyncTCP @ ^3.4.8
bblanchon/ArduinoJson@^6.21.0
# Environment for testing compilation without networking
[env:compile_test]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
board = esp32dev
framework = arduino
build_flags =
${env.build_flags}
-DCOMPILE_TEST_ONLY
build_src_filter = -<*> +<../src/> +<../test/compile_test_internal/compile_test.cpp>
lib_deps =
ESP32Async/AsyncTCP @ ^3.4.8
[env:compile_test_gzip]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
board = esp32dev
framework = arduino
build_flags =
${env.build_flags}
-DCOMPILE_TEST_ONLY
-DASYNC_HTTP_ENABLE_GZIP_DECODE=1
build_src_filter = -<*> +<../src/> +<../test/compile_test_internal/compile_test.cpp>
lib_deps =
ESP32Async/AsyncTCP @ ^3.4.8
# Environment for testing with different AsyncTCP versions
[env:esp32dev_asynctcp_dev]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
board = esp32dev
framework = arduino
build_flags =
${env.build_flags}
-DTEST_ASYNCTCP_DEV
build_src_filter = -<*> +<../src/> +<../test/compile_test_internal/compile_test.cpp>
lib_deps =
ESP32Async/AsyncTCP @ ^3.4.8
bblanchon/ArduinoJson@^6.21.0
# Environment for testing with AsyncTCP stable version
[env:test_asynctcp_stable]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
board = esp32dev
framework = arduino
build_flags =
${env.build_flags}
-DTEST_ASYNCTCP_STABLE
build_src_filter = -<*> +<../src/> +<../test/compile_test_internal/compile_test.cpp>
lib_deps =
ESP32Async/AsyncTCP @ ^3.4.8
bblanchon/ArduinoJson@^6.21.0
[env:native]
platform = native
; Only build the standalone URL parser for host tests to avoid Arduino deps
; Do not compile Arduino-based tests in native
test_ignore = test_parse_url, test_chunk_parse, test_redirects, test_cookies, test_keep_alive
build_src_filter = -<*> +<UrlParser.cpp> +<GzipDecoder.cpp> +<third_party/miniz/miniz_tinfl.c>
build_flags =
-I test/test_urlparser_native
-I src
-DASYNC_HTTP_ENABLE_GZIP_DECODE=1