@@ -73,19 +73,27 @@ def get_common_gtest_settings(repeats_count):
73
73
return command
74
74
75
75
76
- def run_threads ():
77
- print (123 )
76
+ def run_threads (install_bin_dir ):
77
+ valgrind_running = "valgrind --error-exitcode=1 --leak-check=full --show-leak-kinds=all"
78
+ if platform .system () == "Linux" and not os .environ .get ("ASAN_RUN" ):
79
+ run_exec_file (f"{ valgrind_running } { Path (install_bin_dir ) / 'seq_func_tests' } { get_common_gtest_settings (1 )} " )
80
+ run_exec_file (f"{ valgrind_running } { Path (install_bin_dir ) / 'stl_func_tests' } { get_common_gtest_settings (1 )} " )
81
+
82
+ run_exec_file (f"{ Path (install_bin_dir ) / 'omp_func_tests' } { get_common_gtest_settings (3 )} " )
83
+ run_exec_file (f"{ Path (install_bin_dir ) / 'seq_func_tests' } { get_common_gtest_settings (3 )} " )
84
+ run_exec_file (f"{ Path (install_bin_dir ) / 'stl_func_tests' } { get_common_gtest_settings (3 )} " )
85
+ run_exec_file (f"{ Path (install_bin_dir ) / 'tbb_func_tests' } { get_common_gtest_settings (3 )} " )
78
86
79
87
80
- def run_common (install_bin_dir ):
88
+ def run_core (install_bin_dir ):
81
89
valgrind_running = "valgrind --error-exitcode=1 --leak-check=full --show-leak-kinds=all"
82
90
83
91
if platform .system () == "Linux" and not os .environ .get ("ASAN_RUN" ):
84
92
run_exec_file (f"{ valgrind_running } { Path (install_bin_dir ) / 'core_func_tests' } { get_common_gtest_settings (1 )} " )
85
93
run_exec_file (f"{ valgrind_running } { Path (install_bin_dir ) / 'ref_func_tests' } { get_common_gtest_settings (1 )} " )
86
94
87
- run_exec_file (f"{ Path (install_bin_dir ) / 'core_func_tests' } { get_common_gtest_settings (10 )} " )
88
- run_exec_file (f"{ Path (install_bin_dir ) / 'ref_func_tests' } { get_common_gtest_settings (10 )} " )
95
+ run_exec_file (f"{ Path (install_bin_dir ) / 'core_func_tests' } { get_common_gtest_settings (3 )} " )
96
+ run_exec_file (f"{ Path (install_bin_dir ) / 'ref_func_tests' } { get_common_gtest_settings (3 )} " )
89
97
90
98
91
99
def run_processes (install_bin_dir , additional_mpi_args ):
@@ -102,9 +110,9 @@ def run_processes(install_bin_dir, additional_mpi_args):
102
110
if __name__ == "__main__" :
103
111
args_dict = init_cmd_args ()
104
112
executable_path = setup_env ()
105
- run_common (executable_path )
113
+ run_core (executable_path )
106
114
if args_dict ["running_type" ] == "threads" :
107
- run_threads ()
115
+ run_threads (executable_path )
108
116
elif args_dict ["running_type" ] == "processes" :
109
117
run_processes (executable_path , args_dict ["additional_mpi_args" ])
110
118
else :
0 commit comments