tests/run-tests.py: Always include stress/ tests directory in tests.

Ports that now run the stress tests, that didn't prior to this commit are:
cc3200, esp8266, minimal, nrf, renesas-ra, samd, qemu, webassembly.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2025-08-10 22:25:15 +10:00
parent f493075d88
commit 6565827955
3 changed files with 14 additions and 9 deletions

View File

@@ -1340,6 +1340,7 @@ the last matching regex is used:
"micropython",
"misc",
"extmod",
"stress",
)
if args.inlineasm_arch is not None:
test_dirs += ("inlineasm/{}".format(args.inlineasm_arch),)
@@ -1349,15 +1350,11 @@ the last matching regex is used:
test_dirs += ("float",)
if args.platform == "pyboard":
# run pyboard tests
test_dirs += ("stress", "ports/stm32")
elif args.platform == "mimxrt":
test_dirs += ("stress",)
test_dirs += ("ports/stm32",)
elif args.platform == "renesas-ra":
test_dirs += ("ports/renesas-ra")
elif args.platform == "rp2":
test_dirs += ("stress", "ports/rp2")
elif args.platform == "esp32":
test_dirs += ("stress",)
test_dirs += ("ports/rp2",)
elif args.platform == "WiPy":
# run WiPy tests
test_dirs += ("ports/cc3200",)
@@ -1366,7 +1363,6 @@ the last matching regex is used:
test_dirs += (
"import",
"io",
"stress",
"unicode",
"cmdline",
"ports/unix",

View File

@@ -1,6 +1,11 @@
# copying a large dictionary
a = {i: 2 * i for i in range(1000)}
try:
a = {i: 2 * i for i in range(1000)}
except MemoryError:
print("SKIP")
raise SystemExit
b = a.copy()
for i in range(1000):
print(i, b[i])

View File

@@ -3,6 +3,10 @@
d = {}
x = 1
while x < 1000:
d[x] = x
try:
d[x] = x
except MemoryError:
print("SKIP")
raise SystemExit
x += 1
print(d[500])