Skip to content
Frederik Van Slycken edited this page Aug 12, 2015 · 16 revisions

We spend a lot of time making sure the code produces reliable software, but don’t take our word for it, explore our tests and execute them to see if the current codebase passes! The unit tests are constructed with help of the Check framework. If you’re interested in the entire QA and testing process you can read about it in the picoTCP testing article on our website. Let’s dive in!

Prerequisites

You will need to install certain libraries.

sudo apt-get install check vde2 libvdeplug2-dev libpcap0.8-dev  

Unit tests

To compile and run the unit tests:

$ make clean; make units ARCH=faulty
$ ./test/units.sh

Looking for a guide on how to write new unit tests? See the wiki section Writing-unit-tests.

Smoke tests

There are smoke tests as well, these make use of the virtual runnable picoapp with a VDE plug as ethernet driver. There’s a test script that runs multiple instances of picoTCP powered picoapps that will communicate with each other through the VDE plugs. Build and run with:

$ make clean; make test && make lib
$ sudo ./test/autotest.sh
Clone this wiki locally