aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
2022-08-11agl-test-framework: Add new method to the plugins/agl_test_ptest_base.pyyanxk1-0/+5
This new method is named 'run_ptest', which means it runs the ptest and does the log process, it is a common method that all ptest cases would require. Bug-AGL: SPEC-4345 Signed-off-by: yanxk <yanxk.fnst@fujitsu.com> Change-Id: Ifb2ae53ca3aad941216dae94ac5e07d28eca55b7
2022-07-24Add precheck() funQiu Tingting2-1/+19
Checking env before run testsuite is necessary. 1. Add common check in agl_test_base.py. It is currently an empty function. If necessary, common check sould be added. 2. Add ptest common check in agl_test_ptest_base.py. For ptest testsuite, check whether ptest-runner and run-ptest script exist. 3. Add special check in run_tests.py. For aio-stress testsuite, check whether compiled aio-stress script exists For bzip2 testsuite, check whether bzip2 cmd exists. Bug-AGL: SPEC-4345 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: Id7841c0337465266dd607403ecb3e1c4377c6198
2022-09-30agl-test-framework: add test set of aio-stressduerpei1-0/+3
Add the script file that calls the test set 'aiostress'. Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: Ib3906fed1f85031d3554342a5555aa3a046b8c09
2022-06-28agl-test-framework: fix a naming definition mistakeyanxk1-1/+1
Since no 'date' information was written into the JSON file, the name of the function should be 'write_data_to_json'. Bug-AGL: SPEC-4345 Signed-off-by: yanxk <yanxk.fnst@fujitsu.com> Change-Id: I61043c28d36a6c208b729b7c755da4b97970ae97
2022-06-16agl-test-framework: use PTESTBaseTest classduerpei1-7/+4
Move the "run_tests" script of glib2 under "qa-test-misc" to "agl-test-framework", this is more reasonable. And modify the script file run_tests under glib2, make it use PTESTBaseTest class. Later, I will delete the "run_tests" scripts under "qa-test-misc" Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: Id055b829954bf8bdf75a90ff5b417baae0c4d5fb
2022-06-11agl-test-framework: add PTESTBaseTest classduerpei2-2/+30
Add PTESTBaseTest class for test sets called from ptest. It inherits from AGLBaseTest class. It contains two common functions used to run the ptest test set. In test suite, please create a child class based on PTESTBaseTest. Then it is easy to init, run tests, check results and make a repoter. By the way, delete the useless code in agl_test_report.py Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: Ief99073e4f63a44bde387b8c42d029c47fbf0943
2022-05-26agl-test-framework: add AGLBaseTest classQiu Tingting4-12/+257
Add AGLBaseTest class for existing test suites which has own test scripts. It package the default operations, like as log processing and file saving. In test suite, please create a child class based onAGLBaseTest. Then it is easy to init, run tests, check results and make a repoter. Bug-AGL: SPEC-4345 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I9dbc01db59df16eb5718b19b3223ad95da0afb11
2022-05-25agl-test-framework: fix a bug for get_html_filenamelamprey_12.1.6lamprey_12.1.5lamprey/12.1.6lamprey/12.1.512.1.612.1.5Qiu Tingting1-1/+1
fix a bug for get_html_filename methond in agl_test_report.py Bug-AGL: SPEC-4345 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: Iea7dd4d09ab70189f59325fc0200486ae142f584
2022-05-22agl-test-framework: Add get method for agl-test-conf.pyQiu Tingting1-5/+47
Add get method for agl-test-conf.py get_tmp_log_dir get_tpl_dir get_default_html_tpl get_json_filename get_html_filename get_log_dir Bug-AGL: SPEC-4345 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I6f63447a32df752033945ff77ad577dd46f0733a
2022-05-21agl-test-framework: change order of parameter for write_date_to_json.Qiu Tingting1-1/+1
Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: Ia5cb70ac5ada8be10c0be530a24fb5d6537f7cf6
2022-07-28agl-test-framework: demo code submissionneedlefish_13.93.0needlefish/13.93.013.93.0duerpei4-0/+235
Submit the demo code of agl-test-framework The "agl-test framework" encapsulates pytest,which aims to provide a unified test set execution entrance. It supports to run various test sets, even these test sets come from different test frameworks, processing these test logs uniformly, and generating complete test report. In this way, it is convenient to test as many targets as possible, in a wide range, so that the test covers a wider range of objects, and is more comprehensive. At present, we plan to support the following test sets in "agl-test": 1. Transplant test sets under Fuego and AGL-JTA 2. Retain the test set under pyagl and agl-ptest (so will depend on "agl-ptest") 3. Migrate new test sets (with upstream) 4. Append new test sets (without upstream) The output of test run is summarized by levels. The first level is the summary of all test sets, and the second level is the summary of a single test set. Now, they are displayed in HTML format, and other formats also can be considered later. Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: I25dfedcf8cdd373544c4fae677330defb5d21840