From fbae7ac31fd2a895f74c4c57508662eec15f40c1 Mon Sep 17 00:00:00 2001 From: Yan Date: Mon, 3 Apr 2023 13:43:55 +0800 Subject: agl-test-framework: add ptest json-glib add json-glib ptest into agl-test-framework. Bug-AGL: SPEC-4733 Signed-off-by: Yan Change-Id: I03ef4122fbef0c6cee3eec5e5d23915698b35e51 --- tests/json_glib/run_tests.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/json_glib/run_tests.py (limited to 'tests/json_glib/run_tests.py') diff --git a/tests/json_glib/run_tests.py b/tests/json_glib/run_tests.py new file mode 100644 index 0000000..9b32af5 --- /dev/null +++ b/tests/json_glib/run_tests.py @@ -0,0 +1,29 @@ +import pytest + +import plugins.agl_test_log as log + +from plugins.agl_test_ptest_base import PTESTBase + +class JsonGlibBase(PTESTBase): + def __init__(self): + super().__init__(test_name="json-glib") + + def log_process(self): + log_file = self.get_logfile() + self.case_info_list = log.log_process_gnome_desktop_testing(log_file) + +instance = JsonGlibBase() +instance.run_ptest() + +@pytest.fixture(scope='module') +def testbase(): + yield instance + #package log files and make report file + instance.log_report() + +@pytest.mark.parametrize('case_name', instance.case_info_list.keys()) +def test_json_glib(testbase: JsonGlibBase, case_name): + testbase.run_case(case_name) + +if __name__ == '__main__': + pytest.main("-s run_tests") -- cgit