mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 15:10:26 +01:00
quirks: add a test to make sure all our quirks files are listed in meson
Simple diff between the file list and what ls gives us in the quirks directory. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
1b1a9f636f
commit
72b3f657c4
2 changed files with 10 additions and 1 deletions
|
|
@ -259,8 +259,8 @@ quirks_data = [
|
|||
'quirks/30-vendor-microsoft.quirks',
|
||||
'quirks/30-vendor-razer.quirks',
|
||||
'quirks/30-vendor-synaptics.quirks',
|
||||
'quirks/30-vendor-wacom.quirks',
|
||||
'quirks/30-vendor-vmware.quirks',
|
||||
'quirks/30-vendor-wacom.quirks',
|
||||
'quirks/50-system-acer.quirks',
|
||||
'quirks/50-system-apple.quirks',
|
||||
'quirks/50-system-asus.quirks',
|
||||
|
|
@ -274,6 +274,10 @@ quirks_data = [
|
|||
'quirks/50-system-toshiba.quirks',
|
||||
]
|
||||
|
||||
test('quirks-in-meson.build',
|
||||
find_program('quirks/test-quirks-in-meson.build.sh'),
|
||||
args : [meson.source_root()])
|
||||
|
||||
config_h.set_quoted('LIBINPUT_QUIRKS_FILES', ':'.join(quirks_data))
|
||||
config_h.set_quoted('LIBINPUT_QUIRKS_SRCDIR', dir_src_quirks)
|
||||
|
||||
|
|
|
|||
5
quirks/test-quirks-in-meson.build.sh
Executable file
5
quirks/test-quirks-in-meson.build.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
pushd "$1" > /dev/null
|
||||
diff -u1 <(grep -o 'quirks/.*\.quirks' meson.build) <(ls quirks/*.quirks)
|
||||
popd > /dev/null
|
||||
Loading…
Add table
Reference in a new issue