@@ -38,9 +38,6 @@ def redirect_stdout(target):
38
38
import idf_tools
39
39
40
40
ESP32ULP = 'esp32ulp-elf'
41
- ESP32ULP_ARCHIVE = 'binutils-esp32ulp'
42
- ESP32S2ULP = 'esp32s2ulp-elf'
43
- ESP32S2ULP_ARCHIVE = 'binutils-esp32s2ulp'
44
41
OPENOCD = 'openocd-esp32'
45
42
RISCV_ELF = 'riscv32-esp-elf'
46
43
XTENSA_ESP32_ELF = 'xtensa-esp32-elf'
@@ -66,7 +63,6 @@ def get_version_dict():
66
63
version_dict = get_version_dict ()
67
64
68
65
ESP32ULP_VERSION = version_dict [ESP32ULP ]
69
- ESP32S2ULP_VERSION = version_dict [ESP32S2ULP ]
70
66
OPENOCD_VERSION = version_dict [OPENOCD ]
71
67
RISCV_ELF_VERSION = version_dict [RISCV_ELF ]
72
68
XTENSA_ESP32_ELF_VERSION = version_dict [XTENSA_ESP32_ELF ]
@@ -136,8 +132,6 @@ def test_usage_basic(self):
136
132
output = self .run_idf_tools_with_action (['list' ])
137
133
self .assertIn ('* %s:' % ESP32ULP , output )
138
134
self .assertIn ('- %s (recommended)' % ESP32ULP_VERSION , output )
139
- self .assertIn ('* %s:' % ESP32S2ULP , output )
140
- self .assertIn ('- %s (recommended)' %
10000
ESP32S2ULP_VERSION , output )
141
135
self .assertIn ('* %s:' % OPENOCD , output )
142
136
self .assertIn ('- %s (recommended)' % OPENOCD_VERSION , output )
143
137
self .assertIn ('* %s:' % RISCV_ELF , output )
@@ -149,23 +143,21 @@ def test_usage_basic(self):
149
143
self .assertIn ('* %s:' % XTENSA_ESP32S3_ELF , output )
150
144
self .assertIn ('- %s (recommended)' % XTENSA_ESP32S3_ELF_VERSION , output )
151
145
152
- required_tools_installed = 9
146
+ required_tools_installed = 8
153
147
output = self .run_idf_tools_with_action (['install' ])
154
148
self .assert_tool_installed (output , OPENOCD , OPENOCD_VERSION )
155
149
self .assert_tool_installed (output , RISCV_ELF , RISCV_ELF_VERSION )
156
150
self .assert_tool_installed (output , XTENSA_ESP32_ELF , XTENSA_ESP32_ELF_VERSION )
157
151
self .assert_tool_installed (output , XTENSA_ESP32S2_ELF , XTENSA_ESP32S2_ELF_VERSION )
158
152
self .assert_tool_installed (output , XTENSA_ESP32S3_ELF , XTENSA_ESP32S3_ELF_VERSION )
159
- self .assert_tool_installed (output , ESP32ULP , ESP32ULP_VERSION , ESP32ULP_ARCHIVE )
160
- self .assert_tool_installed (output , ESP32S2ULP , ESP32S2ULP_VERSION , ESP32S2ULP_ARCHIVE )
153
+ self .assert_tool_installed (output , ESP32ULP , ESP32ULP_VERSION )
161
154
self .assert_tool_installed (output , XTENSA_ESP_GDB , XTENSA_ESP_GDB_VERSION )
162
155
self .assert_tool_installed (output , RISCV_ESP_GDB , RISCV_ESP_GDB_VERSION )
163
156
self .assertIn ('Destination: {}' .format (os .path .join (self .temp_tools_dir , 'dist' )), output )
164
157
self .assertEqual (required_tools_installed , output .count ('Done' ))
165
158
166
159
output = self .run_idf_tools_with_action (['check' ])
167
160
self .assertIn ('version installed in tools directory: ' + ESP32ULP_VERSION , output )
168
- self .assertIn ('version installed in tools directory: ' + ESP32S2ULP_VERSION , output )
169
161
self .assertIn ('version installed in tools directory: ' + OPENOCD_VERSION , output )
170
162
self .assertIn ('version installed in tools directory: ' + RISCV_ELF_VERSION , output )
171
163
self .assertIn ('version installed in tools directory: ' + XTENSA_ESP32_ELF_VERSION , output )
@@ -175,16 +167,14 @@ def test_usage_basic(self):
175
167
self .assertIn ('version installed in tools directory: ' + RISCV_ESP_GDB_VERSION , output )
176
168
177
169
output = self .run_idf_tools_with_action (['export' ])
178
- self .assertIn ('%s/tools/esp32ulp-elf/%s/esp32ulp-elf-binutils /bin' %
170
+ self .assertIn ('%s/tools/esp32ulp-elf/%s/esp32ulp-elf/bin' %
179
171
(self .temp_tools_dir , ESP32ULP_VERSION ), output )
180
172
self .assertIn ('%s/tools/xtensa-esp32-elf/%s/xtensa-esp32-elf/bin' %
181
173
(self .temp_tools_dir , XTENSA_ESP32_ELF_VERSION ), output )
182
174
self .assertIn ('%s/tools/openocd-esp32/%s/openocd-esp32/bin' %
183
175
(self .temp_tools_dir , OPENOCD_VERSION ), output )
184
176
self .assertIn ('%s/tools/riscv32-esp-elf/%s/riscv32-esp-elf/bin' %
185
177
(self .temp_tools_dir , RISCV_ELF_VERSION ), output )
186
- self .assertIn ('%s/tools/esp32s2ulp-elf/%s/esp32s2ulp-elf-binutils/bin' %
187
- (self .temp_tools_dir , ESP32S2ULP_VERSION ), output )
188
178
self .assertIn ('%s/tools/xtensa-esp32s2-elf/%s/xtensa-esp32s2-elf/bin' %
189
179
(self .temp_tools_dir , XTENSA_ESP32S2_ELF_VERSION ), output )
190
180
self .assertIn ('%s/tools/xtensa-esp32s3-elf/%s/xtensa-esp32s3-elf/bin' %
@@ -199,12 +189,11 @@ def test_tools_for_esp32(self):
199
189
output = self .run_idf_tools_with_action (['install' , '--targets=esp32' ])
200
190
self .assert_tool_installed (output , XTENSA_ESP32_ELF , XTENSA_ESP32_ELF_VERSION )
201
191
self .assert_tool_installed (output , OPENOCD , OPENOCD_VERSION )
202
- self .assert_tool_installed (output , ESP32ULP , ESP32ULP_VERSION , ESP32ULP_ARCHIVE )
192
+ self .assert_tool_installed (output , ESP32ULP , ESP32ULP_VERSION )
203
193
self .assert_tool_installed (output , XTENSA_ESP_GDB , XTENSA_ESP_GDB_VERSION )
204
194
self .assert_tool_not_installed (output , RISCV_ELF , RISCV_ELF_VERSION )
205
195
self .assert_tool_not_installed (output , XTENSA_ESP32S2_ELF , XTENSA_ESP32S2_ELF_VERSION )
206
196
self .assert_tool_not_installed (output , XTENSA_ESP32S3_ELF , XTENSA_ESP32S3_ELF_VERSION )
207
- self .assert_tool_not_installed (output , ESP32S2ULP , ESP32S2ULP_VERSION , ESP32S2ULP_ARCHIVE )
208
197
self .assert_tool_not_installed (output , RISCV_ESP_GDB , RISCV_ESP_GDB_VERSION )
209
198
self .assertIn ('Destination: {}' .format (os .path .join (self .temp_tools_dir , 'dist' )), output )
210
199
self .assertEqual (required_tools_installed , output .count ('Done' ))
@@ -216,7 +205,7 @@ def test_tools_for_esp32(self):
216
205
self .assertIn ('version installed in tools directory: ' + XTENSA_ESP_GDB_VERSION , output )
217
206
218
207
output = self .run_idf_tools_with_action (['export' ])
219
- self .assertIn ('%s/tools/esp32ulp-elf/%s/esp32ulp-elf-binutils /bin' %
208
+ self .assertIn ('%s/tools/esp32ulp-elf/%s/esp32ulp-elf/bin' %
220
209
(self .temp_tools_dir , ESP32ULP_VERSION ), output )
221
210
self .assertIn ('%s/tools/xtensa-esp32-elf/%s/xtensa-esp32-elf/bin' %
222
211
(self .temp_tools_dir , XTENSA_ESP32_ELF_VERSION ), output )
@@ -226,8 +215,6 @@ def test_tools_for_esp32(self):
226
215
(self .temp_tools_dir , XTENSA_ESP_GDB_VERSION ), output )
227
216
self .assertNotIn ('%s/tools/riscv32-esp-elf/%s/riscv32-esp-elf/bin' %
228
217
(self .temp_tools_dir , RISCV_ELF_VERSION ), output )
229
- self .assertNotIn ('%s/tools/esp32s2ulp-elf/%s/esp32s2ulp-elf-binutils/bin' %
230
- (self .temp_tools_dir , ESP32S2ULP_VERSION ), output )
231
218
self .assertNotIn ('%s/tools/xtensa-esp32s2-elf/%s/xtensa-esp32s2-elf/bin' %
232
219
(self .temp_tools_dir , XTENSA_ESP32S2_ELF_VERSION ), output )
233
220
self .assertNotIn ('%s/tools/xtensa-esp32s3-elf/%s/xtensa-esp32s3-elf/bin' %
@@ -244,8 +231,7 @@ def test_tools_for_esp32c3(self):
244
231
self .assert_tool_not_installed (output , XTENSA_ESP32_ELF , XTENSA_ESP32_ELF_VERSION )
245
232
self .assert_tool_not_installed (output , XTENSA_ESP32S2_ELF , XTENSA_ESP32S2_ELF_VERSION )
246
233
self .assert_tool_not_installed (output , XTENSA_ESP32S3_ELF , XTENSA_ESP32S3_ELF_VERSION )
247
- self .assert_tool_not_installed (output , ESP32ULP , ESP32ULP_VERSION , ESP32ULP_ARCHIVE )
248
- self .assert_tool_not_installed (output , ESP32S2ULP , ESP32S2ULP_VERSION , ESP32S2ULP_ARCHIVE )
234
+ self .assert_tool_not_installed (output , ESP32ULP , ESP32ULP_VERSION )
249
235
self .assert_tool_not_installed (output , XTENSA_ESP_GDB_VERSION , XTENSA_ESP_GDB_VERSION )
250
236
self .assertIn ('Destination: {}' .format (os .path .join (self .temp_tools_dir , 'dist')), output )
251
237
self .assertEqual (required_tools_installed , output .count ('Done' ))
@@ -260,12 +246,10 @@ def test_tools_for_esp32c3(self):
260
246
(self .temp_tools_dir , OPENOCD_VERSION ), output )
261
247
self .assertIn ('%s/tools/riscv32-esp-elf/%s/riscv32-esp-elf/bin' %
262
248
(self .temp_tools_dir , RISCV_ELF_VERSION ), output )
263
- self .assertNotIn ('%s/tools/esp32ulp-elf/%s/esp32ulp-elf-binutils /bin' %
249
+ self .assertNotIn ('%s/tools/esp32ulp-elf/%s/esp32ulp-elf/bin' %
264
250
(self .temp_tools_dir , ESP32ULP_VERSION ), output )
265
251
self .assertNotIn ('%s/tools/xtensa-esp32-elf/%s/xtensa-esp32-elf/bin' %
266
252
(self .temp_tools_dir , XTENSA_ESP32_ELF_VERSION ), output )
267
- self .assertNotIn ('%s/tools/esp32s2ulp-elf/%s/esp32s2ulp-elf-binutils/bin' %
268
- (self .temp_tools_dir , ESP32S2ULP_VERSION ), output )
269
253
self .assertNotIn ('%s/tools/xtensa-esp32s2-elf/%s/xtensa-esp32s2-elf/bin' %
270
254
(self .temp_tools_dir , XTENSA_ESP32S2_ELF_VERSION ), output )
271
255
self .assertNotIn ('%s/tools/xtensa-esp32s3-elf/%s/xtensa-esp32s3-elf/bin' %
@@ -279,30 +263,26 @@ def test_tools_for_esp32s2(self):
279
263
self .assert_tool_installed (output , XTENSA_ESP32S2_ELF , XTENSA_ESP32S2_ELF_VERSION )
280
264
self .assert_tool_installed (output , OPENOCD , OPENOCD_VERSION )
281
265
self .assert_tool_installed (output , RISCV_ELF , RISCV_ELF_VERSION )
266
+ self .assert_tool_installed (output , ESP32ULP , ESP32ULP_VERSION )
282
267
self .assert_tool_installed (output , XTENSA_ESP_GDB , XTENSA_ESP_GDB_VERSION )
283
268
self .assert_tool_not_installed (output , RISCV_ESP_GDB , RISCV_ESP_GDB_VERSION )
284
269
self .assert_tool_not_installed (output , XTENSA_ESP32_ELF , XTENSA_ESP32_ELF_VERSION )
285
270
self .assert_tool_not_installed (output , XTENSA_ESP32S3_ELF , XTENSA_ESP32S3_ELF_VERSION )
286
- self .assert_tool_not_installed (output , ESP32ULP , ESP32ULP_VERSION , ESP32ULP_ARCHIVE )
287
- self .assert_tool_installed (output , ESP32S2ULP , ESP32S2ULP_VERSION , ESP32S2ULP_ARCHIVE )
288
271
self .assertIn ('Destination: {}' .format (os .path .join (self .temp_tools_dir , 'dist' )), output )
289
272
self .assertEqual (required_tools_installed , output .count ('Done' ))
290
273
291
274
output = self .run_idf_tools_with_action (['check' ])
292
- self .assertIn ('version installed in tools directory: ' + ESP32S2ULP_VERSION , output )
293
275
self .assertIn ('version installed in tools directory: ' + OPENOCD_VERSION , output )
294
276
self .assertIn ('version installed in tools directory: ' + XTENSA_ESP32S2_ELF_VERSION , output )
295
277
self .assertIn ('version installed in tools directory: ' + XTENSA_ESP_GDB_VERSION , output )
296
278
297
279
output = self .run_idf_tools_with_action (['export' ])
298
- self .assertIn ('%s/tools/esp32s2ulp-elf/%s/esp32s2ulp-elf-binutils/bin' %
299
- (self .temp_tools_dir , ESP32S2ULP_VERSION ), output )
300
280
self .assertIn ('%s/tools/xtensa-esp32s2-elf/%s/xtensa-esp32s2-elf/bin' %
301
281
(self .temp_tools_dir , XTENSA_ESP32S2_ELF_VERSION ), output )
302
282
self .assertIn ('%s/tools/openocd-esp32/%s/openocd-esp32/bin' %
303
283
(self .temp_tools_dir , OPENOCD_VERSION ), output )
304
- self .assertNotIn ('%s/tools/esp32ulp-elf/%s/esp32ulp-elf-binutils /bin' %
305
- (self .temp_tools_dir , ESP32ULP_VERSION ), output)
284
+ self .assertIn ('%s/tools/esp32ulp-elf/%s/esp32ulp-elf/bin' %
285
+ (self .temp_tools_dir , ESP32ULP_VERSION ), output )
306
286
self .assertNotIn ('%s/tools/xtensa-esp32-elf/%s/xtensa-esp32-elf/bin' %
307
287
(self .temp_tools_dir , XTENSA_ESP32_ELF_VERSION ), output )
308
288
self .assertIn ('%s/tools/riscv32-esp-elf/%s/riscv32-esp-elf/bin' %
@@ -320,12 +300,11 @@ def test_tools_for_esp32s3(self):
320
300
self .assert_tool_installed (output , XTENSA_ESP32S3_ELF , XTENSA_ESP32S3_ELF_VERSION )
321
301
self .assert_tool_installed (output , OPENOCD , OPENOCD_VERSION )
322
302
self .assert_tool_installed (output , RISCV_ELF , RISCV_ELF_VERSION )
303
+ self .assert_tool_installed (output , ESP32ULP , ESP32ULP_VERSION )
323
304
self .assert_tool_installed (output , XTENSA_ESP_GDB , XTENSA_ESP_GDB_VERSION )
324
305
self .assert_tool_not_installed (output , RISCV_ESP_GDB , RISCV_ESP_GDB_VERSION )
325
306
self .assert_tool_not_installed (output , XTENSA_ESP32_ELF , XTENSA_ESP32_ELF_VERSION )
326
307
self .assert_tool_not_installed (output , XTENSA_ESP32S2_ELF , XTENSA_ESP32S2_ELF_VERSION )
327
- self .assert_tool_not_installed (output , ESP32ULP , ESP32ULP_VERSION , ESP32ULP_ARCHIVE )
328
- self .assert_tool_installed (output , ESP32S2ULP , ESP32S2ULP_VERSION , ESP32S2ULP_ARCHIVE )
329
308
self .assertIn ('Destination: {}' .format (os .path .join (self .temp_tools_dir , 'dist' )), output )
330
309
self .assertEqual (required_tools_installed , output .count ('Done' ))
331
310
@@ -340,14 +319,12 @@ def test_tools_for_esp32s3(self):
340
319
(self .temp_tools_dir , OPENOCD_VERSION ), output )
341
320
self .assertIn ('%s/tools/xtensa-esp32s3-elf/%s/xtensa-esp32s3-elf/bin' %
342
321
(self .temp_tools_dir , XTENSA_ESP32S3_ELF_VERSION ), output )
343
- self .assertNotIn ('%s/tools/esp32ulp-elf/%s/esp32ulp-elf-binutils /bin' %
344
- (self .temp_tools_dir , ESP32ULP_VERSION ), output )
322
+ self .assertIn ('%s/tools/esp32ulp-elf/%s/esp32ulp-elf/bin' %
323
+ (self .temp_tools_dir , ESP32ULP_VERSION ), output )
345
324
self .assertNotIn ('%s/tools/xtensa-esp32-elf/%s/xtensa-esp32-elf/bin' %
346
325
(self .temp_tools_dir , XTENSA_ESP32_ELF_VERSION ), output )
347
326
self .assertIn ('%s/tools/riscv32-esp-elf/%s/riscv32-esp-elf/bin' %
348
327
(self .temp_tools_dir , RISCV_ELF_VERSION ), output )
349
- self .assertIn ('%s/tools/esp32s2ulp-elf/%s/esp32s2ulp-elf-binutils/bin' %
350
- (self .temp_tools_dir , ESP32S2ULP_VERSION ), output )
351
328
self .assertNotIn ('%s/tools/xtensa-esp32s2-elf/%s/xtensa-esp32s2-elf/bin' %
352
329
(self .temp_tools_dir , XTENSA_ESP32S2_ELF_VERSION ), output )
353
330
self .assertIn ('%s/tools/xtensa-esp-elf-gdb/%s/xtensa-esp-elf-gdb/bin' %
0 commit comments