Home | History | Annotate | Download | only in ltp

Lines Matching refs:test_case

76     def GetRequirements(self, test_case):
80 test_case: TestCase object, the test case to query
87 if test_case.fullname in tests)
92 if test_case.testsuite in tests)
96 def Check(self, test_case):
101 to test_case.note.
104 test_case: TestCase object, a given test case to check
109 if (test_case.requirement_state ==
111 not self.TestBinaryExists(test_case)):
114 for requirement in self.GetRequirements(test_case):
122 logging.info("Result for %s's requirement %s is %s", test_case,
125 test_case.requirement_state = ltp_enums.RequirementState.UNSATISFIED
126 test_case.note = note
129 test_case.requirement_state = ltp_enums.RequirementState.SATISFIED
139 test_case: list of TestCase objects.
142 test_case.GetRequiredExecutablePaths(self.ltp_bin_host_path)
143 for test_case in test_cases)
189 def TestBinaryExists(self, test_case):
193 test_case: TestCase, the object representing the test case
198 if test_case.requirement_state == ltp_enums.RequirementState.UNSATISFIED:
201 "%s" % test_case)
204 executables = test_case.GetRequiredExecutablePaths(
210 test_case.requirement_state = ltp_enums.RequirementState.UNSATISFIED
211 test_case.note = "Some executables not exist: {}".format(
214 "Reason: {}".format(test_case, test_case.note))