unit-tests: implement the unit-testing framework
authorBartosz Golaszewski <bartekgola@gmail.com>
Sun, 22 Jun 2014 14:30:41 +0000 (16:30 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 22 Jun 2014 14:30:41 +0000 (16:30 +0200)
commit3ed81cf0529145d04299c4cd48b1aaab2fe36193
treef8d40bf4c55c9dadba0773543048a5d69b695002
parent5d2e409ef8224dc32fde59702e8ec90b231441ed
unit-tests: implement the unit-testing framework

This set of patches adds a simple unit-testing framework to Busybox

unit-tests: add some helper macros for unit-test framework implementation
unit-tests: implement the unit-testing framework
unit-tests: add basic documentation on writing the unit test cases
unit-tests: modify the Makefile 'test' target to run unit-tests too
unit-tests: add two example test cases
unit-tests: modify the existing strrstr test code to use the unit-test framework

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Config.in
Makefile.custom
docs/unit-tests.txt [new file with mode: 0644]
include/libbb.h
include/platform.h
libbb/bbunit.c [new file with mode: 0644]
libbb/obscure.c
libbb/strrstr.c