Skip to content

Commit

Permalink
test: disable pmem2_map tests with memcheck until pmem#5600 is fixed
Browse files Browse the repository at this point in the history
Disable pmem2_mappmem2_map
/TEST[0,1,4,5,11,12,13,14,15,16,24,25,26,27,29,30]  with memcheck
until pmem#5600 is fixed.

Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
  • Loading branch information
grom72 committed May 22, 2023
1 parent 83975ef commit 1577893
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion src/test/pmem2_map/TESTS.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,18 @@ def run(self, ctx):
else:
ctx.exec('pmem2_map', self.test_case, dd.path)


# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST0(PMEM2_MAP):
"""map a O_RDWR file"""
test_case = "test_map_rdrw_file"
with_size = False


# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST1(PMEM2_MAP_DEVDAX):
"""DevDax map a O_RDWR file"""
test_case = "test_map_rdrw_file"
Expand All @@ -67,11 +72,17 @@ class TEST3(PMEM2_MAP_DEVDAX):
with_size = False


# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST4(PMEM2_MAP):
"""map valid memory ranges"""
test_case = "test_map_valid_ranges"


# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST5(PMEM2_MAP_DEVDAX):
"""DevDax map valid memory ranges"""
test_case = "test_map_valid_ranges"
Expand Down Expand Up @@ -102,33 +113,51 @@ class TEST10(PMEM2_MAP):
test_case = "test_map_invalid_fd"


# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST11(PMEM2_MAP):
"""unmap valid pmem2 mapping"""
test_case = "test_unmap_valid"


# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST12(PMEM2_MAP_DEVDAX):
"""DevDax unmap valid pmem2 mapping"""
test_case = "test_unmap_valid"


# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST13(PMEM2_MAP):
"""unmap a pmem2 mapping with an invalid length"""
test_case = "test_unmap_zero_length"


# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST14(PMEM2_MAP_DEVDAX):
"""DevDax unmap a pmem2 mapping with an invalid length"""
test_case = "test_unmap_zero_length"


# UnmapViewOfFile does not care about the address alignment
@t.windows_exclude
# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST15(PMEM2_MAP):
"""unmap a pmem2 mapping with an unaligned address"""
test_case = "test_unmap_unaligned_addr"


# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST16(PMEM2_MAP_DEVDAX):
"""DevDax unmap a pmem2 mapping with an unaligned address"""
test_case = "test_unmap_unaligned_addr"
Expand Down Expand Up @@ -177,6 +206,9 @@ class TEST23(PMEM2_MAP):
filesize = 0


# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST24(PMEM2_MAP):
"""
map a file with PMEM2_SHARED sharing, changes in the mapping are visible
Expand All @@ -186,6 +218,9 @@ class TEST24(PMEM2_MAP):
with_size = False


# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST25(PMEM2_MAP):
"""
map a file with PMEM2_PRIVATE sharing, changes in the mapping are not
Expand All @@ -195,6 +230,9 @@ class TEST25(PMEM2_MAP):
with_size = False


# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST26(PMEM2_MAP):
"""
map a file with PMEM2_PRIVATE sharing, changes in the mapping are not
Expand All @@ -204,6 +242,9 @@ class TEST26(PMEM2_MAP):
with_size = False


# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST27(PMEM2_MAP):
"""
map O_RDONLY file with PMEM2_PRIVATE sharing
Expand All @@ -220,6 +261,9 @@ class TEST28(PMEM2_MAP_DEVDAX):

@t.linux_only
@t.require_architectures('x86_64')
# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST29(PMEM2_MAP):
"""map alignment test for huge pages"""
test_case = "test_map_huge_alignment"
Expand All @@ -228,6 +272,9 @@ class TEST29(PMEM2_MAP):

@t.linux_only
@t.require_architectures('x86_64')
# XXX disable the test for `memcheck'
# until https://github.com/pmem/pmdk/issues/5600 is fixed.
@t.require_valgrind_disabled('memcheck')
class TEST30(PMEM2_MAP):
"""map alignment test for small pages"""
test_case = "test_map_huge_alignment"
Expand Down

0 comments on commit 1577893

Please sign in to comment.