tests: Verify all bundled layouts

This commit is contained in:
Dorota Czaplejewicz
2019-09-13 09:08:50 +00:00
parent b07689939b
commit edb28cb859
7 changed files with 51 additions and 76 deletions

View File

@ -19,11 +19,10 @@ test_link_args = [
'-fPIC',
]
tests = [
'test-keymap-generation'
c_tests = [
]
foreach name : tests
foreach name : c_tests
test_sources = [name + '.c']
@ -45,4 +44,15 @@ foreach name : tests
endforeach
# The layout test is in the examples directory
# due to the way Cargo builds executables
# and the need to call it manually
foreach layout : ['us', 'nb']
test(
'test_layout_' + layout,
cargo_script,
args: [meson.source_root(), '', 'run', '--example', 'test_layout', layout]
)
endforeach
endif