From 244eb55431635efa50ece81a5d09447ca84f3e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 11 May 2019 11:07:51 +0200 Subject: [PATCH] test: wip: good path try-to-exercise-as-much-as-possible test case This is a configuration that is expected to validate, and to exercise as much as possible of the code up until validation has completed. That is, as much as possible of the configuration validation code. It currently instantiates all modules, but not yet all particles and decorations. --- test/full-conf-good.yml | 52 +++++++++++++++++++++++++++++++++++++++++ test/meson.build | 1 + 2 files changed, 53 insertions(+) create mode 100644 test/full-conf-good.yml diff --git a/test/full-conf-good.yml b/test/full-conf-good.yml new file mode 100644 index 0000000..685f7fa --- /dev/null +++ b/test/full-conf-good.yml @@ -0,0 +1,52 @@ +bar: + height: 10 + location: bottom + spacing: 3 + margin: 2 + monitor: LVDS-1 + + font: monospace + + foreground: ffffffff + background: 000000ff + + border: + width: 1 + color: 77777777 + margin: 7 + + left: + - alsa: + card: Default + mixer: Master + content: {string: {text: "{volume}"}} + - backlight: + name: intel_backlight + content: {string: {text: "{percent}"}} + - battery: + name: BAT0 + content: {string: {text: "{capacity}"}} + - clock: + content: {string: {text: "{date} {time}"}} + + center: + - i3: + content: + "": {string: {text: "{name}"}} + ws: {string: {text: WS}} + - label: + content: {string: {text: hello}} + - mpd: + host: 127.0.0.1 + content: {string: {text: "{state}"}} + - network: + name: ldsjfdf + content: {string: {text: "{name}"}} + + right: + - removables: + content: {string: {text: "{label}"}} + - xkb: + content: {string: {text: "{name}"}} + - xwindow: + content: {string: {text: "{application}: {title}"}} diff --git a/test/meson.build b/test/meson.build index 3427e2c..85b2ac4 100644 --- a/test/meson.build +++ b/test/meson.build @@ -7,3 +7,4 @@ test('no-config', f00bar, args: ['-C', '-c', 'xyz'], should_fail: true) test('config-isnt-file', f00bar, args: ['-C', '-c', '.'], should_fail: true) test('config-no-bar', f00bar, args: ['-C', '-c', join_paths(pwd, 'no-bar.yml')], should_fail: true) +test('full-conf-good', f00bar, args: ['-C', '-c', join_paths(pwd, 'full-conf-good.yml')])