]> git.ipfire.org Git - thirdparty/collectd.git/commit
gpu_sysman_test.c: use real collectd functions in tests 4223/head
authorEero Tamminen <eero.t.tamminen@intel.com>
Thu, 28 Dec 2023 16:07:04 +0000 (18:07 +0200)
committerEero Tamminen <eero.t.tamminen@intel.com>
Tue, 20 Feb 2024 13:21:22 +0000 (15:21 +0200)
commit896eaa3810cffe30785368f06e675b988ecef709
tree6c5e5de9fb84a31c5b108903fa5171ccc341d679
parent82ec9de98a866deee6aefa90b7fbba715aec0e95
gpu_sysman_test.c: use real collectd functions in tests

Drop most mocked functions and use real ones by linking libcommon.la.
This required mocking few other functions that it refers (but does not
link).

Support for a build including relevant C-files directly, e.g. for
whole program analysis, is added behind BUILD_STANDALONE define.

(It's also a fallback in case libcommon.la later changes to include
functionality that tester must override to be able to check correct
plugin functionality.)

Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
Makefile.am
src/gpu_sysman_test.c