After any change to the detection routines or match tables, it's always
a good idea to run make test. If some test fails, and you're confident
that the test is wrong and needs fixing, run make fix-tests.
You can also add a new test (which is basically a file containing
the raw CPUID data and the expected decoded items) by using
tests/create_test.py. The workflow there is as follows:
- Run
cpuid_toolwith no arguments. It will tell you that it has written a pair of files,raw.txtandreport.txt. Ensure thatreport.txtcontains meaningful data. - Run
./tests/create_test.py raw.txt report.txt > my-cpu.test - Use a proper descriptive name for the test, like the CPU brand name in kebab-case
(look into
tests/amdandtests/intelto get an idea), and copy your test file to an appropriate place within the tests directory hierarchy.
AIDA64 CPUID dumps (mostly found on InstLatx64) are also supported.
To create a new test from InstLatx64, you can use the create_test_from_instlatx64.sh script.
For non-developers, who still want to contribute tests for the project, use this page to report misdetections or new CPUs that libcpuid doesn't handle well yet.