Skip to content
Frederik Van Slycken edited this page Feb 20, 2017 · 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

Ensure that you have read the instructions on How to set up the environment

Other dependencies:

  • gcc (version >= 4.9) //needed to run ASAN leak checker

Unit tests

To compile and run the unit tests:

$ make clean; make units UNITS=1 && ./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 with:

$ make clean; make test TEST=1

This will create executable applications based on the examples provided. The applications are called build/test/picoapp.elf and build/test/picoapp6.elf

Now, if you want to run the autotest, type

$ sudo ./test/autotest.sh

Alternatively, if you want to run the application manually, check the Example application page.