Embedded Linux QA Unit Testing with Open Source
Embedded Linux QA: Unit Testing with Open Source Die Linux Systemspezialisten
About PHILOSYS Software Gmb. H UNIX/GNU/Linux Software ~20 years Service Provider Consulting, Design, Implementation, Maintenance Kernel, Networking, Visualization Die Linux Systemspezialisten 2
QA in Open Source Projects Here: Technical aspects independent of ISO-certification Diverse, not always as desired Tools to support process Die Linux Systemspezialisten 3
QA Tools Bug Tracking (Request. Tracker, OTRS) Code Checker (lint etc. ) Memory Monitor (Valgrind, Electric Fence) Compiler Warnings (-Wall -Wextra !) Black box testing (dejagnu) Unit testing (JUnit, autotools) Die Linux Systemspezialisten 4
Unit Testing Background: e. Xtreme Programming Goal: Automated, ubiquitous testing Frameworks: Junit, Py. Unit, Test: : Unit, autounit, . . . Die Linux Systemspezialisten 5
Autotools Die Linux Systemspezialisten 6
autotools Standard GNU framework autoconf, automake, libtool, etc. Used in typical Open Source projects Generated configuration scripts in packages. /configure && make install Goal: “make test” Die Linux Systemspezialisten 7
Embedded Aspects Cross toolchains autotools are prepared for cross compilation Problem: Program execution on target TESTS_ENVIRONMENT=ssh username@targethost Prerequisite: Target is powerful enough to execute tests in addition to normal program Transparent evaluation of results Die Linux Systemspezialisten 8
Example Test Protocol Die Linux Systemspezialisten 9
Thanks for Your Kind Attention! More Information: Philosys Software Gmb. H Edisonstr. 6 D-85716 Unterschleissheim www. philosys. de Phone: +49 -89 -321407 -14 roland. stigge@philosys. de Die Linux Systemspezialisten 10
- Slides: 10