How do I create a test that requires running existing Linux utilities that are not currently installed?
Refer to the steps for a “no cross-compilation” test first. For this additional component, you could add it to the image, but this is highly discouraged, especially if only your test is likely to use the tool. Instead, it’s better to create a deps directory for the tool which builds it and installs it. A simple example is storage_SsdDetection which installs the hdparm utility.