tests/qtest/x86: check for availability of older cpu models before running tests
authorAni Sinha <anisinha@redhat.com>
Mon, 10 Jun 2024 15:53:00 +0000 (21:23 +0530)
committerThomas Huth <thuth@redhat.com>
Wed, 12 Jun 2024 08:21:44 +0000 (10:21 +0200)
commite08f6e0b9fcf708f641bbb8839b7e30d857989d9
treef8d701b33a089c8db85df2abf49d7398f47ca278
parentf43f8abe457a4aa32441bd190638e1118d291c42
tests/qtest/x86: check for availability of older cpu models before running tests

It is better to check if some older cpu models like 486, athlon, pentium,
penryn, phenom, core2duo etc are available before running their corresponding
tests. Some downstream distributions may no longer support these older cpu
models.

Signature of add_feature_test() has been modified to return void as
FeatureTestArgs* was not used by the caller.

One minor correction. Replaced 'phenom' with '486' in the test
'x86/cpuid/auto-level/phenom/arat' matching the cpu used.

Signed-off-by: Ani Sinha <anisinha@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20240610155303.7933-4-anisinha@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/test-x86-cpuid-compat.c