[tests] add a compilation test node to modules (#2653)

When adding a test node to a makefile section, with required compilation
flags, include and other options, all the files (not arch dependent
files) can be compiled with a TAP compatible program, included in the
standard tests of the CI servers.
Not all module's XML files are converted, but a large part of the most
important parts are already covered. More will be added later. The
number of tested airframes (full compilation of all targets) have been
reduced to speed the CI compile time but still covers the relevant
architecture and boards.
The main benefit is that the overall coverage is already better than
before as previous test aircraft were compiling more or less the same
part of the airborne code, while this new mechanism is more efficient to
test modules not included in any config.
This commit is contained in:
Gautier Hattenberger
2021-02-08 17:24:19 +01:00
committed by GitHub
parent c522927a69
commit 494e3f3ad9
205 changed files with 2687 additions and 430 deletions
+5 -1
View File
@@ -302,7 +302,7 @@ ab_clean:
#
# Tests
#
test: test_math test_examples
test: test_math test_examples test_modules
# subset of airframes for coverity test to pass the limited build time on travis
test_coverity: all
@@ -324,6 +324,10 @@ test_tudelft: all
test_examples: all
CONF_XML=conf/conf_tests.xml prove tests/aircrafts/
# test compilation of modules
test_modules: all
prove -v tests/modules/test_modules.py
test_all_confs: all opencv_bebop
$(Q)$(eval $CONFS:=$(shell ./find_confs.py))
@echo "************\nFound $(words $($CONFS)) config files: $($CONFS)"