Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 2841220

Browse files
author
Daniel Campora
committed
esp32: Mergeing pending changes of run-tests script
1 parent fcbbfe3 commit 2841220

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

tests/run-tests

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def run_tests(pyb, tests, args):
247247
skip_tests.add('misc/rge_sm.py') # requires floating point
248248
skip_tests.update({'extmod/uctypes_%s.py' % t for t in 'bytearray le native_le ptr_le ptr_native_le sizeof sizeof_native array_assign_le array_assign_native_le'.split()}) # requires uctypes
249249
skip_tests.add('extmod/zlibd_decompress.py') # requires zlib
250-
elif args.target == 'esp32-WIPY' or args.target == 'esp32-LOPY':
250+
elif args.target.split('-')[0] == 'esp32':
251251
skip_tests.add('extmod/uheapq1.py') # requires uheapq
252252
skip_tests.add('extmod/urandom_basic.py') # requires urandom
253253
skip_tests.add('extmod/urandom_extra.py') # requires urandom
@@ -259,6 +259,12 @@ def run_tests(pyb, tests, args):
259259
skip_tests.add('thread/stress_aes.py') # requires too much heap and stack
260260
skip_tests.add('thread/thread_exc2.py') # needs an updated run-test script
261261
skip_tests.add('misc/recursive_iternext.py') # requires at least 80KB of GC heap
262+
skip_tests.add('esp32/_pin.py')
263+
skip_tests.add('esp32/i2c.py')
264+
skip_tests.add('esp32/onewire.py')
265+
skip_tests.add('esp32/uart.py')
266+
skip_tests.add('esp32/spi.py')
267+
skip_tests.add('esp32/lorawan_otaa.py')
262268
elif args.target == 'esp8266':
263269
skip_tests.add('float/float2int.py') # requires at least fp32, there's float2int_fp30.py instead
264270
skip_tests.add('float/string_format.py') # requires at least fp32, there's string_format_fp30.py instead
@@ -388,8 +394,8 @@ def main():
388394
cmd_parser.add_argument('files', nargs='*', help='input test files')
389395
args = cmd_parser.parse_args()
390396

391-
EXTERNAL_TARGETS = ('pyboard', 'wipy1','esp32-WIPY', 'esp8266', 'esp32-LOPY')
392-
if args.target in EXTERNAL_TARGETS:
397+
EXTERNAL_TARGETS = ('pyboard', 'wipy1','esp32', 'esp8266')
398+
if args.target.split('-')[0] in EXTERNAL_TARGETS:
393399
import pyboard
394400
pyb = pyboard.Pyboard(args.device, args.baudrate, args.user, args.password)
395401
pyb.enter_raw_repl()
@@ -408,11 +414,8 @@ def main():
408414
elif args.target == 'wipy1':
409415
# run WiPy tests
410416
test_dirs = ('basics', 'micropython', 'misc', 'extmod', 'wipy')
411-
elif args.target == 'esp32-WIPY':
412-
# run on the WiPy 2.0
413-
test_dirs = ('basics', 'micropython', 'esp32', 'float', 'misc', 'extmod', 'thread')
414-
elif args.target == 'esp32-LOPY':
415-
# run on the LoPy
417+
elif args.target.split('-')[0] == 'esp32':
418+
# run on the esp32
416419
test_dirs = ('basics', 'micropython', 'esp32', 'float', 'misc', 'extmod', 'thread')
417420
else:
418421
# run PC tests

0 commit comments

Comments
 (0)