aboutsummaryrefslogtreecommitdiffstats
path: root/tests/LTP/agl_test_ltp_base.py
AgeCommit message (Collapse)AuthorFilesLines
2023-04-26tests: add precheck func for test suites under LTPduerpei1-0/+3
Add precheck func for test suites under LTP. Ensure that the test suites could be skipped if the test conditions are not met. Bug-AGL: SPEC-4755 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: Ib605a2109d04dd4f8544ef9a10f63c172489e827
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
2021-03-30agl-test-framework: add LTP syscalls tests into frameworkyanxk1-1/+15
syscalls in LTP version 20220121 contains some bugs, those have been adjusted in order to provide trustable test reports. Bug-AGL: SPEC-4345 Signed-off-by: yanxk <yanxk.fnst@fujitsu.com> Change-Id: I41aba8e64e9b916066f9a60ffac863ffdbabbf47
2023-01-23agl-test-framework: fix bug caused by prefixyanxk1-2/+2
prefix should be set to 'LTP/', otherwise the get_workdir() method in class AGLBaseTest would not work. Bug-AGL: SPEC-4345 Signed-off-by: yanxk <yanxk.fnst@fujitsu.com> Change-Id: I8a9eeaa78acde2fc6a8f085c0bcdef3b5b800b45
2023-01-23agl-test-framework: fix pytest warningyanxk1-1/+1
fix a pytest warning caused by missing escape character. Bug-AGL: SPEC-4345 Signed-off-by: yanxk <yanxk.fnst@fujitsu.com> Change-Id: Iec8a4faf09322b6518409cb575d0149cad6d34a9
2023-01-17agl-test-framework: add new functions for LTP classduerpei1-9/+14
Add new function of "get_log_path" and "get_log_file" for LTP class. Change the judgment rule in "run_test_fun" to make it more reasonable. Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: Id2e805046fe48551f910f04ad1dcfca5c76b8019
2022-10-12agl-test-framework: add LTPBase classduerpei1-0/+130
Add LTPBase class for test suites from LTP(linux-test-project). The LTPBase inherits from AGLBaseTest class. It contains some common functions, which are used to run the test suites from LTP and process the log. It makes it easy to support test suites from LTP. And add run_test scripts for the test suite of ltp/math, the scripts used the class of LTPBase. Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: I683aaca37ddfb84a12e570a8918934ea8391ded6