Contains unittest code for paparazzi airborne software
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmock @ f17d1a9
sw/airborne
unity @ 6621bc8
var/include
.gitignore
.gitmodules
README.md
rakefile.rb
rakefile_helper.rb
yml_template.txt

README.md

paparazzi-unittest

Contains unittest code for paparazzi airborne software

This is a very first attempt to introduce unit testing to paparazzi. It was succesfully used during development of the sdcard_spi and sd_logger_spi_direct. Some modifications were required to blend it into the existing paparazzi environment. For more information about unity and cmock, please refer to http://www.throwtheswitch.org/.

Setup of test-environment

  • Put this repository parallel to paparazzi, for example: ~/paparazzi and ~/paparazzi-unittest
$ cd ~
$ git clone https://github.com/bartslinger/paparazzi-unittest.git
$ git clone https://github.com/bartslinger/paparazzi-tools.git
  • Call the configure_workspace.py script in tools:
$ python ~/paparazzi-tools/qtcreator_ide_config/configure_workspace.py <AC_NAME> ~/paparazzi-unittest/yml_template.txt

<AC_NAME> = Aircraft name as defined in conf.xml, for example "Microjet" (without quotes)

  • There are still some hard coded paths in the files that need to be fixed. Look for /home/bart/