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
Branches
No related tags found
No related merge requests found
......@@ -30,12 +30,16 @@ class CorrectColl(ErrorGenerator):
tm = get_collective_template(func_to_use)
tm.set_description("Correct-" + func_to_use, "Correct code")
yield tm
if generate_level <= BASIC_TEST_LEVEL:
break
# Separate function called depending on process ID
for func_to_use in self.functions_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")
yield tm
if generate_level <= BASIC_TEST_LEVEL:
break
# Generate scenarios with topology functions
for func_to_use in self.topology_functions:
......@@ -47,6 +51,5 @@ class CorrectColl(ErrorGenerator):
cart_get.set_arg("comm_cart", "mpi_comm_0")
tm.register_instruction(cart_get)
yield tm
if generate_level >= BASIC_TEST_LEVEL:
return
if generate_level <= BASIC_TEST_LEVEL:
break
......@@ -35,6 +35,8 @@ class InvalidComErrorColl(ErrorGenerator):
call.set_has_error()
yield tm
if generate_level <= BASIC_TEST_LEVEL:
break
for fun_to_use in self.topology_functions:
tm = get_collective_template(func_to_use)
......@@ -49,6 +51,5 @@ class InvalidComErrorColl(ErrorGenerator):
cart_get.set_has_error()
yield tm
# only check for one comm
if generate_level <= BASIC_TEST_LEVEL:
return
......@@ -28,6 +28,5 @@ class InvalidComErrorColl(ErrorGenerator):
call.set_has_error()
yield tm
# only check for one comm
if generate_level <= BASIC_TEST_LEVEL:
return
......@@ -39,6 +39,5 @@ class InvalidComErrorColl(ErrorGenerator):
call.set_has_error()
yield tm
# only check for one comm
if generate_level <= BASIC_TEST_LEVEL:
return
......@@ -48,6 +48,8 @@ class InvalidComErrorColl(ErrorGenerator):
tm.insert_instruction(c, after_instruction=call)
yield tm
if generate_level <= BASIC_TEST_LEVEL:
break
# Generate codes with root mismatch
for func_to_use in self.func_with_root:
......@@ -62,6 +64,8 @@ class InvalidComErrorColl(ErrorGenerator):
c = CorrectMPICallFactory.get(func_to_use)
yield tm
if generate_level <= BASIC_TEST_LEVEL:
break
# Generate codes with communicator mismatch
for func_to_use in self.functions_to_use:
......@@ -80,6 +84,5 @@ class InvalidComErrorColl(ErrorGenerator):
tm.insert_instruction(c, after_instruction=call)
yield tm
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