Commit Graph

13 Commits

Author SHA1 Message Date
Fabien-B
7954fa63df [utils] Add circular buffer. (#3038) 2023-07-12 14:18:29 +02:00
Gautier Hattenberger
494e3f3ad9 [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.
2021-02-08 17:24:19 +01:00
Felix Ruess
f7ae72dcb3 [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
```
2014-11-24 17:17:58 +01:00
Felix Ruess
4275468ef2 [tests] use conf.xml and exit with number of failed tests 2014-08-27 17:42:04 +02:00
Gautier Hattenberger
737d7d3c8b [makefile] silence clean target and add missing Makefile 2013-02-23 12:31:59 +01:00
Bernard Davison
763bd7234d Adding a clean target to the tests make file to fix a warning when running make clean.
Corrected a typo in the LisaL tests.
2012-03-21 15:21:42 +11:00
Bernard Davison
406fe3f3cc Cleaning up the reporting of example airframe compile test messages.
Fixing the linux find command issue.
Adding a check to see if the Ivy module will load and then skipping tests if it fails to load.
2012-03-21 14:57:43 +11:00
Bernard Davison
a0899c7623 trying to fix an error on Linux for the finding of test directories. 2012-03-21 14:06:29 +11:00
Bernard Davison
2c9f962523 Changing the testing to not run hardware tests by default.
Started to create some sim testing for the Microjet.
Removed the test_all_examples target.
2012-03-21 13:56:33 +11:00
Bernard Davison
e45fb91b64 Getting a little further into the process of testing the hardware. Now we need to read and write to the Ivy bus to run the actual tests.
Then there's the cleanup to do to make this all much easier to do in the future to more boards...
2012-03-08 00:17:12 +11:00
Bernard Davison
569380667a Forcing make test to use /usr/bin/perl instead of the perl from the path.
This is required since we could be picking up Perl from /opt/paparazzi/bin/perl which won't have the required modules installed.
2012-03-07 10:24:55 +11:00
Bernard Davison
6dbf1183bd Adding JUnit result output
The JUnit results can be added by specifying JUNIT=1 from the make
command line.

This is important as the Bamboo server can read JUnit results and
include them in the build reports.

This requires that the Perl module TAP::Formatter::JUnit is installed
on the host that the command is run on.
The JUnit results are created under tests/results and have the name
ABC.junit.xml
2012-03-05 15:08:23 +11:00
Bernard Davison
debabf1697 Started adding a Perl test framework. Need to work out how to print JUnit test results though... 2012-03-04 23:11:18 +11:00