mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
e45fb91b64
Then there's the cleanup to do to make this all much easier to do in the future to more boards...
20 lines
573 B
Makefile
20 lines
573 B
Makefile
Q = @
|
|
PERL = /usr/bin/perl
|
|
TEST_VERBOSE = 0
|
|
ifeq ($(TARGET_BOARD),)
|
|
TARGET_BOARD = *
|
|
endif
|
|
TEST_FILES := $(shell ls $(TARGET_BOARD)/*.t)
|
|
|
|
ifneq ($(JUNIT),)
|
|
PERLENV=PERL_TEST_HARNESS_DUMP_TAP=$(PAPARAZZI_SRC)/tests/results
|
|
RUNTESTS=use TAP::Harness; TAP::Harness->new({ formatter_class => 'TAP::Formatter::JUnit', verbosity => $(TEST_VERBOSE), merge => 1, } )->runtests(qw($(TEST_FILES)))
|
|
else
|
|
PERLENV=
|
|
RUNTESTS=use TAP::Harness;TAP::Harness->new( { verbosity => $(TEST_VERBOSE) } )->runtests(qw($(TEST_FILES)))
|
|
endif
|
|
|
|
test:
|
|
$(Q)$(PERLENV) $(PERL) "-e" "$(RUNTESTS)"
|
|
|