From Fedora Project Wiki
Description
This test case ensures the proper functioning of bolt
, the manager for Thunderbolt devices.
Setup
- Ensure you have a Fedora system.
- Install
bolt
:sudo dnf install bolt
. - Ensure your computer has a Thunderbolt port.
- Have a Thunderbolt device ready for connection.
How to test
- Open a terminal.
- Check the current status of Thunderbolt devices with the command:
boltctl list
. No devices should be listed if none are connected. - Connect your Thunderbolt device to the computer.
- Run
boltctl list
again. Your device should now appear in the list, potentially in a "disconnected" state. - Monitor the device's state using:
boltctl monitor
. This command will display changes to the device's state. - If the device is not yet authorized, authorize it using:
boltctl authorize [id]
, where [id] is the unique identifier for your Thunderbolt device from theboltctl list
command. - Once authorized, use the Thunderbolt device as intended (e.g., data transfer or display output).
- Disconnect the Thunderbolt device.
Expected Results
- The
boltctl list
command should accurately reflect the state of Thunderbolt devices connected to the system. - The
boltctl monitor
command should display state changes as the device connects, authorizes, and disconnects. - The device should be successfully authorized with the
boltctl authorize
command. - The Thunderbolt device should function correctly once authorized, providing expected functionalities such as data transfer or display output.
- On disconnecting, the device should no longer appear as "connected" in the
boltctl list
.
Optional
For deeper testing:
- Connect multiple Thunderbolt devices and ensure
bolt
can manage and display statuses for all. - Ensure that booting the system with a Thunderbolt device already connected shows the device correctly in
boltctl list
. - Test with Thunderbolt devices that offer different functionalities (e.g., storage versus display) to ensure all device types are supported.
- Check the behavior when unplugging a device without "safe removal" or during active data transfer.