aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2024-03-13agl-test-framework: add ptest poptzhuwenqing2-0/+27
Add ptest popt into agl-test-framework Bug-AGL: SPEC-4753 Change-Id: Iad0ebf8c162a9cc05c60cc1a28742b12c516a3e9 Signed-off-by: zhuwenqing <zhuwq.jy@fujitsu.com>
2024-03-01agl-test-framework: add ptest sedduerpei2-0/+35
Add ptest sed in agl-test-framework. Testing costs 55s. Bug-AGL: SPEC-5087 Change-Id: Idb2ca4d992010f07857b3e9f5d5789c122ef0881 Signed-off-by: duerpei <duep.fnst@fujitsu.com>
2024-02-28agl-test-framework: add ptest slangduerpei2-0/+27
Add ptest slang in agl-test-framework. Testing costs 40s. Bug-AGL: SPEC-5087 Change-Id: Ic38115c90625ed951e8b35dd3492829c692e7dda Signed-off-by: duerpei <duep.fnst@fujitsu.com>
2024-02-22agl-test-framework: add ptest gzipduerpei2-0/+27
Add ptest gzip in agl-test-framework. Testing costs 4mins. Bug-AGL: SPEC-5087 Change-Id: I68a0b30db8c3d8960d3022c0e4a08ef93f891b1e Signed-off-by: duerpei <duep.fnst@fujitsu.com>
2023-09-28agl-test-framework: add ptest tarQiu Tingting2-0/+27
Add ptest tar in agl-test-framework. Testing costs 10.5m. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I2cc5b5bd3f315276208cf5e67e8cf96253960fa0
2023-09-01agl-test-framework: add ptest xzQiu Tingting2-0/+27
Add ptest xz in agl-test-framework. Testing costs 2s. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I836a6aea2c75f020f211cb0ca495de7f1a64a81f
2023-08-23agl-test-framework: add ptest fontconfigQiu Tingting2-0/+27
Add ptest fontconfig in agl-test-framework. Testing costs 10s. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I113c0b593fe9efdebb408bcaaea9a4726d8de109
2023-07-21agl-test-framework: add ptest curlQiu Tingting3-0/+73
Add ptest curl in agl-test-framework. Testing costs 280s. Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: Iae2272d1cf7064326b65e4c4f61c481f99554c88
2023-06-30agl-test-framework: add ptest kbdQiu Tingting3-0/+61
Add ptest kbd in agl-test-framework. Testing costs 6s. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I5a0e7efeb0c38c4ba96d472affa66cf5bcf381fa
2023-05-30agl-test-framework: add ptest flexQiu Tingting2-0/+27
Add ptest flex in agl-test-framework. Testing costs 8s. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I62beb386b6d9f3ad4919efab6221937e422e6843
2023-05-16agl-test-framework: add ptest gawkQiu Tingting2-0/+33
Add ptest gawk in agl-test-framework. Testing costs 72s. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I8d49c4c31eb5cee626ad016747495c1808d7ad63
2023-05-15agl-test-framework: add ptest gdbmQiu Tingting3-0/+56
Add ptest gdbm in agl-test-framework. Testing costs 5s. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: Ieb91a394373a4140ca29214ec26f5133f8896b08
2023-05-09agl-test-framework: add ptest "babetrace2"Yan2-0/+28
add ptest babetrace2 into framework. Bug-AGL: SPEC-4753 Signed-off-by: Yan <yanxk.fnst@fujitsu.com> Change-Id: I4ec3e2d763f6b5a2712c334e8c838acdd53e7872
2023-05-06agl-test-framework: add ptest support of luaQiu Tingting2-0/+27
Add ptest support of lua in agl-test-framework. Testing costs 5s. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I63415435a6fa9c83f93f82b03029787c35ca0a7e
2023-05-05agl-test-framework: add ptest support of lz4Qiu Tingting2-0/+27
Add ptest support of lz4 in agl-test-framework. Testing costs 1 hour 5 minutes. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I8905843689cf26fb815615aa84aaa3018fe46fc2
2023-04-28agl-test-framework: add ptest e2fsprogsQiu Tingting2-0/+27
Add ptest e2fsprogs in agl-test-framework. Testing costs 9 minutes. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I6a89ee017a50b890169df366e90e921d2d972e1b
2023-04-27agl-test-framework: add ptest babeltraceYan2-0/+28
Add ptest babeltrace in agl-test-framework. Bug-AGL: SPEC-4753 Signed-off-by: Yan <yanxk.fnst@fujitsu.com> Change-Id: I8ef9cfb2dc37f647f0417400bfa715e662dbd610
2023-04-26agl-test-framework: add ptest diffutilsQiu Tingting2-0/+34
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-26agl-test-framework: add ptest coreutilsQiu Tingting2-0/+41
Add ptest coreutils in agl-test-framework. Testing costs 11 minutes. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I8ff410c53aea0a4682424b231511c53677d7fae6
2023-04-26agl-test-framework: add ptest gstreamerQiu Tingting2-0/+30
Add ptest gstreamer in agl-test-framework. Testing costs 2 minutes. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I50dea3ef6fed2879b0e9a221df8bdb7c7d239f95
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-21agl-test-framework: Optimize common function log_processQiu Tingting18-268/+20
Add new commone function log_process_gnu for the following tests: acl attr bash bc bluez5 busybox cpio libpam libxml2 zlib SPEC-4758 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I92de3b781badac9cb6d55acd5cc0c601dc4a7c65
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-04-14agl-test-framework: add ptest bluez5Qiu Tingting3-0/+47
Add ptest bluez5 in agl-test-framework. Testing costs 36s. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I9a6c548f28db761883845f40e3fcd612574946c5
2023-04-11agl-test-framework: add ptest attrQiu Tingting2-0/+38
Add ptest attr in agl-test-framework. Testing costs 7s. Bug-AGL: SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I9f4b74331dac5db4ba64ce56d268fd856d7ad8b9
2023-04-11agl-test-framework: add ptest aclQiu Tingting2-0/+38
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-04-03agl-test-framework: add ptest json-glibYan2-0/+30
add json-glib ptest into agl-test-framework. Bug-AGL: SPEC-4733 Signed-off-by: Yan <yanxk.fnst@fujitsu.com> Change-Id: I03ef4122fbef0c6cee3eec5e5d23915698b35e51
2023-03-08agl-test-framework: solve bugs in the test frameworkduerpei6-5/+44
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
2023-07-22agl-test-framework: add "cpio"yanxk3-0/+66
it is new ptest, newly supported in YP master-next by us, now we add it into our test framework. sample output: tests/cpio/run_tests.py::test_cpio[cpio version ] PASSED tests/cpio/run_tests.py::test_cpio[basic functionality: copyin/copyout ] PASSED tests/cpio/run_tests.py::test_cpio[symlink ] PASSED Bug-AGL: SPEC-4345 Signed-off-by: yanxk <yanxk.fnst@fujitsu.com> Change-Id: I08d8c18c1f1f4ec7df5f5447e6177490958fad37
2023-07-17agl-test-framework: add memory test "linus_stress"yanxk2-0/+55
this test was part of core test, testing memory. it is now part of agl-test-framework. Bug-AGL: SPEC-4345 Signed-off-by: yanxk <yanxk.fnst@fujitsu.com> Change-Id: I04caa643c440de18707ea112c655f694fc62f257
2023-07-12agl-test-framework: replace "-" with "_"duerpei6-0/+0
Replace "-" with "_" in the name of the directory to solve the following errors when running agl-test: import file mismatch: imported module 'run_tests' has this __file__ attribute: /usr/AGL/agl-test/tests/aio-stress/run_tests.py which is not the same as the test file we want to collect: /usr/AGL/agl-test/tests/gdk-pixbuf/run_tests.py HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: Id8028dfbda618a9b7858602d3832bf2eb7f7ef5e
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-20agl-test-framework: enable ptest of 'busybox'duerpei4-0/+78
Enable the test suite of 'busybox' from ptest Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: I960f013d47f893f65766628da443ad6dce6f1009
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
2023-01-13agl-test-framework: make sure "crashme" would have return valueyanxk1-0/+30
a fact is "crashme" would crash qemux86 under mid or high level, but low level looks fine, we provide kill -15 solution to solve "no return" hang up. so there will always be a return value. Bug-AGL: SPEC-4345 Signed-off-by: yanxk <yanxk.fnst@fujitsu.com> Change-Id: I3d9ebb64b8b57a64d0ca002f20cf908141099ad6
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
2022-10-07agl-test-framework: fix bug for ptest testsuitesQiu Tingting9-9/+0
Fix bug for ptest testsuites which introduced by the following commit: agl-test-framework: add "XPASS" and "XFAIL" states Bug-AGL: SPEC-4345 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I77309e05468045bf1deba1ce94aed81f9492d5e9
2023-01-03agl-test-framework: enable ptest of gdk-pixbufQiu Tingting2-0/+29
Add test scripts for enabling ptest of gdk-pixbuf. This test will cost 12 seconds time in raspberrypi4. Bug-AGL: SPEC-4345 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I67fefce8552fe9033734cf340758fe92efc5a58d
2023-01-03agl-test-framework: enable ptest of python3Qiu Tingting3-0/+134
Add test scripts for enabling ptest of python3. This test will cost 1h50min time in raspberrypi4. Bug-AGL: SPEC-4345 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I840f4fa3e2d457f87260ec79fc72a06327157f22
2022-09-23agl-test-framework: add test "stress-ng"duerpei2-14/+12
Replace "stress" with "stress-ng", the stress-ng package which is already in OE-core. Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: Ia79453f2fc82d4aed0a7a405df93d2560da253de
2022-12-08agl-test-framework: add test 'bash'duerpei3-0/+68
Add test script for 'bash' Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: Id50dcc3d1a80b8d088b8af897aee82f6492e1a96
2022-12-02agl-test-framework: add test 'crashme'yanxk3-0/+115
'agl-test' modified, now, usr would not run dangerous tests like this 'crashme' unless they do self selection by '-m' pytest option. Set default to 'not dangerous'. a new marker 'dangerous' has been add to the pytest.ini. add new method into the agl_test_base.py, to help get path of the 'spec.json', this file help stress tests like 'crashme' to run under different stress levels. for run_tests.py, modifications focus on how to run 'crashme' under that different levels. new marker 'order' would always ensure this 'crashme' test to be placed as the so called 'last' test of all. Bug-AGL: SPEC-4345 Signed-off-by: yanxk <yanxk.fnst@fujitsu.com> Change-Id: Icb36d7c5c52430d89787f4373a2852b1b03ec8a6
2022-08-27agl-test-framework: add test 'stress'duerpei2-0/+57
Add test script for 'stress' Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: I1c0c048dc907e5cff5d50396ab28b7550371b32e
2022-11-11agl-test-framework: enable ptest of 'bc'yanxk3-0/+65
we have already submitted patches that enabled ptest of 'bc' to the OpenEmbedded community and the patches got merged. but it is not yet in the YP 4.0.5, so it would skip now. it can be seen in YP 4.1. we now add it into the test framework, for it would be available in the next YP release, maybe, or several versions later. Signed-off-by: yanxk <yanxk.fnst@fujitsu.com> Change-Id: Iffdef472c9449c9e3179c3b3bd1273fb2ec0e032
2022-08-14agl-test-framework: deploy parametric implementation for old ‘glib-2.0’ testyanxk1-34/+6
Single definitions are no longer used in this test framework, they are now replaced by another parametric implementation. The benefit of this is that it minimizes the likelihood of requiring manual maintenance due to the small but frequent updates from the upstream. Bug-AGL: SPEC-4345 Signed-off-by: yanxk <yanxk.fnst@fujitsu.com> Change-Id: I86a0edabb27c7117d8279e1478be94f456894533
2022-08-14agl-test-framework: enable ptest of 'openssl'yanxk3-0/+72
Base on the agl-test-framework, the ptest results of 'openssl' can now be collected, analyzed and then reported. Here are 3 samples that the output result might look like: tests/openssl/run_tests.py::test_openssl[30-test_evp_fetch_prov] PASSED tests/openssl/run_tests.py::test_openssl[30-test_evp_kdf] PASSED tests/openssl/run_tests.py::test_openssl[30-test_evp_libctx] PASSED Bug-AGL: SPEC-4345 Signed-off-by: yanxk <yanxk.fnst@fujitsu.com> Change-Id: Id28a36ce081e8cfb49dcb7af8db369244f1fd258