[Commits] [SCM] claws branch, master, updated. 3.17.0-104-g1cfe78b
Andrej Kacian
ticho at claws-mail.org
Mon Oct 8 12:08:43 CEST 2018
On Mon, 8 Oct 2018 11:15:41 +0200
Colin Leroy-Mira wrote:
> On Mon, 8 Oct 2018 10:35:17 +0200 (CEST), ticho at claws-mail.org wrote:
>
> > Fix unit tests building, broken after the file-utils addition.
>
> Oh, sorry, I missed the unit tests introduction! How does one build and
> run them?
We're using the glib's testing framework.
Just configure with --enable-tests, and they get built. You can then run
them with "make test", in top directory, or in individual test
subfolders.
Or you can run them directly, as each test is a separate executable
program. They even understand a few commandline switches to control
how tests are run - run them with --help to see them.
Some of the test programs (e.g. codeconv, xml) only have pretty basic
test cases so far, written just as proof of concept, while others (e.g.
md5, pbkdf2) are more thorough. Contributions welcome. :)
The biggest obstacle in adding more test coverage is being able to
"despaghettify" code well enough to be able to get individual .c files
to compile with relatively few dependencies (linked .o files). That is
why I am so keen on breaking utils.c up, among other things.
Regards,
--
Andrej
More information about the Commits
mailing list