@@ -164,20 +164,35 @@ configure_file(input: 'tools/65-libwacom.rules.in',
164164 install_dir : dir_udev / ' rules.d' )
165165
166166# The non-installed version of list-devices uses the git tree's data files
167- executable (' debug-device' ,
168- ' tools/debug-device.c' ,
169- dependencies : [dep_libwacom, dep_glib],
170- include_directories : [includes_src],
171- c_args : tools_cflags,
172- install : false )
167+ debug_device = executable (' debug-device' ,
168+ ' tools/debug-device.c' ,
169+ dependencies : [dep_libwacom, dep_glib],
170+ include_directories : [includes_src],
171+ c_args : tools_cflags,
172+ install : false )
173+ testdevices = {
174+ ' huion-h640p' : ' usb|256c|006d|HUION Huion Tablet_H640P Pad' ,
175+ ' huion-dial-2' : ' usb|256c|006e||HUION_T216' ,
176+ ' wacom-cintiq-pro-13' : ' usb|056a|034f' ,
177+ ' wacom-intuos4' : ' usb|056a|00bb' ,
178+ ' wacom-isdv4-0148' : ' usb|056a|0148' ,
179+ }
180+ foreach name : testdevices.keys()
181+ match = testdevices[name]
182+ test (f' debug-device-@name@' ,
183+ debug_device,
184+ args : [match],
185+ suite : [' all' ])
186+ endforeach
173187
174188# The non-installed version of list-devices uses the git tree's data files
175- executable (' list-devices' ,
176- ' tools/list-devices.c' ,
177- dependencies : [dep_libwacom, dep_glib],
178- include_directories : [includes_src],
179- c_args : tools_cflags,
180- install : false )
189+ list_devices = executable (' list-devices' ,
190+ ' tools/list-devices.c' ,
191+ dependencies : [dep_libwacom, dep_glib],
192+ include_directories : [includes_src],
193+ c_args : tools_cflags,
194+ install : false )
195+ test (' list-devices' , list_devices, suite : [' all' ])
181196
182197# The installed version of list-devices uses the installed data files
183198executable (' libwacom-list-devices' ,
@@ -186,12 +201,13 @@ executable('libwacom-list-devices',
186201 include_directories : [includes_src],
187202 install : true )
188203
189- executable (' list-compatible-styli' ,
190- ' tools/list-compatible-styli.c' ,
191- dependencies : [dep_libwacom, dep_glib],
192- include_directories : [includes_src],
193- c_args : tools_cflags,
194- install : false )
204+ list_compatible_styli = executable (' list-compatible-styli' ,
205+ ' tools/list-compatible-styli.c' ,
206+ dependencies : [dep_libwacom, dep_glib],
207+ include_directories : [includes_src],
208+ c_args : tools_cflags,
209+ install : false )
210+ test (' list-compatible-styli' , list_compatible_styli, suite : [' all' ])
195211
196212install_man (configure_file (input : ' tools/libwacom-list-local-devices.man' ,
197213 output : ' @BASENAME@.1' ,
0 commit comments