Commit 831e1572 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/run-tests: Introduce generic "minimal" target.

Used e.g. by Zephyr port.
parent 7df4558d
......@@ -290,6 +290,9 @@ def run_tests(pyb, tests, args):
skip_tests.add('float/') # requires fp32
skip_tests.add('float/') # requires fp32
skip_tests.add('misc/') # too large
elif == 'minimal':
skip_tests.add('misc/') # too large
skip_tests.add('micropython/') # don't assume line numbers are stored
# Some tests are known to fail on 64-bit machines
if pyb is None and platform.architecture()[0] == '64bit':
......@@ -429,7 +432,7 @@ def main():
cmd_parser.add_argument('files', nargs='*', help='input test files')
args = cmd_parser.parse_args()
EXTERNAL_TARGETS = ('pyboard', 'wipy', 'esp8266')
EXTERNAL_TARGETS = ('pyboard', 'wipy', 'esp8266', 'minimal')
import pyboard
pyb = pyboard.Pyboard(args.device, args.baudrate, args.user, args.password)
......@@ -444,7 +447,7 @@ def main():
if == 'pyboard':
# run pyboard tests
test_dirs = ('basics', 'micropython', 'float', 'misc', 'stress', 'extmod', 'pyb', 'pybnative', 'inlineasm')
elif == 'esp8266':
elif in ('esp8266', 'minimal'):
test_dirs = ('basics', 'micropython', 'float', 'misc', 'extmod')
elif == 'wipy':
# run WiPy tests
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment