mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-28 09:58:23 +08:00
[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:
+2
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user