trivial: debian: install device tests only if found during build

This commit is contained in:
Mario Limonciello 2023-02-26 08:48:27 -06:00
parent d5d12ec5ce
commit 8eb67d1839
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,6 @@
#find them. for more information see:
#https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872458
usr/share/installed-tests/*
usr/share/fwupd/device-tests/*.json
usr/libexec/installed-tests/fwupd/fwupd.sh
usr/libexec/installed-tests/fwupd/*-self-test
debian/lintian/fwupd-tests usr/share/lintian/overrides

3
debian/rules vendored
View File

@ -72,6 +72,9 @@ override_dh_install:
#install docs (maybe)
[ ! -d debian/tmp/usr/share/doc ] || dh_install -pfwupd-doc usr/share/doc
#install devices-tests (maybe)
[ ! -d debian/tmp/usr/share/fwupd/device-tests/ ] || dh_install -pfwupd-tests usr/share/fwupd/device-tests
dh_missing -a --fail-missing
#this is placed in fwupd-tests