Richard Hughes
8ef261af32
mtd: Add some self tests using mtdram
2022-03-18 12:55:44 +00:00
Richard Hughes
2012a42a1e
Do not use /var/run for the socket
...
The FHS says to use /run everywhere now, so use that to avoid confusion.
See https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s13.html
2022-03-07 13:24:58 +00:00
Richard Hughes
14cc2e7ee4
Do not hardcode the libexecdir to /usr/libexec
...
Fixes https://github.com/fwupd/fwupd/issues/4360
2022-03-07 13:24:58 +00:00
Mario Limonciello
fbac66b964
Don't let stderr fail the fwupdmgr-p2p test
2022-02-18 11:36:24 -06:00
Mario Limonciello
e5c00a8e98
trivial: quit fwupdmgr-p2p.sh on command failures
...
This will prevent a lingering daemon from influencing future tests
2022-02-18 11:36:24 -06:00
Richard Hughes
bb1bcce863
Allow fwupd to operate without a D-Bus daemon
...
This adds support for optionally using a UNIX domain socket where a
D-Bus daemon may not be running.
To use this, launch the daemon and clients with something like
`FWUPD_DBUS_SOCKET=/var/run/fwupd.sock fwupdmgr get-devices`
2022-01-31 14:05:23 +00:00
Ross Burton
a346c582cc
installed-tests: use sh instead of bash
...
fwupdmgr.sh uses [[ ]] tests, but none of the functionality offered by
them.
Use traditional [ ] tests, and switch the interpreter to /bin/sh.
2021-11-05 12:16:23 +00:00
Richard Hughes
2d00cda464
Remove PLUGINBUILDDIR and use G_TEST_SRCDIR and G_TEST_BUILDDIR instead
...
This allows us to override the location we load data files from, which
allows us to do more kinds of installed tests in the future.
Also, move the global data/tests content into the place that it is used
as it was getting impossible to manage.
2021-10-21 18:36:22 +01:00
Mario Limonciello
798d1ed3ee
trivial: update markdown for pre-commit style
2021-07-18 14:42:47 -05:00
Richard Hughes
769cbbf8af
Add support for the PHAT table
...
On Alterlake and newer hardware the Platform Health Assessment Record
data can be used by the IHV to debug why a specific capsule update
failed. Any custom firmware loaded by the OEM can be identified and
used to further debug the root cause.
2021-05-12 12:02:33 +01:00
Richard Hughes
5f31395fcf
trivial: Remove unused variable spotted by shellcheck
2021-01-12 16:54:37 +00:00
Mario Limonciello
5258f33585
trivial: fix ppc64le autopkgtest failure
...
nvme-self-test only runs if nvme is compiled, which it isn't for
ppc64le.
2020-11-18 08:21:00 +00:00
Mario Limonciello
db15442c7c
trivial: installed-tests: skip tests requiring network by default
...
Most of the installed tests will skip if files needed to be fetched
from network are not available. Do the same thing for fwupdmgr
tests.
Fixes : #2566
2020-11-09 15:11:30 -06:00
Mario Limonciello
406025ba56
trivial: ci: fix installed-tests for test plugin
...
This has been broken for a while and missed various changes.
* Reading firmware version
* Passing `-y` into build
* New verify / verify-image split
2020-10-06 13:34:41 -05:00
Mario Limonciello
5de5dd3582
Install the installed tests
...
Move binaries out of fwupd tree to https://github.com/fwupd/fwupd-test-firmware
Fixes some of https://github.com/fwupd/fwupd/issues/1956
2020-08-28 10:10:43 -05:00
Richard Hughes
85226fd9d1
Remove potentially problematic language
...
Red Hat wants to drive an initiative in correcting problematic and potentially
divisive language in open source projects. These naming conventions and
descriptive phrases are hurtful and offensive to many of our colleagues across
the open source universe.
See https://www.redhat.com/en/blog/making-open-source-more-inclusive-eradicating-problematic-language
2020-06-30 17:31:17 +01:00
Mario Limonciello
c727742df3
trivial: remove references to hardware.py ( Fixes : #2007 )
2020-04-15 20:27:21 -05:00
Jan Tojnar
2f12e38e61
build: Re-use installed tests directory
...
It will make it easier for downstreams to patch the path.
2020-04-15 20:16:46 +01:00
Richard Hughes
f3966c784d
Modularize the hardware tests
2020-04-07 16:09:47 +01:00
Mario Limonciello
19d948ea39
trivial: installed-tests: try to display journal for failed tests
...
This should help make debugging from CI infrastructures such as
autopkgtest easier.
2019-12-01 06:23:27 -06:00
Mario Limonciello
708f490075
trivial: installed-tests: explicitly choose webcam device ID
...
In some CI infrastructures other devices show up and so the webcam
is not automatically picked.
```
Enabling fwupd-tests remote...
Successfully enabled remote
Update the device hash database...
Choose a device:
0. Cancel
1. 08d460be0f1f9f128413f816022a6439e0078018 (Integrated Webcam™)
2. bbbf1ce3d1cf15550c3760b354592040292415bb (Virtio network device)
Request canceled
FAIL: fwupd/fwupdmgr.test (Child process exited with code 2)
SUMMARY: total=1; passed=0; skipped=0; failed=1; user=0.0s; system=0.0s; maxrss=11736
FAIL: fwupd/fwupdmgr.test (Child process exited with code 2)
autopkgtest [22:09:32]: test ci: -----------------------]
ci FAIL non-zero exit status 2
autopkgtest [22:09:33]: test ci: - - - - - - - - - - results - - - - - - - - - -
autopkgtest [22:09:33]: @@@@@@@@@@@@@@@@@@@@ summary
ci FAIL non-zero exit status 2
```
2019-12-01 06:23:27 -06:00
Mario Limonciello
5123d4333e
Rename unifying plugin to logitech-hidpp ( Fixes : #1329 )
2019-11-04 13:35:36 -06:00
Richard Hughes
b6f4a1697e
trivial: Fix two bugs in the hardware self tests script
2019-04-30 09:26:48 +01:00
Richard Hughes
705402cebd
trivial: Do not offer to report firmware for the installed tests
2019-03-21 15:54:52 +00:00
Mario Limonciello
15e4b0caaf
installed-tests: Adjust to actually use a remote for installed tests
...
By using a remote, this should allow using gnome-software to do the
installed tests without hacking around much.
Fixes: https://github.com/hughsie/fwupd/issues/862
Fixes: https://github.com/hughsie/fwupd/issues/809
2018-11-29 09:40:06 -06:00
Richard Hughes
c0dd011eaf
trivial: Fix the DFU A3BU self test failure
...
The .cab file was re-uploaded with the same version to the LVFS to test the
LVFS::InhibitDownload functionality, but of course the SHA1 hash changed.
2018-08-31 09:58:40 +01:00
Mario Limonciello
4eff978638
trivial: make gcab a build dependency
...
Fixes #574
2018-06-28 08:54:22 -05:00
Richard Hughes
411fcbde43
trivial: Add a hardware test for the AIAIAI H05
2018-06-28 13:29:37 +01:00
Richard Hughes
e4ad057553
trivial: Add a hardware test for the 8Bitdo SF30 Pro hamepad
2018-06-28 13:29:37 +01:00
Richard Hughes
0b522aef96
colorhug: Do not require libcolorhug to build
...
Requiring colord to be built before fwupd makes it hard to build packages.
The HID-based flashing protocol is stable and documented, so there's no need
to use an external library for this now.
2018-06-02 21:43:20 +01:00
Mario Limonciello
51308e648a
Adjust all licensing to LGPL 2.1+ ( Closes : #526 )
2018-05-29 09:03:13 +01:00
Richard Hughes
50a6f7095c
Offer to reboot when processing an offline update
...
In real user tests this was a pain point where we had to manually explain that
they needed to reboot.
2018-02-03 12:12:15 +00:00
Mario Limonciello
7873532368
Redirect all stderr from installed tests to stdout
...
The previous fix (db6ed9ede3
) didn't
do a good enough job and autopkgtest was still failing on another
individual test.
This makes sure that stderr will never conflict with autopkgtest
in the future.
2018-01-29 14:35:11 -06:00
Mario Limonciello
951f2b548a
Revert "data/installed_tests: Redirect stderr to stdout for one of the tests"
...
This reverts commit db6ed9ede3
.
2018-01-29 14:34:57 -06:00
Mario Limonciello
db6ed9ede3
data/installed_tests: Redirect stderr to stdout for one of the tests
...
The autopkgtest test cases in Debian and Ubuntu are failing due to
output present in stderr.
fwupdmgr behavior however is that it's expected that this test should
show output on stderr for this item.
2018-01-26 10:35:06 -06:00
Richard Hughes
f06ba475b1
Ask the user to refresh metadata when it is very old
...
Also allow skipping the questions for non-interactive scripts.
2018-01-17 20:22:18 +00:00
Richard Hughes
4713f23f7f
dfu: Fix attaching AVR32 devices like the XMEGA
...
Also, add a self test that uses the XMEGA A3BU XPLAINED board, see
https://github.com/hughsie/fwupd-test-firmware/tree/master/AVR/XMEGA-A3BU-XPLAINED-1.23
for more details about how to build the bootloader and firmware.
2017-11-23 18:48:03 +00:00
Jan Tojnar
cc9f934787
build: Refactor directory selection
...
Previously, the various install paths were obtained using get_option
as needed.
This patch unifies the directory selection inside the top-level meson
file as requested in https://github.com/hughsie/colord/pull/62 .
2017-11-17 17:11:51 +00:00
Richard Hughes
5b02c70d93
Move the PIC18 firmware to the fwupd-test-firmware project
2017-11-16 17:49:30 +00:00
Richard Hughes
c0d09c2576
Move the AT90USBKEY firmware to the fwupd-test-firmware project
2017-11-16 17:34:33 +00:00
Richard Hughes
352ba1b833
dfu: Add support for the original AVR DFU protocol
...
This allows us to flash hardware like the Retrode and other devices using chips
like the AT90USB1287.
The test files can be re-generated using the sample code found here:
https://github.com/hughsie/fwupd-test-firmware and are designed
to be used on the AT90USBKEY2 development board.
2017-11-16 15:30:30 +00:00
Richard Hughes
bf186f26c2
trivial: Use the runtime GUID for the SFC30 gamepad in the hardware tests
...
To verify, this matches the <firmware> provide in the upstream metainfo file.
2017-11-14 16:01:12 +00:00
Richard Hughes
06a4fe4d9a
trivial: Add a hardware tests for two 8Bitdo devices
...
This only installs one version on to the hardware as a manual step is required.
2017-11-08 11:02:38 +00:00
Richard Hughes
82a025c865
trivial: Add a hardware test for the ColorHug device
2017-11-07 20:09:41 +00:00
Richard Hughes
9c0405576b
trivial: Add installed tests for the Jabra Speak devices
...
This makes sure the tests are run on the release-time CI server and prevents
regressions between versions.
2017-10-30 13:37:11 +00:00
Richard Hughes
e56a687d4b
trivial: Use the new location for firmware
2017-10-12 09:17:14 +01:00
Richard Hughes
76843bc836
trivial: Fix the hardware self tests to work with the new API
2017-10-12 09:15:53 +01:00
Richard Hughes
94110f5983
Remove some deprecated #define names and bump the soname
...
Also, bump soname as we're going to clean up a lot of things now.
Many thanks to Mario Limonciello for all the Debian-specific changes.
2017-09-28 09:23:52 +01:00
Richard Hughes
55e0207b96
trivial: Add installed firmware tests for the K780
2017-07-03 20:17:43 +01:00
Richard Hughes
c4195b075d
trivial: Add an installed test for the K780
2017-06-28 12:05:32 +01:00