Skip to content

Commit

Permalink
test: disable avx512f tests under Valgrind
Browse files Browse the repository at this point in the history
Disable avx512f tests until Valgrind until
Valigrind will provide support for avx512f instruction.

See: pmem#5640

Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
  • Loading branch information
grom72 committed May 18, 2023
1 parent 850a099 commit ff6a07d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/test/pmem2_mem_ext/TESTS.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!../env.py
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2020-2022, Intel Corporation
# Copyright 2020-2023, Intel Corporation
#

import testframework as t
Expand Down Expand Up @@ -115,6 +115,13 @@ def setup(self, ctx):
ret = tools.Tools(ctx.env, ctx.build).cpufd()
self.check_arch(ctx.variant(), ret.returncode)

# All tests with variant VARIANT_AVX512F are disabled under Valgrind
# until the issue https://github.com/pmem/pmdk/issues/5640 is fixed.
if ctx.valgrind is not None:
if ctx.valgrind.tool.name != "NONE":
if ctx.variant() == VARIANT_AVX512F:
raise futils.Skip("AVX512F unavailable under Valigrind")

def check_arch(self, variant, available_arch):
if variant == VARIANT_MOVDIR64B:
if available_arch < MOVDIR64B:
Expand Down

0 comments on commit ff6a07d

Please sign in to comment.