mirror of
https://github.com/anrieff/libcpuid
synced 2025-10-03 11:01:30 +00:00
Add to makefile: "make fix-tests" to fix failing tests.
The last change to flags detection caused a bunch of tests to fail. The reason is that they are bogus, all recent Intel chips don't have RDTSCP indicated in the test files, whereas they have it in reality. I figured it will be easier to add "--fix" option to run_tests.py, rather than fixing each testfile by hand. This is also extended in the Makefile: "make test" runs the tests and reports discrepancies. "make fix-tests" fixes any offending tests. This blindly assumes that libcpuid is sane.
This commit is contained in:
parent
fc4ff90ea8
commit
a716585cc0
2 changed files with 25 additions and 4 deletions
|
@ -11,3 +11,6 @@ consistency:
|
|||
|
||||
test:
|
||||
$(top_srcdir)/tests/run_tests.py $(top_srcdir)/cpuid_tool/cpuid_tool $(top_srcdir)/tests
|
||||
|
||||
fix-tests:
|
||||
$(top_srcdir)/tests/run_tests.py $(top_srcdir)/cpuid_tool/cpuid_tool $(top_srcdir)/tests --fix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue