aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/agl_test_ptest_base.py
AgeCommit message (Collapse)AuthorFilesLines
2023-04-26agl-test-framework: add ptest diffutilsQiu Tingting1-0/+6
Add ptest diffutils in agl-test-framework. Testing costs 10s. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I9a3323ccbe151a72330aa725321dfbbbd0328532
2023-04-11agl-test-framework: add ptest aclQiu Tingting1-1/+5
Add ptest acl in agl-test-framework. Testing costs 1m46s. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: Id43d68b85f560625407971f01322a45aef9a53cf
2023-03-08agl-test-framework: solve bugs in the test frameworkduerpei1-0/+6
Fixed problems: 1.When all the executed test suites are skipped, no new summary- report is generated. 2.When there is test suite successfully executed, the generated summary-report will contain the test suites which have logs in the "/tmp-log" directory, rather than just the test suites which has just executed. Correction method: 1.Move the function in "conftest.py" to "agl_test_report.py" and call it in the "agl-test" script to ensure that the function will be executed. 2.Set the timestamp to record the information of each executed test suite or skipped test suite to the file of "test_list_timestamp". And generate a summar-report according to the above file. Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: I47bfd09706e37ce6bdc13f3f9f266bc62f74f777
2022-12-08agl-test-framework: add "XPASS" and "XFAIL" statesduerpei1-9/+10
Adjust the test framework , add "XPASS" and "XFAIL" states for the result of test case, and delete useless code by the way. Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: I5763dc27caef956fb6632fcb59d9f95d671f4766
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 Tingting1-1/+17
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-06-11agl-test-framework: add PTESTBaseTest classduerpei1-0/+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