fwupd/plugins/test
Richard Hughes 068cff6111 test: Allow setting plugin parameters using an environment variable
Based on a patch by Twain Byrnes <binarynewts@google.com>, many thanks.

Use this to test:

sudo FWUPD_TEST_PLUGIN_XML="<config><delay_decompress_ms>100</delay_decompress_ms></config>" \
./src/fwupdtool --plugins test get-devices -v
2021-08-05 08:12:58 +01:00
..
fu-plugin-invalid.c trivial: fixup includes for a variety of plugins 2021-06-14 10:12:45 +01:00
fu-plugin-test-ble.c trivial: fixup includes for a variety of plugins 2021-06-14 10:12:45 +01:00
fu-plugin-test.c test: Allow setting plugin parameters using an environment variable 2021-08-05 08:12:58 +01:00
fu-test-ble-device.c Support more than one protocol for a given device 2021-03-01 16:14:36 +00:00
fu-test-ble-device.h trivial: fixup includes for a variety of plugins 2021-06-14 10:12:45 +01: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.