Commit Graph

44 Commits

Author SHA1 Message Date
Felix Ruess cbb497ed66 [tests] show warnings by default 2014-11-19 15:42:53 +01:00
Felix Ruess 68e907947e [tests] get number of test targets for plan 2014-11-18 17:06:05 +01:00
Felix Ruess f62c56f4e9 [tests] option to show warnings even if successfully compiled
Examples on how to test compile all aircrafts/targets in your current conf.xml:
with parallel compilation and showing full output during compilation
 $ J=AUTO prove tests/examples -v
only showing full compile output if there has been an error, if there were warnings only print those
 $ SHOW_WARNINGS_ONLY=1 prove test/examples
with parallel compilation and treating all warnings as errors:
 $ J=AUTO USER_CFLAGS=-Werror prove tests/examples
2014-11-13 17:03:10 +01:00
Felix Ruess 8df5ffbadc [test] update compile_all_aircrafts test
Also replace LOCAL_CFLAGS (which wasn't used anymore) with USER_CFLAGS (and add where missing).
Now you can e.g. test compile all aircrafts/targets in your conf and add extra flags like treating warnings as errors:

$ J=AUTO USER_CFLAGS=-Werror prove conf/examples
2014-11-07 14:07:24 +01:00
Felix Ruess ad48078b18 [tests] cleanup 01_compile_all_test_targets.t
Check exit status instead of whether output contains the word Error.
With ForceArray on xmlSimple no need to check for target separately.
Also don't filter on list of firmwares, build all..
2014-08-27 22:38:13 +02:00
Felix Ruess 4275468ef2 [tests] use conf.xml and exit with number of failed tests 2014-08-27 17:42:04 +02:00
Felix Ruess 2b26c288aa [tests] fix perl script compile_all_test_targets
Firmwares with only a single target were not built before.
Thanks for the fix Alexandre.
2013-12-18 20:44:39 +01:00
Felix Ruess 80a007f155 [conf] rename from *.xml.example to *_example.xml
- select_conf: personal conf file is conf_personal.xml
2013-09-14 00:04:00 +02:00
Gautier Hattenberger 737d7d3c8b [makefile] silence clean target and add missing Makefile 2013-02-23 12:31:59 +01:00
Felix Ruess 17c6cf2cac [sim] removed launchsitl and replaced it with symlink to pprzsim-launch 2013-01-24 13:01:44 +01:00
Felix Ruess 1873297098 [conf][tests] make a new tests_conf.xml 2012-09-19 18:07:02 +02:00
Bernard Davison 5f5e4bd013 correcting the names of the target airframes which I forgot to test and correct yesterday. :-( 2012-07-16 08:44:13 +10:00
Felix Ruess 7dc47c735d [tests] enable testing of nps target on OSX again, should be working now 2012-06-30 18:54:48 +02:00
Bernard Davison cf2c7ee24b Commenting out the building of the following targets on Mac which fail due to linux/joystick.h not being found:
make AIRCRAFT=BOOZ2 clean_ac nps.compile
make AIRCRAFT=LisaLv11_Aspirinv15_Overo_RC clean_ac nps.compile
make AIRCRAFT=LisaLv11_Booz2v12_RC clean_ac nps.compile
make AIRCRAFT=Quad_LisaM_2 clean_ac nps.compile
2012-06-21 20:37:27 +10:00
Bernard Davison 4560128d18 Commenting out the skipping of failing tests on Mac that were due to jsbsim for rotorcraft. 2012-06-21 08:26:44 +10:00
Felix Ruess c4e1c1f7dc [tests] update some airframes excluded from compiling nps on osx 2012-06-15 22:10:09 +02:00
Bernard Davison 9d576bf531 fixing test errors due to the change from sim to nps. 2012-06-06 22:19:52 +10:00
Bernard Davison 95a8b6574b Avoiding errors in the test phase of the automated builds on Mac due to issues with JSBSim on this platform. 2012-05-10 13:03:49 +02:00
Bernard Davison d1a527b2b1 Making upload tests skip if the hardware isn't detected on the host. 2012-04-01 14:35:21 +10:00
Bernard Davison 4f2fbbca79 Excluding the sim target for the new example config on mac since it fails due to a JSBSim error 2012-03-21 17:31:49 +11:00
Bernard Davison b2ec5485e2 Building the correct target aircraft for the LisaL/02_With_aspirin_v1.5_and_overo.t test cases. 2012-03-21 16:42:44 +11: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 d743651832 Correctly targeting the Microjet when starting the launchsitl process. 2012-03-21 15:03:31 +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 9bfb5ef9a2 Making the /Error/ regex match on word boundries so it won't match i2c_error for example. 2012-03-20 14:48:53 +11:00
Bernard Davison cc050c4781 Commenting out tests that are known to fail on Mac due to JSBSim. 2012-03-19 21:34:54 +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 9a3027ca0a Merge branch 'hardware_test' of github.com:paparazzi/paparazzi into hardware_test 2012-03-07 20:17:33 +11:00
Bernard Davison d315c757aa Merge branch 'hardware_test' of github.com:paparazzi/paparazzi into hardware_test 2012-03-07 10:25:28 +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 378ee1344a Adding the Ivy perl module. This requires that IO::Socket::Multicast is installed on the Machine. I'm not adding that into the repo as it's needs to be compiled and is too much work and the Ivy module isn't in CPAN for some unknown reason. 2012-03-07 00:26:19 +11:00
Bernard Davison c83bf91435 cleaning up which targets are built a little more. 2012-03-05 23:28:44 +11:00
Bernard Davison b8946ba75c Adding a clean_ac before we try to build each target. Missed this by mistake. :-( 2012-03-05 22:04:53 +11:00
Bernard Davison 867c42bf4f Chaning how the verbosity of the tests is set. 2012-03-05 21:48:58 +11:00
Bernard Davison 3ef96b1003 Adding more perl modules
Adding more support modules that are needed by XML::Simple to read the
conf/conf.xml.example.
Adding these files into the repository means that users don't need to
install them on their computers.
2012-03-05 19:50:44 +11:00
Bernard Davison 567f51345b Adding the XML::Simple perl module
Adding the XML::Simple perl module into the tests/lib directory so that
normal users don't need to install it to run the tests.

Reformatted the conf/conf.xml.example file to not all be on single
lines for each config since this is now not required as we're parsing
the XML.
2012-03-05 17:37:37 +11:00
Bernard Davison 565d2ae84a Building all examples
Removed the early prototype of the tests.
Added the building of all example aircraft targets.
2012-03-05 16:37:31 +11:00
Bernard Davison bfdfc5a317 A couple of minor changes to make building easier. 2012-03-05 15:57:04 +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 0c1bc178a4 Corrected a regex and added a couple of ignore items 2012-03-05 12:48:16 +11:00
Bernard Davison 49dcc05093 Some basic tests to check that Paparazzi compiled.
Some tests that check that the compile of the airframe config works as well as the upload of that airframe to a target board.
2012-03-05 12:11:05 +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