avocado-framework-tests / avocado-misc-tests

Community maintained Avocado tests repository
Other
22 stars 123 forks source link

nx-gzip/nx-gzip: Rewrite processor version check logic #2868

Closed sacsant closed 3 months ago

sacsant commented 3 months ago

Running the test on power11 system fails even though it is supported. To support this and future generations of IBM Power processors rewrite the processor family check logic. Instead of checking for processor version, add a check to detect nx-gzip support.

While at it, also remove the condition to execute configure command.

Signed-off-by: Sachin Sant sachinp@linux.ibm.com

sacsant commented 3 months ago

Running this test on power11 fails with : (01/16) nx_gzip/nx_gzip.py:NXGZipTests.test_inflate_deflate: STARTED (01/16) nx_gzip/nx_gzip.py:NXGZipTests.test_inflate_deflate: CANCEL: NX-GZIP tests are supported only onPowerNV(POWER9) or POWER10 and onwards. (0.01 s) (02/16) nx_gzip/nx_gzip.py:NXGZipTests.test_basic_comp_decomp: STARTED (02/16) nx_gzip/nx_gzip.py:NXGZipTests.test_basic_comp_decomp: CANCEL: NX-GZIP tests are supported only onPowerNV(POWER9) or POWER10 and onwards. (0.01 s) …..

After the change: (01/16) nx_gzip/nx_gzip.py:NXGZipTests.test_inflate_deflate: STARTED (01/16) nx_gzip/nx_gzip.py:NXGZipTests.test_inflate_deflate: PASS (124.04 s) (02/16) nx_gzip/nx_gzip.py:NXGZipTests.test_basic_comp_decomp: STARTED (02/16) nx_gzip/nx_gzip.py:NXGZipTests.test_basic_comp_decomp: PASS (4.44 s) (03/16) nx_gzip/nx_gzip.py:NXGZipTests.test_kernel_oops: STARTED (03/16) nx_gzip/nx_gzip.py:NXGZipTests.test_kernel_oops: PASS (4.06 s) (04/16) nx_gzip/nx_gzip.py:NXGZipTests.test_zpipe: STARTED ……