case_base.py 610 B

1234567891011121314151617181920212223242526272829
  1. #
  2. # Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #
  5. import os
  6. import json
  7. from test.test_support import _run_suite
  8. class CTestCaseBase(object):
  9. def __init__(self, suite):
  10. self.m_suite = suite
  11. return
  12. def on_get_case_description(self):
  13. return "Undefined"
  14. def on_setup_case(self):
  15. return True, ''
  16. def on_cleanup_case(self):
  17. return True, ''
  18. # called by the framework
  19. def on_run_case(self):
  20. return True, ''
  21. def get_suite(self):
  22. return self.m_suite