diff --git a/firmware/Makefile b/firmware/Makefile index 673be8c..a1c4e05 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -251,7 +251,11 @@ TESTCASES := $(shell $(FIND) test/tc -name '*.[h]') test: test/main.py all @echo "Running tests..." @echo $(tc) > test/.testcommand +ifdef tc-gdb-info $(DB) -q -x test/tests.py +else + @>/dev/null $(DB) -q -x test/tests.py +endif # Ctypesgen for test test/main.py: test/tmain.c $(TESTCASES) diff --git a/firmware/test/README.md b/firmware/test/README.md index e8ab50d..2076ba1 100644 --- a/firmware/test/README.md +++ b/firmware/test/README.md @@ -31,7 +31,11 @@ to run all tests, or make test tc= ``` -to run a specific test case +to run a specific test case. To get extra debug info + +``` +make test tc= tc-gdb-info=1 +``` #### Operation