-
Notifications
You must be signed in to change notification settings - Fork 8
/
run-build-tests.sh
executable file
·74 lines (70 loc) · 1.37 KB
/
run-build-tests.sh
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
#!/bin/sh
set -eu
build() {
pio run -t clean
pio run "$@"
}
# build with all flags off.
export PLATFORMIO_BUILD_FLAGS='
-USUNK_ENABLE
-USUNM_ENABLE
-USUNK_SNIFFER_ENABLE
-UWIPE_SETTINGS
-UDEBUG_TIMINGS
-UUHID_LED_ENABLE
-UUHID_LED_TEST
-UWAIT_PIN
-UWAIT_SERIAL
-UBUZZER_VERBOSE
-USUNK_VERBOSE
-USUNM_VERBOSE
-UUHID_VERBOSE
';
build "$@"
# build with feature flags on, but verbose flags off.
export PLATFORMIO_BUILD_FLAGS='
-DSUNK_ENABLE
-DSUNM_ENABLE
-USUNK_SNIFFER_ENABLE
-DWIPE_SETTINGS
-DDEBUG_TIMINGS
-DUHID_LED_ENABLE
-DUHID_LED_TEST
-DWAIT_PIN
-DWAIT_SERIAL
-UBUZZER_VERBOSE
-USUNK_VERBOSE
-USUNM_VERBOSE
-UUHID_VERBOSE
'; build "$@"
export PLATFORMIO_BUILD_FLAGS='
-USUNK_ENABLE
-USUNM_ENABLE
-DSUNK_SNIFFER_ENABLE
-DWIPE_SETTINGS
-DDEBUG_TIMINGS
-DUHID_LED_ENABLE
-DUHID_LED_TEST
-DWAIT_PIN
-DWAIT_SERIAL
-UBUZZER_VERBOSE
-USUNK_VERBOSE
-USUNM_VERBOSE
-UUHID_VERBOSE
'; build "$@"
# build with all flags on, where compatible.
export PLATFORMIO_BUILD_FLAGS='
-DSUNK_ENABLE
-DSUNM_ENABLE
-USUNK_SNIFFER_ENABLE
-DWIPE_SETTINGS
-DDEBUG_TIMINGS
-DUHID_LED_ENABLE
-DUHID_LED_TEST
-DWAIT_PIN
-DWAIT_SERIAL
-DBUZZER_VERBOSE
-DSUNK_VERBOSE
-DSUNM_VERBOSE
-DUHID_VERBOSE
'; build "$@"