Unit tests for busybox
Bartosz Gołaszewski
bartekgola at gmail.com
Fri Dec 20 10:07:11 UTC 2013
2013/11/20 Denys Vlasenko <vda.linux at googlemail.com>:
> I think it's best to keep tests in the same source files where
> tested function is. This way it's easier to see when
> the test needs to be tweaked when API is changed.
> This may also be the only way to test static functions.
>
> --
> vda
It depends on whether one wants to test only the public API (libbb in
this case) or 'private' functions as well.
If API changes affect the behaviour of any functions the tests will
fail anyway indicating the need for fixes. You're of course right for
the static functions.
Anyway - unit-tests suite can be just in the form of a new applet with
tests distributed among the relevant files and compiled out if this
applet is not selected.
--
Best regards,
Bartosz Gołaszewski
More information about the busybox
mailing list