[tests] skeleton for testing math lib with libtap

using [libtap](https://github.com/zorgnax/libtap) to create a [TAP](http://testanything.org) (TestAnythingProtocol) producer.
You can also run the test (if already compiled) with prove:
```
prove --exec '' tests/math/test_pprz_math.run
```
This commit is contained in:
Felix Ruess
2014-11-18 18:52:28 +01:00
parent 9913afeda5
commit f7ae72dcb3
7 changed files with 601 additions and 2 deletions
+2 -1
View File
@@ -15,7 +15,7 @@ else
TEST_DIRECTORIES = $(NON_HARDWARE_TEST_DIRS) $(HARDWARE_TEST_DIRS)
endif
endif
TEST_FILES ?= $(shell ls $(TEST_DIRECTORIES:%=%/*.t))
TEST_FILES ?= $(shell ls $(TEST_DIRECTORIES:%=%/*.t) 2> /dev/null)
ifneq ($(JUNIT),)
PERLENV=PERL_TEST_HARNESS_DUMP_TAP=$(PAPARAZZI_SRC)/tests/results
@@ -26,6 +26,7 @@ else
endif
test:
$(Q)make -C math test
$(Q)$(PERLENV) $(PERL) "-e" "$(RUNTESTS)"
clean: