summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAyke van Laethem <aykevanlaethem@gmail.com>2018-07-20 00:50:00 +0200
committerAyke van Laethem <aykevanlaethem@gmail.com>2018-07-20 00:50:57 +0200
commit1b88433f2dbe9ea7d0810923ab0bdc193c4bd5ed (patch)
tree2d3ad4302e70760b77602f41ddb5a7c05b1a0a93
parent7c98c6b0536b70960870ff2e2bee24419f6d60ff (diff)
tests/run-tests: Add nrf target.
-rwxr-xr-xtests/run-tests14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/run-tests b/tests/run-tests
index e4a0e20ed..c24fc8299 100755
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -324,6 +324,16 @@ def run_tests(pyb, tests, args, base_path="."):
skip_tests.add('basics/subclass_native_init.py')# native subclassing corner cases not support
skip_tests.add('misc/rge_sm.py') # too large
skip_tests.add('micropython/opt_level.py') # don't assume line numbers are stored
+ elif args.target == 'nrf':
+ skip_tests.add('basics/memoryview1.py') # no item assignment for memoryview
+ skip_tests.add('extmod/ticks_diff.py') # unimplemented: utime.ticks_diff
+ skip_tests.add('extmod/time_ms_us.py') # unimplemented: utime.ticks_ms
+ skip_tests.add('extmod/urandom_basic.py') # unimplemented: urandom.seed
+ skip_tests.add('micropython/opt_level.py') # no support for line numbers
+ skip_tests.add('misc/non_compliant.py') # no item assignment for bytearray
+ for t in tests:
+ if t.startswith('basics/io_'):
+ skip_tests.add(t)
# Some tests are known to fail on 64-bit machines
if pyb is None and platform.architecture()[0] == '64bit':
@@ -516,7 +526,7 @@ the last matching regex is used:
cmd_parser.add_argument('files', nargs='*', help='input test files')
args = cmd_parser.parse_args()
- EXTERNAL_TARGETS = ('pyboard', 'wipy', 'esp8266', 'esp32', 'minimal')
+ EXTERNAL_TARGETS = ('pyboard', 'wipy', 'esp8266', 'esp32', 'minimal', 'nrf')
if args.target == 'unix' or args.list_tests:
pyb = None
elif args.target in EXTERNAL_TARGETS:
@@ -531,7 +541,7 @@ the last matching regex is used:
if args.target == 'pyboard':
# run pyboard tests
test_dirs = ('basics', 'micropython', 'float', 'misc', 'stress', 'extmod', 'pyb', 'pybnative', 'inlineasm')
- elif args.target in ('esp8266', 'esp32', 'minimal'):
+ elif args.target in ('esp8266', 'esp32', 'minimal', 'nrf'):
test_dirs = ('basics', 'micropython', 'float', 'misc', 'extmod')
elif args.target == 'wipy':
# run WiPy tests