lshw

lshw is a small tool to extract detailed information on the hardware configuration of the machine.

What It Tests

  • lshw-run: validate lshw could be executed successfully

  • lshw-system: validate lshw -class system could be executed successfully

  • lshw-bus: validate lshw -class bus could be executed successfully

  • lshw-processor: validate lshw -class processor could be executed successfully

  • lshw-memory: validate lshw -class memory could be executed successfully

  • lshw-network: validate lshw -class network could be executed successfully

Preconditions

  • For ostree enabled image, it shall be unlocked via ostree admin unlock --hotfix

Test Parameters

Parameter

Default

Description

SKIP_INSTALL

"False"

skip the install

CLASSES

"system bus processor memory network"

The classes to be listed by lshw

Test Steps

cd ./automated/linux/lshw/
./lshw.sh -s "${SKIP_INSTALL}" -c "${CLASSES}"

Refer to lshw.yaml for complete test definition and execution details.

Expected Results

  • All the lshw commands are executed successfully, and the log files are generated.

References