From 6db2a4057c4ca670eef28f4d46af0684ef56c07e Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Thu, 22 Jun 2017 13:59:14 -0500 Subject: [PATCH] debian: split out the test suite to it's own package Most people won't be running the installed-tests, but make it easy enough for them to get at them if they want to --- contrib/debian/control | 23 +++++++++++++++++++++++ contrib/debian/fwupd-tests.install | 2 ++ contrib/debian/fwupd.install | 1 - contrib/debian/rules | 2 ++ 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 contrib/debian/fwupd-tests.install diff --git a/contrib/debian/control b/contrib/debian/control index 335713a87..1612b3428 100644 --- a/contrib/debian/control +++ b/contrib/debian/control @@ -106,6 +106,29 @@ Description: Firmware update daemon ColorHug are supported. More formats may be supported in the future. See for details +Package: fwupd-tests +Architecture: all +Depends: ${misc:Depends}, + ca-certificates, + dbus-x11, + fwupd, + gnome-desktop-testing, + python3-gi, + python3-requests, +Breaks: fwupd (<< 0.9.4-1) +Replaces: fwupd (<< 0.9.4-1) +Multi-Arch: foreign +Description: Firmware update daemon + fwupd is a daemon to allow session software to update device firmware. + You can either use a GUI software manager like GNOME Software to view and + apply updates, the command-line tool or the system D-Bus interface directly. + Currently, firmware updates using the UEFI capsule format and for the + ColorHug are supported. More formats may be supported in the future. + See for details + . + This package provides a set of installed tests that can be run to validate + the daemon in a continuous integration system. + Package: fwupd-doc Section: doc Architecture: all diff --git a/contrib/debian/fwupd-tests.install b/contrib/debian/fwupd-tests.install new file mode 100644 index 000000000..9bdfc6351 --- /dev/null +++ b/contrib/debian/fwupd-tests.install @@ -0,0 +1,2 @@ +usr/share/installed-tests/* +usr/lib/*/fwupd-plugins-2/libfu_plugin_test.so diff --git a/contrib/debian/fwupd.install b/contrib/debian/fwupd.install index 9bb7988f8..bc69052aa 100644 --- a/contrib/debian/fwupd.install +++ b/contrib/debian/fwupd.install @@ -5,7 +5,6 @@ usr/share/app-info/* usr/share/dbus-1/* usr/share/polkit-1/* usr/share/locale -usr/share/installed-tests/* usr/share/metainfo/* usr/lib/*/fwupd usr/share/man/man1/* diff --git a/contrib/debian/rules b/contrib/debian/rules index d53133553..8ffedeb67 100755 --- a/contrib/debian/rules +++ b/contrib/debian/rules @@ -33,6 +33,8 @@ override_dh_install: sed -i 's,wheel,sudo,' ./debian/tmp/usr/share/polkit-1/rules.d/org.freedesktop.fwupd.rules dh_install dh_missing --fail-missing + #this is placed in fwupd-tests + rm -f debian/fwupd/usr/lib/*/fwupd-plugins-2/libfu_plugin_test.so override_dh_strip_nondeterminism: dh_strip_nondeterminism -Xfirmware-example.xml.gz