summaryrefslogtreecommitdiffstats
path: root/src/test/meson.build
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-04-11 20:03:39 +0200
committerLennart Poettering <lennart@poettering.net>2018-04-18 12:51:15 +0200
commit1960e73611af42b8c0032d0fa8612931c80c3295 (patch)
tree730a7adc9a73f295182d4a15bd76c8ed61e97acd /src/test/meson.build
parentpager: move pager.[ch] src/shared/ → src/basic/ (diff)
downloadsystemd-1960e73611af42b8c0032d0fa8612931c80c3295.tar.xz
systemd-1960e73611af42b8c0032d0fa8612931c80c3295.zip
basic: add minimalistic table formatter
We have plenty of code in our codebase that outputs tables to the console, and all is homegrown and awful. Let's replace it with a generic implementation that can do automatically what the old implementations did manually. Features: 1. Ellipsation (for fields overly long) and alignment (for fields overly short) 2. Sorting of rows 3. automatically copies formatting from the same cell in the row above 4. Heavy use of varargs to make putting together tables easy 5. can expand and compress tables, with weights 6. Has a minimal understanding of unicode wide characters in order to match unicode strings to character cell terminals. 7. Columns can be reordered and individually turned off. 8. pretty printing for various data types And more.
Diffstat (limited to 'src/test/meson.build')
-rw-r--r--src/test/meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/meson.build b/src/test/meson.build
index 61bb23ef7e..4a9982240b 100644
--- a/src/test/meson.build
+++ b/src/test/meson.build
@@ -178,6 +178,10 @@ tests += [
[],
[]],
+ [['src/test/test-format-table.c'],
+ [],
+ []],
+
[['src/test/test-ratelimit.c'],
[],
[]],