mirror of
https://github.com/systemd/systemd.git
synced 2024-12-26 03:22:00 +03:00
938be08926
Back in 08318a2c5a
, value "false" was enabled for
'-Dtests=', but various tests were not conditionalized properly. So even with
-Dtests=false -Dslow-tests=false we'd run 120 tests. Let's make this consistent.
50 lines
1.4 KiB
Meson
50 lines
1.4 KiB
Meson
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
hwdb_files = files('''
|
|
20-pci-vendor-model.hwdb
|
|
20-pci-classes.hwdb
|
|
20-usb-vendor-model.hwdb
|
|
20-usb-classes.hwdb
|
|
20-sdio-vendor-model.hwdb
|
|
20-sdio-classes.hwdb
|
|
20-bluetooth-vendor-product.hwdb
|
|
20-acpi-vendor.hwdb
|
|
20-OUI.hwdb
|
|
20-net-ifname.hwdb
|
|
20-vmbus-class.hwdb
|
|
60-evdev.hwdb
|
|
60-keyboard.hwdb
|
|
60-sensor.hwdb
|
|
70-joystick.hwdb
|
|
70-mouse.hwdb
|
|
70-pointingstick.hwdb
|
|
70-touchpad.hwdb
|
|
'''.split())
|
|
|
|
if conf.get('ENABLE_HWDB') == 1
|
|
install_data(hwdb_files,
|
|
install_dir : udevhwdbdir)
|
|
|
|
meson.add_install_script('sh', '-c',
|
|
mkdir_p.format(join_paths(sysconfdir, 'udev/hwdb.d')))
|
|
|
|
meson.add_install_script('sh', '-c',
|
|
'test -n "$DESTDIR" || @0@/systemd-hwdb update'
|
|
.format(rootbindir))
|
|
endif
|
|
|
|
############################################################
|
|
|
|
parse_hwdb_py = find_program('parse_hwdb.py')
|
|
if want_tests != 'false'
|
|
test('parse-hwdb',
|
|
parse_hwdb_py,
|
|
timeout : 90)
|
|
endif
|
|
|
|
############################################################
|
|
|
|
run_target(
|
|
'hwdb-update',
|
|
command : [hwdb_update_sh, meson.current_source_dir()])
|