Commit 157056ec authored by Damien George's avatar Damien George
Browse files

tests: Add new subdir "stress/" specifically for stress tests.

parent ab69ed7d
......@@ -365,7 +365,7 @@ def main():
if args.test_dirs is None:
if == 'pyboard':
# run pyboard tests
test_dirs = ('basics', 'micropython', 'float', 'misc', 'extmod', 'pyb', 'pybnative', 'inlineasm')
test_dirs = ('basics', 'micropython', 'float', 'misc', 'stress', 'extmod', 'pyb', 'pybnative', 'inlineasm')
elif == 'esp8266':
test_dirs = ('basics', 'micropython', 'float', 'misc', 'extmod')
elif == 'wipy':
......@@ -373,7 +373,7 @@ def main():
test_dirs = ('basics', 'micropython', 'misc', 'extmod', 'wipy')
# run PC tests
test_dirs = ('basics', 'micropython', 'float', 'import', 'io', 'misc', 'unicode', 'extmod', 'unix', 'cmdline')
test_dirs = ('basics', 'micropython', 'float', 'import', 'io', 'misc', 'stress', 'unicode', 'extmod', 'unix', 'cmdline')
# run tests from these directories
test_dirs = args.test_dirs
# copying a large dictionary
a = {i:2*i for i in range(1000)}
b = a.copy()
for i in range(1000):
print(i, b[i])
# create a large dictionary
d = {}
x = 1
while x < 1000:
d[x] = x
x += 1
# test large list sorting (should not stack overflow)
l = list(range(2000))
print(l[0], l[-1])
print(l[0], l[-1])
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