Added optional gdb info for tests

master
Richard Meadows 2015-06-28 18:50:33 +01:00
rodzic b7d51b7f62
commit 68aca94548
2 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -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)

Wyświetl plik

@ -31,7 +31,11 @@ to run all tests, or
make test tc=<tc name>
```
to run a specific test case
to run a specific test case. To get extra debug info
```
make test tc=<tc name> tc-gdb-info=1
```
#### Operation