Code

Build system: Build tested units as libraries.
authorFlorian Forster <octo@collectd.org>
Tue, 26 May 2015 06:52:39 +0000 (08:52 +0200)
committerFlorian Forster <octo@collectd.org>
Tue, 26 May 2015 18:41:31 +0000 (20:41 +0200)
commita644c803e14a19015acfbf5368e336c359b250e3
tree0182256b78b8881a7a46b1ceaeb0ec8a9957043d
parent68923fc80953be8b3b7e777e8cedc605ae41ef4f
Build system: Build tested units as libraries.

This simplifies the build rules for the tests, aka. check programs.

* test_foo.c have been renamed to foo_test.c.
* foo_test.c now reside right next to foo.c and foo.h.
* Build and refer to .la files, rather than depending on .c files from
  other directories.

Fixes: #1042
22 files changed:
src/Makefile.am
src/daemon/Makefile.am
src/daemon/common_test.c [new file with mode: 0644]
src/daemon/plugin_mock.c [new file with mode: 0644]
src/daemon/utils_avltree_test.c [new file with mode: 0644]
src/daemon/utils_cache_mock.c [new file with mode: 0644]
src/daemon/utils_heap_test.c [new file with mode: 0644]
src/daemon/utils_time_mock.c [new file with mode: 0644]
src/testing.h [new file with mode: 0644]
src/tests/common_test.c [deleted file]
src/tests/macros.h [deleted file]
src/tests/mock/plugin.c [deleted file]
src/tests/mock/utils_cache.c [deleted file]
src/tests/mock/utils_time.c [deleted file]
src/tests/test_common.c [deleted file]
src/tests/test_utils_avltree.c [deleted file]
src/tests/test_utils_heap.c [deleted file]
src/tests/test_utils_mount.c [deleted file]
src/tests/test_utils_vl_lookup.c [deleted file]
src/utils_mount.c
src/utils_mount_test.c [new file with mode: 0644]
src/utils_vl_lookup_test.c [new file with mode: 0644]