aboutsummaryrefslogtreecommitdiffstats
path: root/tests/LTP
AgeCommit message (Collapse)AuthorFilesLines
2023-04-26tests: add precheck func for test suites under LTPduerpei5-3/+15
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-04-18ltp/cve : set environment variablesduerpei1-0/+15
If the kernel config file cannot be found, set the environment variable "KCONFIG_SKIP_CHECK" = "True" to avoid some case errors in ltp/cve. The format of the case error report is as follows: <<<test_output>>> incrementing stop tst_kconfig.c:65: TINFO: Couldn't locate kernel config! tst_kconfig.c:201: TBROK: Cannot parse kernel .config Bug-AGL: SPEC-4755 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: Idbe419ee2938436196893389c69a706b0083431e
2023-03-08agl-test-framework: solve bugs in the test frameworkduerpei2-1/+13
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 frameworkyanxk5-1/+91
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-18agl-test-framework: add posix conformance testsyanxk2-0/+109
conformance tests from Open Posix Test Suite is added into agl-test now. Bug-AGL: SPEC-4345 Signed-off-by: yanxk <yanxk.fnst@fujitsu.com> Change-Id: I4da7dbc2cd423c0de01f9ee53651f5590181e68b
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
2023-01-13agl-test-framework: add script for ltp/cveduerpei2-0/+24
Add run_test.py script for the test suite of ltp/cve, the script used the class of LTPBase. Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: I4eb27c18f1b49f51308f531b687c46f736461f5e
2022-10-12agl-test-framework: add LTPBase classduerpei4-0/+154
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