diff options
author | Bartosz Golaszewski <bartekgola@gmail.com> | 2014-06-22 16:30:41 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-06-22 16:30:41 +0200 |
commit | 3ed81cf0529145d04299c4cd48b1aaab2fe36193 (patch) | |
tree | f8d40bf4c55c9dadba0773543048a5d69b695002 /Makefile.custom | |
parent | 5d2e409ef8224dc32fde59702e8ec90b231441ed (diff) | |
download | busybox-w32-3ed81cf0529145d04299c4cd48b1aaab2fe36193.tar.gz busybox-w32-3ed81cf0529145d04299c4cd48b1aaab2fe36193.tar.bz2 busybox-w32-3ed81cf0529145d04299c4cd48b1aaab2fe36193.zip |
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>
Diffstat (limited to 'Makefile.custom')
-rw-r--r-- | Makefile.custom | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.custom b/Makefile.custom index 8c95ef2d4..f8a12831d 100644 --- a/Makefile.custom +++ b/Makefile.custom | |||
@@ -55,7 +55,11 @@ endif | |||
55 | # (cp -pPR is POSIX-compliant (cp -dpR or cp -a would not be)) | 55 | # (cp -pPR is POSIX-compliant (cp -dpR or cp -a would not be)) |
56 | .PHONY: check | 56 | .PHONY: check |
57 | .PHONY: test | 57 | .PHONY: test |
58 | ifeq ($(CONFIG_UNIT_TEST),y) | ||
59 | UNIT_CMD = ./busybox unit | ||
60 | endif | ||
58 | check test: busybox busybox.links | 61 | check test: busybox busybox.links |
62 | $(UNIT_CMD) | ||
59 | test -d $(objtree)/testsuite || cp -pPR $(srctree)/testsuite $(objtree) | 63 | test -d $(objtree)/testsuite || cp -pPR $(srctree)/testsuite $(objtree) |
60 | bindir=$(objtree) srcdir=$(srctree)/testsuite \ | 64 | bindir=$(objtree) srcdir=$(srctree)/testsuite \ |
61 | $(SHELL) -c "cd $(objtree)/testsuite && $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:0=),-v)" | 65 | $(SHELL) -c "cd $(objtree)/testsuite && $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:0=),-v)" |