summaryrefslogtreecommitdiffstats
path: root/tests/util.h
Commit message (Collapse)AuthorAgeFilesLines
* tests: refactor tests and add n-test-util helper libraryThomas Haller2022-03-161-6/+0
| | | | | | | | | | | | | | - we have "check-all.c" and "check-direct.c", which contains the main functions of the actual tests. On the other hand, the other "check-{addr,attr,ematch-tree-clone}.c" files only contained the test suites for "check-all.c". Rename the latter to have a separate name prefix. - rename "tests/util.h" to "tests/cksuite-all.h". It's really the header that declares all the suites. - add a "tests/nl-test-util.c" as a static helper library with test code.
* tests: replace libcheck's fail_if() macro by ck_assert*()Thomas Haller2022-03-041-4/+0
| | | | | | fail_if() is deprecated. See also commit 3d1fb006c859 ('tests/check-addr: replace deprecated fail_if() macro from libcheck with ck_assert_msg()').
* Add support for cloning cgroup filter object.d0u92018-06-251-0/+1
| | | | | | | | | | | In this commit, we implement ematch_tree_clone(), which is basis of cgroup_clone() interface. The whole ematch tree is deep-copied except the e_ops filed. Also, a new unit test is added for testing the interface, which named as check-ematch-tree-clone.c located in tests directory. https://github.com/thom311/libnl/pull/176
* all: enable -Wmissing-prototype warning for all componentsThomas Haller2017-02-271-0/+4
|
* tests: Add basic attribute unit testsThomas Graf2013-04-281-0/+5
Signed-off-by: Thomas Graf <tgraf@suug.ch>