|
@@ -111,27 +111,28 @@ if ((REBUILD)); then
|
111
|
111
|
fi
|
112
|
112
|
|
113
|
113
|
case $TESTENV in
|
114
|
|
- tree) pio run -d . -e include_tree ; exit 1 ;;
|
115
|
|
- due) TESTENV='DUE' ;;
|
116
|
|
- esp) TESTENV='esp32' ;;
|
117
|
|
- lin*) TESTENV='linux_native' ;;
|
118
|
|
-lpc?(8)) TESTENV='LPC1768' ;;
|
119
|
|
- lpc9) TESTENV='LPC1769' ;;
|
120
|
|
- m128) TESTENV='mega1280' ;;
|
121
|
|
- m256) TESTENV='mega2560' ;;
|
122
|
|
- mega) TESTENV='mega2560' ;;
|
123
|
|
- stm) TESTENV='STM32F103RE' ;;
|
124
|
|
- f1) TESTENV='STM32F103RE' ;;
|
125
|
|
- f4) TESTENV='STM32F4' ;;
|
126
|
|
- f7) TESTENV='STM32F7' ;;
|
127
|
|
- s6) TESTENV='FYSETC_S6' ;;
|
128
|
|
- teensy) TESTENV='teensy31' ;;
|
129
|
|
- t31) TESTENV='teensy31' ;;
|
130
|
|
- t32) TESTENV='teensy31' ;;
|
131
|
|
- t35) TESTENV='teensy35' ;;
|
132
|
|
- t36) TESTENV='teensy35' ;;
|
133
|
|
- t40) TESTENV='teensy41' ;;
|
134
|
|
- t41) TESTENV='teensy41' ;;
|
|
114
|
+ tree) pio run -d . -e include_tree ; exit 1 ;;
|
|
115
|
+ due) TESTENV='DUE' ;;
|
|
116
|
+ esp) TESTENV='esp32' ;;
|
|
117
|
+ lin*) TESTENV='linux_native' ;;
|
|
118
|
+lp8|lpc8) TESTENV='LPC1768' ;;
|
|
119
|
+lp9|lpc9) TESTENV='LPC1769' ;;
|
|
120
|
+ m128) TESTENV='mega1280' ;;
|
|
121
|
+ m256) TESTENV='mega2560' ;;
|
|
122
|
+ mega) TESTENV='mega2560' ;;
|
|
123
|
+ stm) TESTENV='STM32F103RE' ;;
|
|
124
|
+ f1) TESTENV='STM32F103RE' ;;
|
|
125
|
+ f4) TESTENV='STM32F4' ;;
|
|
126
|
+ f7) TESTENV='STM32F7' ;;
|
|
127
|
+ s6) TESTENV='FYSETC_S6' ;;
|
|
128
|
+ teensy) TESTENV='teensy31' ;;
|
|
129
|
+ t31) TESTENV='teensy31' ;;
|
|
130
|
+ t32) TESTENV='teensy31' ;;
|
|
131
|
+ t35) TESTENV='teensy35' ;;
|
|
132
|
+ t36) TESTENV='teensy35' ;;
|
|
133
|
+ t40) TESTENV='teensy41' ;;
|
|
134
|
+ t41) TESTENV='teensy41' ;;
|
|
135
|
+[1-9][1-9]|[1-9]) TESTNUM=$TESTENV ; TESTENV=- ;;
|
135
|
136
|
esac
|
136
|
137
|
|
137
|
138
|
if ((AUTO_BUILD)); then
|
|
@@ -217,8 +218,14 @@ if [[ $TESTENV == '-' ]]; then
|
217
|
218
|
echo
|
218
|
219
|
for (( ; ; ))
|
219
|
220
|
do
|
220
|
|
- read -p "Select a test to apply (1-$IND) : " NAMEIND
|
221
|
|
- [[ -z "$NAMEIND" ]] && { errout "(canceled)" ; exit 1 ; }
|
|
221
|
+ if [[ $TESTNUM -gt 0 ]]; then
|
|
222
|
+ NAMEIND=$TESTNUM
|
|
223
|
+ else
|
|
224
|
+ read -p "Select a test to apply (1-$IND) : " NAMEIND
|
|
225
|
+ fi
|
|
226
|
+ [[ -z $NAMEIND ]] && { errout "(canceled)" ; exit 1 ; }
|
|
227
|
+ TESTENV=${NAMES[$NAMEIND-1]}
|
|
228
|
+ [[ $TESTNUM -gt 0 ]] && { echo "Preselected test $TESTNUM ... ($TESTENV)" ; TESTNUM='' ; }
|
222
|
229
|
[[ $NAMEIND =~ $ISNUM ]] && ((NAMEIND >= 1 && NAMEIND <= IND)) && { TESTENV=${NAMES[$NAMEIND-1]} ; echo ; break ; }
|
223
|
230
|
errout "Invalid selection."
|
224
|
231
|
done
|