8000 Allow choosing which unit tests to run · insighio/micropython-esp32-ulp@2ebaacc · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ebaacc

Browse files
committed
Allow choosing which unit tests to run
Useful for running just one unit test file instead of all. Now one can pass the name of a unit test (or a list of names) to the 00_unit_tests.sh script. Example: cd tests ./00_unit_tests.sh disassemble # run only disassemble.py The default (if nothing is passed the script) is still to run all tests as before.
1 parent e4b34e2 commit 2ebaacc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/00_unit_tests.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
set -e
66

7-
for file in opcodes assemble link util preprocess definesdb disassemble; do
7+
LIST=${1:-opcodes assemble link util preprocess definesdb disassemble}
8+
9+
for file in $LIST; do
810
echo testing $file...
911
micropython $file.py
1012
done

0 commit comments

Comments
 (0)
0