Skip to content

Commit bb9e3d9

Browse files
committed
extend test script to support PPC_DISABLE_VALGRIND flag and update CI workflow accordingly
1 parent 4f483db commit bb9e3d9

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ jobs:
362362
PPC_NUM_PROC: 2
363363
OMPI_ALLOW_RUN_AS_ROOT: 1
364364
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
365+
PPC_DISABLE_VALGRIND: 1
365366
- name: Upload coverage reports to Codecov
366367
uses: codecov/[email protected]
367368
with:

scripts/run_tests.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ def __get_gtest_settings(repeats_count, type_task):
106106
return command
107107

108108
def run_threads(self):
109-
if platform.system() == "Linux" and not self.__ppc_env.get("PPC_ASAN_RUN"):
109+
if (
110+
platform.system() == "Linux"
111+
and not self.__ppc_env.get("PPC_ASAN_RUN")
112+
and not self.__ppc_env.get("PPC_DISABLE_VALGRIND")
113+
):
110114
for task_type in ["seq", "stl"]:
111115
self.__run_exec(
112116
shlex.split(self.valgrind_cmd)
@@ -121,7 +125,11 @@ def run_threads(self):
121125
)
122126

123127
def run_core(self):
124-
if platform.system() == "Linux" and not self.__ppc_env.get("PPC_ASAN_RUN"):
128+
if (
129+
platform.system() == "Linux"
130+
and not self.__ppc_env.get("PPC_ASAN_RUN")
131+
and not self.__ppc_env.get("PPC_DISABLE_VALGRIND")
132+
):
125133
self.__run_exec(
126134
shlex.split(self.valgrind_cmd)
127135
+ [str(self.work_dir / "core_func_tests")]

0 commit comments

Comments
 (0)