]> git.ipfire.org Git - thirdparty/snapper.git/commit
Run the tests twice, with and without validation. 520/head
authorMartin Vidner <mvidner@suse.cz>
Mon, 27 Jan 2020 14:37:27 +0000 (15:37 +0100)
committerMartin Vidner <mvidner@suse.cz>
Mon, 27 Jan 2020 14:37:27 +0000 (15:37 +0100)
commitf9520bd9cfc1e25f484bdc74d1460ce806927bc9
tree948f83e11f7369a748fe155b695a5f927bd6cb84
parent2fd63f7d179f05546eb851d07d4bf9db422d932a
Run the tests twice, with and without validation.

Why make it so complicated?

Before, coverage measurement gets messed up (the numbers go down and I
look, and feel, like a fool). It's because forwarding-zypp-plugin and
snapper-zypp-plugin run at the same time and both want to write to the
same GCOV data files. The GCOV instrumentation will merge the data, but
only if the programs run in sequence. Being run in parallel, the simpler
plugin somehow wins, having covered much less code :-(

(
There is a way to tell GCOV to write to a different location, with
GCOV_PREFIX and GCOV_PREFIX_STRIP, but that seems less workable than
this.
https://gcc.gnu.org/onlinedocs/gcc/Cross-profiling.html#Cross-profiling
)
Makefile.am
zypp-plugin/testsuite/1-happy.test
zypp-plugin/testsuite/test-helper.sh