Skip to content
Snippets Groups Projects
Commit 0dc9c9e3 authored by Jammer, Tim's avatar Jammer, Tim
Browse files

limnit amount of cases in BASIC level, where each error is supposed to be included only once

parent 156275b0
No related branches found
No related tags found
No related merge requests found
...@@ -30,12 +30,16 @@ class CorrectColl(ErrorGenerator): ...@@ -30,12 +30,16 @@ class CorrectColl(ErrorGenerator):
tm = get_collective_template(func_to_use) tm = get_collective_template(func_to_use)
tm.set_description("Correct-" + func_to_use, "Correct code") tm.set_description("Correct-" + func_to_use, "Correct code")
yield tm yield tm
if generate_level <= BASIC_TEST_LEVEL:
break
# Separate function called depending on process ID # Separate function called depending on process ID
for func_to_use in self.functions_to_use: for func_to_use in self.functions_to_use:
tm = get_two_collective_template(func_to_use, func_to_use) tm = get_two_collective_template(func_to_use, func_to_use)
tm.set_description("Correct-" + func_to_use + "-" + func_to_use, "Correct code") tm.set_description("Correct-" + func_to_use + "-" + func_to_use, "Correct code")
yield tm yield tm
if generate_level <= BASIC_TEST_LEVEL:
break
# Generate scenarios with topology functions # Generate scenarios with topology functions
for func_to_use in self.topology_functions: for func_to_use in self.topology_functions:
...@@ -47,6 +51,5 @@ class CorrectColl(ErrorGenerator): ...@@ -47,6 +51,5 @@ class CorrectColl(ErrorGenerator):
cart_get.set_arg("comm_cart", "mpi_comm_0") cart_get.set_arg("comm_cart", "mpi_comm_0")
tm.register_instruction(cart_get) tm.register_instruction(cart_get)
yield tm yield tm
if generate_level <= BASIC_TEST_LEVEL:
if generate_level >= BASIC_TEST_LEVEL: break
return
...@@ -35,6 +35,8 @@ class InvalidComErrorColl(ErrorGenerator): ...@@ -35,6 +35,8 @@ class InvalidComErrorColl(ErrorGenerator):
call.set_has_error() call.set_has_error()
yield tm yield tm
if generate_level <= BASIC_TEST_LEVEL:
break
for fun_to_use in self.topology_functions: for fun_to_use in self.topology_functions:
tm = get_collective_template(func_to_use) tm = get_collective_template(func_to_use)
...@@ -49,6 +51,5 @@ class InvalidComErrorColl(ErrorGenerator): ...@@ -49,6 +51,5 @@ class InvalidComErrorColl(ErrorGenerator):
cart_get.set_has_error() cart_get.set_has_error()
yield tm yield tm
# only check for one comm
if generate_level <= BASIC_TEST_LEVEL: if generate_level <= BASIC_TEST_LEVEL:
return return
...@@ -28,6 +28,5 @@ class InvalidComErrorColl(ErrorGenerator): ...@@ -28,6 +28,5 @@ class InvalidComErrorColl(ErrorGenerator):
call.set_has_error() call.set_has_error()
yield tm yield tm
# only check for one comm
if generate_level <= BASIC_TEST_LEVEL: if generate_level <= BASIC_TEST_LEVEL:
return return
...@@ -39,6 +39,5 @@ class InvalidComErrorColl(ErrorGenerator): ...@@ -39,6 +39,5 @@ class InvalidComErrorColl(ErrorGenerator):
call.set_has_error() call.set_has_error()
yield tm yield tm
# only check for one comm
if generate_level <= BASIC_TEST_LEVEL: if generate_level <= BASIC_TEST_LEVEL:
return return
...@@ -48,6 +48,8 @@ class InvalidComErrorColl(ErrorGenerator): ...@@ -48,6 +48,8 @@ class InvalidComErrorColl(ErrorGenerator):
tm.insert_instruction(c, after_instruction=call) tm.insert_instruction(c, after_instruction=call)
yield tm yield tm
if generate_level <= BASIC_TEST_LEVEL:
break
# Generate codes with root mismatch # Generate codes with root mismatch
for func_to_use in self.func_with_root: for func_to_use in self.func_with_root:
...@@ -62,6 +64,8 @@ class InvalidComErrorColl(ErrorGenerator): ...@@ -62,6 +64,8 @@ class InvalidComErrorColl(ErrorGenerator):
c = CorrectMPICallFactory.get(func_to_use) c = CorrectMPICallFactory.get(func_to_use)
yield tm yield tm
if generate_level <= BASIC_TEST_LEVEL:
break
# Generate codes with communicator mismatch # Generate codes with communicator mismatch
for func_to_use in self.functions_to_use: for func_to_use in self.functions_to_use:
...@@ -80,6 +84,5 @@ class InvalidComErrorColl(ErrorGenerator): ...@@ -80,6 +84,5 @@ class InvalidComErrorColl(ErrorGenerator):
tm.insert_instruction(c, after_instruction=call) tm.insert_instruction(c, after_instruction=call)
yield tm yield tm
if generate_level <= BASIC_TEST_LEVEL: if generate_level <= BASIC_TEST_LEVEL:
return break
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment