Skip to content

Commit 53d0543

Browse files
committed
tests: Run everything except CNN as extmod
This way we ensure coverage for new modules, even though CNN currently broken
1 parent 3baa293 commit 53d0543

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ webassembly: $(WEBASSEMBLY_MICROPYTHON)
134134

135135

136136
check_unix: $(UNIX_MICROPYTHON) $(TEST_PY)
137-
$(UNIX_MICROPYTHON) tests/test_all.py
137+
$(UNIX_MICROPYTHON) tests/test_all.py -test_cnn
138138

139139
rp2: $(PORT_DIR) $(SRC_ALL) src/manifest_unix.py
140140
$(MAKE) -C $(MPY_DIR)/ports/rp2 V=1 USER_C_MODULES=$(C_MODULES_SRC_PATH)/micropython.cmake FROZEN_MANIFEST=$(MANIFEST_PATH) CFLAGS_EXTRA='-Wno-unused-function -Wno-unused-function' -j4

tests/test_all.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,15 @@ def main():
4040

4141
modules = TEST_MODULES
4242
if len(sys.argv) >= 2:
43-
modules = sys.argv[1].split(',')
43+
config = sys.argv[1].split(',')
44+
skip = [ m[1:] for m in config if m[0] == '-' ]
45+
add = [ m for m in config if m[0] != '-' ]
46+
if len(skip):
47+
modules = [m for m in TEST_MODULES if not m in skip ]
48+
print('SKIPPING', skip)
49+
if len(add):
50+
modules = add
51+
print('RUN ONLY', add)
4452

4553
passed = 0
4654
failed = 0

0 commit comments

Comments
 (0)