forked from external/yambar
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.
This commit is contained in:
parent
217e0d2052
commit
244eb55431
2 changed files with 53 additions and 0 deletions
52
test/full-conf-good.yml
Normal file
52
test/full-conf-good.yml
Normal file
|
@ -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}"}}
|
|
@ -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-isnt-file', f00bar, args: ['-C', '-c', '.'], should_fail: true)
|
||||||
test('config-no-bar', f00bar, args: ['-C', '-c', join_paths(pwd, 'no-bar.yml')],
|
test('config-no-bar', f00bar, args: ['-C', '-c', join_paths(pwd, 'no-bar.yml')],
|
||||||
should_fail: true)
|
should_fail: true)
|
||||||
|
test('full-conf-good', f00bar, args: ['-C', '-c', join_paths(pwd, 'full-conf-good.yml')])
|
||||||
|
|
Loading…
Add table
Reference in a new issue