diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-02-06 21:15:23 +0100 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-02-06 21:15:23 +0100 |
commit | 539ad707db5361e7fbe0076615a92456fd34f7df (patch) | |
tree | 946af36e3031a8bc5b1dc4e31ceae224658c7332 /Makefile.am | |
parent | 4f19b1df41b9a1971989ffd858d0a2f6977b01c8 (diff) |
test: add a few tests and tidy up
adds test of:
strv_find
strv_find_prefix
strv_overlap
strv_sort
streq_ptr
first_word
Splits tests of util.c into own file to avoid clutter as we add more.
Removed a few prints and uses _cleanup_free_ to make the tests more focused.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 88662c0144..93fd3773e6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1231,6 +1231,7 @@ noinst_tests += \ test-strv \ test-unit-name \ test-unit-file \ + test-util \ test-date \ test-sleep \ test-replace-var \ @@ -1314,6 +1315,15 @@ test_unit_file_CFLAGS = \ test_unit_file_LDADD = \ libsystemd-core.la +test_util_SOURCES = \ + src/test/test-util.c + +test_util_CFLAGS = \ + $(AM_CFLAGS) + +test_util_LDADD = \ + libsystemd-core.la + test_log_SOURCES = \ src/test/test-log.c |