forked from esp-rs/esp-wifi-sys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
smoketest.bat
104 lines (97 loc) · 4.49 KB
/
smoketest.bat
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
REM A simple script to help in smoke-testing.
REM Not really useful to users.
@echo off
echo Make sure to have the env-vars SSID, PASSWORD, STATIC_IP and GATEWAY_IP set.
echo Use CTRL-C to exit an example and start the next one.
cd examples-esp32c3
set CARGO_PROFILE_RELEASE_OPT_LEVEL=3
set CARGO_PROFILE_RELEASE_LTO=off
echo.
echo Connect ESP32-C3
pause
cargo run --example ble --release --features "ble"
cargo run --example async_ble --release --features "async,ble"
cargo run --example dhcp --release --features "wifi"
cargo run --example static_ip --release --features "wifi"
cargo run --example embassy_dhcp --release --features "async,wifi,embassy-net"
cargo run --example coex --release --features "wifi,ble,coex"
cargo run --example esp_now --release --features "esp-now"
cargo run --example embassy_esp_now --release --features "async,esp-now"
cargo run --example access_point --release --features "wifi"
cargo run --example embassy_access_point --release --features "async,wifi,embassy-net"
cd ..\examples-esp32
set CARGO_PROFILE_RELEASE_OPT_LEVEL=3
set CARGO_PROFILE_RELEASE_LTO=off
echo.
echo Connect ESP32
pause
cargo run --example ble --release --features "ble"
cargo run --example async_ble --release --features "async,ble"
cargo run --example dhcp --release --features "wifi"
cargo run --example static_ip --release --features "wifi"
cargo run --example embassy_dhcp --release --features "async,wifi,embassy-net"
cargo run --example esp_now --release --features "esp-now"
cargo run --example embassy_esp_now --release --features "async,esp-now"
cargo run --example access_point --release --features "wifi"
cargo run --example embassy_access_point --release --features "async,wifi,embassy-net"
cd ..\examples-esp32s3
set CARGO_PROFILE_RELEASE_OPT_LEVEL=3
set CARGO_PROFILE_RELEASE_LTO=off
echo.
echo Connect ESP32-S3
pause
cargo run --example ble --release --features "ble"
cargo run --example async_ble --release --features "async,ble"
cargo run --example dhcp --release --features "wifi"
cargo run --example static_ip --release --features "wifi"
cargo run --example embassy_dhcp --release --features "async,wifi,embassy-net"
cargo run --example coex --release --features "wifi,ble,coex"
set CARGO_PROFILE_RELEASE_OPT_LEVEL=1
cargo run --example esp_now --release --features "esp-now"
cargo run --example embassy_esp_now --release --features "async,esp-now"
set CARGO_PROFILE_RELEASE_OPT_LEVEL=3
cargo run --example access_point --release --features "wifi"
cargo run --example embassy_access_point --release --features "async,wifi,embassy-net"
cd ..\examples-esp32s2
set CARGO_PROFILE_RELEASE_OPT_LEVEL=2
set CARGO_PROFILE_RELEASE_LTO=off
echo.
echo Connect ESP32-S2
pause
cargo run --example dhcp --release --features "wifi"
cargo run --example static_ip --release --features "wifi"
cargo run --example embassy_dhcp --release --features "async,wifi,embassy-net"
cargo run --example esp_now --release --features "esp-now"
cargo run --example embassy_esp_now --release --features "async,esp-now"
cargo run --example access_point --release --features "wifi"
cargo run --example embassy_access_point --release --features "async,wifi,embassy-net"
cd ..\examples-esp32c2
set CARGO_PROFILE_RELEASE_OPT_LEVEL=3
set CARGO_PROFILE_RELEASE_LTO=false
echo.
echo Connect ESP32-C2
pause
cargo run --example ble --release --features "ble"
cargo run --example async_ble --release --features "async,ble"
cargo run --example dhcp --release --features "wifi"
cargo run --example static_ip --release --features "wifi"
cargo run --example embassy_dhcp --release --features "async,wifi,embassy-net"
cargo run --example esp_now --release --features "esp-now"
cargo run --example embassy_esp_now --release --features "async,esp-now"
cargo run --example access_point --release --features "wifi"
cargo run --example embassy_access_point --release --features "async,wifi,embassy-net"
cd ..\examples-esp32c6
set CARGO_PROFILE_RELEASE_OPT_LEVEL=3
set CARGO_PROFILE_RELEASE_LTO=off
echo.
echo Connect ESP32-C6
pause
cargo run --example ble --release --features "ble"
cargo run --example async_ble --release --features "async,ble"
cargo run --example dhcp --release --features "wifi"
cargo run --example static_ip --release --features "wifi"
cargo run --example embassy_dhcp --release --features "async,wifi,embassy-net"
cargo run --example esp_now --release --features "esp-now"
cargo run --example embassy_esp_now --release --features "async,esp-now"
cargo run --example access_point --release --features "wifi"
cargo run --example embassy_access_point --release --features "async,wifi,embassy-net"