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')])