fwupd/plugins/test
Richard Hughes 40cd18fa97 Allow using a per-device global percentage completion
It's actually quite hard to build a front-end for fwupd at the moment
as you're never sure when the progress bar is going to zip back to 0%
and start all over again. Some plugins go 0..100% for write, others
go 0..100% for erase, then again for write, then *again* for verify.

By creating a helper object we can easily split up the progress of the
specific task, e.g. write_firmware().

We can encode at the plugin level "the erase takes 50% of the time, the
write takes 40% and the read takes 10%". This means we can have a
progressbar which goes up just once at a consistent speed.
2021-09-13 14:28:15 +01:00
..
fu-plugin-invalid.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-plugin-test-ble.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-plugin-test.c Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01:00
fu-test-ble-device.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-test-ble-device.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
meson.build trivial: Fix build failure of missing fu-hash.h 2021-05-20 11:12:20 +01:00
README.md trivial: update markdown for pre-commit style 2021-07-18 14:42:47 -05:00
test-ble.quirk Simplify the quirk file format 2021-03-03 08:30:34 +00:00

Test

Introduction

This plugin is used when running the self tests in the fwupd project.

GUID Generation

The devices created by this plugin use hardcoded GUIDs that do not correspond to any kind of DeviceInstanceId values.

In other cases devices use the standard BLE DeviceInstanceId values, e.g.

  • USB\VID_2DC8&PID_AB11

Vendor ID Security

The fake device is only for local testing and thus requires no vendor ID set.

External Interface Access

This plugin requires no extra access.