summaryrefslogtreecommitdiffstats
path: root/tests/LTP
diff options
context:
space:
mode:
Diffstat (limited to 'tests/LTP')
-rw-r--r--tests/LTP/cve/__init__.py0
-rw-r--r--tests/LTP/cve/run_tests.py24
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/LTP/cve/__init__.py b/tests/LTP/cve/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/LTP/cve/__init__.py
diff --git a/tests/LTP/cve/run_tests.py b/tests/LTP/cve/run_tests.py
new file mode 100644
index 0000000..cbe86fd
--- /dev/null
+++ b/tests/LTP/cve/run_tests.py
@@ -0,0 +1,24 @@
+import pytest
+
+from tests.LTP.agl_test_ltp_base import LTPBase
+
+class CveBase(LTPBase):
+ def __init__(self):
+ super().__init__(test_name="cve")
+
+instance = CveBase()
+test_case_list = instance.get_test_case_list()
+
+@pytest.fixture(scope='module')
+def testbase():
+ yield instance
+ #package log files and make report file
+ instance.log_report()
+
+@pytest.mark.parametrize('case_name', test_case_list)
+def test_ltp_cve(testbase: CveBase, case_name):
+ testbase.run_ltp_test(case_name)
+ testbase.run_case(case_name)
+
+if __name__ == '__main__':
+ pytest.main("-s run_tests")