Skip to content
Snippets Groups Projects
Unverified Commit d0166524 authored by Marcin Ślusarz's avatar Marcin Ślusarz Committed by GitHub
Browse files

Merge pull request #4499 from Greg091/disabled-valgrind-defrag-tests

test: disable Valgrind in specified defrag test cases
parents 1947982d eeef2e1b
No related branches found
No related tags found
No related merge requests found
...@@ -32,10 +32,14 @@ ...@@ -32,10 +32,14 @@
# #
import testframework as t import testframework as t
import valgrind as vg
class ObjDefragAdvanced(t.BaseTest): class ObjDefragAdvanced(t.BaseTest):
test_type = t.Short test_type = t.Short
# These tests last too long under drd
# Exceptions: test no. 2
drd = t.DISABLE
max_nodes = 50 max_nodes = 50
max_edges = 10 max_edges = 10
...@@ -75,6 +79,10 @@ class TEST1(ObjDefragAdvanced): ...@@ -75,6 +79,10 @@ class TEST1(ObjDefragAdvanced):
class TEST2(ObjDefragAdvanced): class TEST2(ObjDefragAdvanced):
test_type = t.Medium test_type = t.Medium
fs = t.Pmem fs = t.Pmem
# This test last too long under helgrind
helgrind = t.DISABLE
# Restore defaults
drd = vg.AUTO
max_nodes = 512 max_nodes = 512
max_edges = 64 max_edges = 64
...@@ -117,6 +125,11 @@ class TEST4(ObjDefragAdvancedMt): ...@@ -117,6 +125,11 @@ class TEST4(ObjDefragAdvancedMt):
class TEST5(ObjDefragAdvancedMt): class TEST5(ObjDefragAdvancedMt):
# This test last too long under helgrind/memcheck/pmemcheck
helgrind = t.DISABLE
memcheck = t.DISABLE
pmemcheck = t.DISABLE
max_nodes = 256 max_nodes = 256
max_edges = 32 max_edges = 32
graph_copies = 5 graph_copies = 5
......
#!../env.py #!../env.py
# #
# Copyright 2019, Intel Corporation # Copyright 2019-2020, Intel Corporation
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions # modification, are permitted provided that the following conditions
...@@ -34,24 +34,65 @@ ...@@ -34,24 +34,65 @@
from os import path from os import path
import testframework as t import testframework as t
import valgrind as vg
class BASE(t.BaseTest): class BASE(t.BaseTest):
test_type = t.Long test_type = t.Long
fs = t.Pmem fs = t.Pmem
build = t.Release build = t.Release
# These tests last too long under drd/helgrind/memcheck/pmemcheck
# Exceptions: workloads no. 6 and 8 under memcheck/pmemcheck
drd = t.DISABLE
helgrind = t.DISABLE
memcheck = t.DISABLE
pmemcheck = t.DISABLE
seed = '12345' seed = '12345'
defrag = '1'
def run(self, ctx): def run(self, ctx):
testfile = path.join(ctx.testdir, 'testfile') testfile = path.join(ctx.testdir, 'testfile')
ctx.env = {'PMEM_NO_FLUSH': '1'} # this test is extremely long otherwise # this test is extremely long otherwise
ctx.env = {'PMEM_NO_FLUSH': '1'}
ctx.exec('obj_fragmentation2', ctx.exec('obj_fragmentation2',
testfile, self.workload, self.seed, self.defrag) testfile, str(self.testnum), self.seed, self.defrag)
testnum = 0 class TEST0(BASE):
for workload in ['0', '1', '2', '3', '4', '5', '6', '7', '8']: pass
for defrag in ['1']:
type("TEST" + str(testnum), (BASE, ),
{"workload": workload, "defrag": defrag}) class TEST1(BASE):
testnum += 1 pass
class TEST2(BASE):
pass
class TEST3(BASE):
pass
class TEST4(BASE):
pass
class TEST5(BASE):
pass
class TEST6(BASE):
# Restore defaults
memcheck = vg.AUTO
pmemcheck = vg.AUTO
class TEST7(BASE):
pass
class TEST8(BASE):
# Restore defaults
memcheck = vg.AUTO
pmemcheck = vg.AUTO
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment