Enhancement Proposal
In some IoT devices, memory is shared with hardware accelerators. The current test compares the memory size from lshw with /proc/meminfo. However, this test fails when the system shares memory. For example, my device has 2 GB of RAM, but it shares 512 MB with the AI accelerator.
test job log
Results:
/proc/meminfo reports: 1.25GiB
lshw reports: 1.88GiB
FAIL: Meminfo reports 675942400 less than lshw, a difference of 33.57%. Only a variance of 25% in reported memory is allowed.