1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-26 13:21:03 +03:00

Add dependencies attribute to BaseTarget

Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
Werner Lewis
2022-08-31 17:01:38 +01:00
parent 18f94d8175
commit 486b3410a4

View File

@ -41,6 +41,7 @@ class BaseTarget(metaclass=ABCMeta):
count: Counter for test cases from this class. count: Counter for test cases from this class.
case_description: Short description of the test case. This may be case_description: Short description of the test case. This may be
automatically generated using the class, or manually set. automatically generated using the class, or manually set.
dependencies: A list of dependencies required for the test case.
target_basename: Basename of file to write generated tests to. This target_basename: Basename of file to write generated tests to. This
should be specified in a child class of BaseTarget. should be specified in a child class of BaseTarget.
test_function: Test function which the class generates cases for. test_function: Test function which the class generates cases for.
@ -50,6 +51,7 @@ class BaseTarget(metaclass=ABCMeta):
""" """
count = 0 count = 0
case_description = "" case_description = ""
dependencies: List[str] = []
target_basename = "" target_basename = ""
test_function = "" test_function = ""
test_name = "" test_name = ""
@ -93,6 +95,7 @@ class BaseTarget(metaclass=ABCMeta):
tc.set_description(self.description()) tc.set_description(self.description())
tc.set_function(self.test_function) tc.set_function(self.test_function)
tc.set_arguments(self.arguments()) tc.set_arguments(self.arguments())
tc.set_dependencies(self.dependencies)
return tc return tc