Commit bacbac12 authored by Richard Hughes's avatar Richard Hughes
Browse files

Add some installed tests that use the daemon

Functionality like this would have prevented the "(shh)" bug being included in
the last release.
parent 18b73a4b
......@@ -5,6 +5,7 @@ usr/share/app-info/*
usr/share/dbus-1/*
usr/share/polkit-1/*
usr/share/locale
usr/share/installed-tests/*
usr/lib/*/fwupd
usr/share/man/man1/*
lib/systemd/system/*
......
......@@ -106,6 +106,13 @@ BuildArch: noarch
%description labels
Rendered labels for display during system firmware updates.
%package tests
Summary: Data files for installed tests
BuildArch: noarch
%description tests
Data files for installed tests.
%prep
%setup -q
......@@ -235,6 +242,12 @@ mkdir -p --mode=0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/fwupd/gnupg
%files labels
%{_datadir}/locale/*/LC_IMAGES/fwupd*
%files tests
%dir %{_datadir}/installed-tests/fwupd
%{_datadir}/installed-tests/fwupd/firmware-example.xml.gz
%{_datadir}/installed-tests/fwupd/firmware-example.xml.gz.asc
%{_datadir}/installed-tests/fwupd/*.test
%changelog
* #LONGDATE# Richard Hughes <richard@hughsie.com> #VERSION#-0.#BUILD##ALPHATAG#
- Update from git
......
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iQEcBAABAgAGBQJZQRJcAAoJEEim2A5FOLrC0sYH/inQER1TiEWDknclJkz2yinK
UPsq00tPZzQMnn7e9N6iqEugeLVxgYwtkaDfnwXJDRsHmEYSrw4xlvQ96UIgqFZQ
YeoY0MKs80HXYD3zzzAYlujvWAjVgb4XKBEpWzFn1R/KIRg2babuSYA5sr25+May
BhlNvuFs/gdioTJa3OBtdo0nUAkPZMsaXPrLk6PC/ABhd3gvC0z71CRRcyJH7ntn
+FBU/+3TxauuqMPsmmj8KHhPXjwXPHQAISyEzZaOOuC7gO2nUe5BU2Hr1QJTx4Wu
FFPLfz25b95hRp78LFcEM+wpjuq+wcU1NarpDdKAFHaTqmvhYG8YTnfRXuoOAfs=
=hyxn
-----END PGP SIGNATURE-----
[Test]
Type=session
Exec=sh -c "@bindir@/fwupdmgr get-devices"
[Test]
Type=session
Exec=sh -c "@bindir@/fwupdmgr get-updates"
[Test]
Type=session
Exec=sh -c "@bindir@/fwupdmgr refresh @installedtestsdir@/firmware-example.xml.gz @installedtestsdir@/firmware-example.xml.gz.asc"
[Test]
Type=session
Exec=sh -c "@bindir@/fwupdmgr refresh"
con2 = configuration_data()
con2.set('installedtestsdir',
join_paths(get_option('prefix'),
get_option('datadir'),
'installed-tests', 'fwupd'))
con2.set('bindir',
join_paths(get_option('prefix'),
get_option('bindir')))
testfiles = [
'fwupdmgr-get-devices.test',
'fwupdmgr-get-updates.test',
'fwupdmgr-refresh-offline.test',
'fwupdmgr-refresh.test',
]
foreach arg: testfiles
configure_file(
input : arg + '.in',
output : arg,
configuration : con2,
install: true,
install_dir: join_paths('share', 'installed-tests', 'fwupd'),
)
endforeach
install_data([
'firmware-example.xml.gz',
'firmware-example.xml.gz.asc',
],
install_dir : 'share/installed-tests/fwupd',
)
subdir('tests')
subdir('installed-tests')
subdir('pki')
install_data(['fwupd.conf'],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment