diff --git a/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi/2023-12-05-02:05:32.log b/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi/2023-12-05-02:05:32.log new file mode 100644 index 0000000000000000000000000000000000000000..4f7664b516644095cc8ae3453cf2fe2dcee416c3 --- /dev/null +++ b/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi/2023-12-05-02:05:32.log @@ -0,0 +1,599 @@ ++ source ./common/common_lib.sh +++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib_python.sh +./common/common_lib.sh: line 73: syntax error near unexpected token `}' +./common/common_lib.sh: line 73: `}' ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Tue Dec 5 02:05:32 2023 - INFO - Start environmental preparation. ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 10.3M 0 8440 0 0 44140 0 0:04:06 --:--:-- 0:04:06 43958 78 10.3M 78 8360k 0 0 7022k 0 0:00:01 0:00:01 --:--:-- 7019k 100 10.3M 100 10.3M 0 0 7389k 0 0:00:01 0:00:01 --:--:-- 7385k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ rm -rf /home/pager/.cache//ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Tue Dec 5 02:05:34 2023 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Tue Dec 5 02:05:34 2023 - INFO - Start to run test. ++ ruyi --version ++ grep 20231204 +Ruyi 0.2.0-beta.20231204 ++ CHECK_RESULT 0 0 0 'Check ruyi version failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi version failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi ++ grep usage +usage: ruyi [-h] [-V] ++ CHECK_RESULT 0 0 0 'Check ruyi empty cmdline help failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi empty cmdline help failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi -h ++ grep usage +usage: ruyi [-h] [-V] ++ CHECK_RESULT 0 0 0 'Check ruyi help failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi help failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi list +List of available packages: + +* source/coremark + - 1.0.2-pre.20230125 (prerelease, latest-prerelease) + - 1.0.1 (latest) +* source/ruyisdk-demo + - 0.20231114.0 (latest) +* emulator/qemu-user-riscv-upstream + - 8.1.2-ruyi.20231121 (latest) +* toolchain/llvm-upstream + - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121 +* toolchain/gnu-plct-xthead + - 0.20231118.0 (latest) slug: gnu-plct-xthead-20231118 +* toolchain/gnu-upstream + - 0.20231118.0 (latest) slug: gnu-upstream-20231118 +* toolchain/gnu-plct + - 0.20231118.0 (latest) slug: gnu-plct-20231118 ++ CHECK_RESULT 0 0 0 'Check ruyi empty list failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi empty list failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ '[' -d /home/pager/.cache//ruyi ']' ++ CHECK_RESULT 0 0 0 'Check ruyi create cache directory failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi create cache directory failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi update ++ CHECK_RESULT 0 0 0 'Check ruyi update failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi update failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 +++ ruyi list +++ grep -e '^* ' +++ wc -l ++ pkgcnt=7 ++ CHECK_RESULT 7 0 1 'Check ruyi list failed' ++ actual_result=7 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi list failed' ++ exit_mode=0 ++ '[' -z 7 ']' ++ '[' 1 -eq 0 ']' ++ test 7x == 0x ++ return 0 ++ ruyi list ++ grep 'Package declares' ++ CHECK_RESULT 1 0 1 'Check ruyi brief list failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi brief list failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ ruyi list --verbose ++ grep 'Package declares' +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 2 distfile(s): +Package declares 2 distfile(s): +Package declares 2 distfile(s): ++ CHECK_RESULT 0 0 0 'Check ruyi list verbose package failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose package failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi list --verbose ++ grep 'Binary artifacts' +### Binary artifacts +### Binary artifacts +### Binary artifacts +### Binary artifacts +### Binary artifacts ++ CHECK_RESULT 0 0 0 'Check ruyi list verbose artifacts failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose artifacts failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi list --verbose ++ grep 'Toolchain metadata' +### Toolchain metadata +### Toolchain metadata +### Toolchain metadata +### Toolchain metadata ++ CHECK_RESULT 0 0 0 'Check ruyi list verbose metadata failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose metadata failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi list profiles +generic +sipeed-lpi4a (needs flavor(s): {'xthead'}) +milkv-duo ++ CHECK_RESULT 0 0 0 'Check ruyi profile failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi profile failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 +++ ruyi list +++ grep -e '^* toolchain' +++ cut -d/ -f 2 ++ pkgnames='llvm-upstream +gnu-plct-xthead +gnu-upstream +gnu-plct' ++ for p in $pkgnames +++ ruyi list +++ grep -E 'slug: llvm-upstream-[0-9]+' +++ grep -v 'no binary for current host' ++ s=' - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121' ++ '[' '!' -z ' - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121' ']' ++ pkgname=llvm-upstream ++ break ++ '[' -z llvm-upstream ']' ++ http_proxy=http://wrong.proxy ++ https_proxy=http://wrong.proxy ++ ruyi install llvm-upstream +info: skipping already installed package llvm-upstream-17.0.5-ruyi.20231121 ++ CHECK_RESULT 0 0 1 'Check ruyi install package from wrong proxy failed' ++ actual_result=0 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi install package from wrong proxy failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 1 -eq 0 ']' ++ test 0x == 0x ++ test -n 'Check ruyi install package from wrong proxy failed' ++ LOG_ERROR 'Check ruyi install package from wrong proxy failed' ++ message='Check ruyi install package from wrong proxy failed' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'Check ruyi install package from wrong proxy failed' +Tue Dec 5 02:05:37 2023 - ERROR - Check ruyi install package from wrong proxy failed ++ (( exec_result++ )) ++ LOG_ERROR 'oe_test_ruyi.sh line 68' ++ message='oe_test_ruyi.sh line 68' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'oe_test_ruyi.sh line 68' +Tue Dec 5 02:05:37 2023 - ERROR - oe_test_ruyi.sh line 68 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi install llvm-upstream ++ grep downloading ++ CHECK_RESULT 1 0 0 'Check ruyi install package failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi install package failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi install package failed' ++ LOG_ERROR 'Check ruyi install package failed' ++ message='Check ruyi install package failed' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'Check ruyi install package failed' +Tue Dec 5 02:05:37 2023 - ERROR - Check ruyi install package failed ++ (( exec_result++ )) ++ LOG_ERROR 'oe_test_ruyi.sh line 70' ++ message='oe_test_ruyi.sh line 70' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'oe_test_ruyi.sh line 70' +Tue Dec 5 02:05:37 2023 - ERROR - oe_test_ruyi.sh line 70 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi install llvm-upstream ++ grep 'skipping already installed package' +info: skipping already installed package llvm-upstream-17.0.5-ruyi.20231121 ++ CHECK_RESULT 0 0 0 'Check ruyi install duplicate package failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi install duplicate package failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi install name:llvm-upstream ++ grep 'skipping already installed package' +info: skipping already installed package llvm-upstream-17.0.5-ruyi.20231121 ++ CHECK_RESULT 0 0 0 'Check ruyi install duplicate package by name failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi install duplicate package by name failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 +++ ruyi list +++ grep -e '^* source' +++ head -n 1 +++ cut -d/ -f 2 ++ pkgname=coremark ++ mkdir source-test ++ cd source-test ++ ruyi extract coremark +info: downloading https://mirror.iscas.ac.cn/ruyisdk/dist/coremark-1.01.tar.gz +to /home/pager/.cache/ruyi/distfiles/coremark-1.01.tar.gz + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 391k 100 391k 0 0 1322k 0 --:--:-- --:--:-- --:--:-- 1323k +info: extracting coremark-1.01.tar.gz for package coremark-1.0.1 +info: package coremark-1.0.1 extracted to current working directory ++ CHECK_RESULT 0 0 0 'Check ruyi extract failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi extract failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 +++ ls ++ '[' 'barebones +core_list_join.c +core_main.c +coremark.h +core_matrix.c +core_state.c +core_util.c +cygwin +docs +LICENSE.md +linux +linux64 +Makefile +README.md +simple' '!=' '' ']' ++ CHECK_RESULT 0 0 0 'Check ruyi extract dir not enpty failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi extract dir not enpty failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ cd .. ++ rm -rf source-test ++ ruyi self uninstall -y +info: uninstallation consent given over CLI, proceeding +info: removing the ruyi binary +Traceback (most recent call last): + File "/home/pager/.cache/ruyi/progcache/0.2.0-beta.20231204/__main__.py", line 30, in + File "/home/pager/.cache/ruyi/progcache/0.2.0-beta.20231204/ruyi/cli/__init__.py", line 233, in main + File "/home/pager/.cache/ruyi/progcache/0.2.0-beta.20231204/ruyi/cli/self_cli.py", line 53, in cli_self_uninstall +PermissionError: [Errno 13] Permission denied: '/usr/bin/ruyi' ++ CHECK_RESULT 1 0 0 'Check ruyi self uninstall failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi self uninstall failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi self uninstall failed' ++ LOG_ERROR 'Check ruyi self uninstall failed' ++ message='Check ruyi self uninstall failed' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'Check ruyi self uninstall failed' +Tue Dec 5 02:05:38 2023 - ERROR - Check ruyi self uninstall failed ++ (( exec_result++ )) ++ LOG_ERROR 'oe_test_ruyi.sh line 86' ++ message='oe_test_ruyi.sh line 86' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'oe_test_ruyi.sh line 86' +Tue Dec 5 02:05:38 2023 - ERROR - oe_test_ruyi.sh line 86 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi version +Ruyi 0.2.0-beta.20231204 +Copyright (C) 2023 Institute of Software, Chinese Academy of Sciences (ISCAS). +All rights reserved. +License: Apache-2.0 ++ CHECK_RESULT 0 0 1 'Check ruyi uninstall exists failed' ++ actual_result=0 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi uninstall exists failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 1 -eq 0 ']' ++ test 0x == 0x ++ test -n 'Check ruyi uninstall exists failed' ++ LOG_ERROR 'Check ruyi uninstall exists failed' ++ message='Check ruyi uninstall exists failed' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'Check ruyi uninstall exists failed' +Tue Dec 5 02:05:38 2023 - ERROR - Check ruyi uninstall exists failed ++ (( exec_result++ )) ++ LOG_ERROR 'oe_test_ruyi.sh line 88' ++ message='oe_test_ruyi.sh line 88' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'oe_test_ruyi.sh line 88' +Tue Dec 5 02:05:38 2023 - ERROR - oe_test_ruyi.sh line 88 ++ '[' 0 -eq 1 ']' ++ return 0 ++ '[' -d /home/pager/.cache/ruyi ']' ++ CHECK_RESULT 0 0 0 'Check ruyi cache dir exists failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi cache dir exists failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ '[' -d /home/pager/.local/share/ruyi ']' ++ CHECK_RESULT 0 0 0 'Check ruyi data dir exists failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi data dir exists failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 66 10.3M 66 7051k 0 0 7734k 0 0:00:01 --:--:-- 0:00:01 7732k 100 10.3M 100 10.3M 0 0 8499k 0 0:00:01 0:00:01 --:--:-- 8502k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ rm -rf /home/pager/.cache//ruyi ++ ruyi self uninstall --purge -y +info: uninstallation consent given over CLI, proceeding +info: removing installed packages +info: removing cached data +info: removing the ruyi binary +Traceback (most recent call last): + File "/home/pager/.cache/ruyi/progcache/0.2.0-beta.20231204/__main__.py", line 30, in + File "/home/pager/.cache/ruyi/progcache/0.2.0-beta.20231204/ruyi/cli/__init__.py", line 233, in main + File "/home/pager/.cache/ruyi/progcache/0.2.0-beta.20231204/ruyi/cli/self_cli.py", line 53, in cli_self_uninstall +PermissionError: [Errno 13] Permission denied: '/usr/bin/ruyi' ++ CHECK_RESULT 1 0 0 'Check ruyi self purge failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi self purge failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi self purge failed' ++ LOG_ERROR 'Check ruyi self purge failed' ++ message='Check ruyi self purge failed' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'Check ruyi self purge failed' +Tue Dec 5 02:05:40 2023 - ERROR - Check ruyi self purge failed ++ (( exec_result++ )) ++ LOG_ERROR 'oe_test_ruyi.sh line 95' ++ message='oe_test_ruyi.sh line 95' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'oe_test_ruyi.sh line 95' +Tue Dec 5 02:05:40 2023 - ERROR - oe_test_ruyi.sh line 95 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi version +Ruyi 0.2.0-beta.20231204 +Copyright (C) 2023 Institute of Software, Chinese Academy of Sciences (ISCAS). +All rights reserved. +License: Apache-2.0 ++ CHECK_RESULT 0 0 1 'Check ruyi purge exists failed' ++ actual_result=0 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi purge exists failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 1 -eq 0 ']' ++ test 0x == 0x ++ test -n 'Check ruyi purge exists failed' ++ LOG_ERROR 'Check ruyi purge exists failed' ++ message='Check ruyi purge exists failed' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'Check ruyi purge exists failed' +Tue Dec 5 02:05:40 2023 - ERROR - Check ruyi purge exists failed ++ (( exec_result++ )) ++ LOG_ERROR 'oe_test_ruyi.sh line 97' ++ message='oe_test_ruyi.sh line 97' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'oe_test_ruyi.sh line 97' +Tue Dec 5 02:05:40 2023 - ERROR - oe_test_ruyi.sh line 97 ++ '[' 0 -eq 1 ']' ++ return 0 ++ '[' -d '~/.cache/ruyi' ']' ++ CHECK_RESULT 1 0 1 'Check ruyi purge cache dir exists failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi purge cache dir exists failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ '[' -d '~/.local/share/ruyi' ']' ++ CHECK_RESULT 1 0 1 'Check ruyi purge data dir exists failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi purge data dir exists failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ LOG_INFO 'End of the test.' ++ message='End of the test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of the test.' +Tue Dec 5 02:05:40 2023 - INFO - End of the test. ++ CASE_RESULT 0 ++ case_re=0 ++ test -z 6 ++ test 6 -gt 0 ++ LOG_ERROR 'failed to execute the case.' ++ message='failed to execute the case.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'failed to execute the case.' +Tue Dec 5 02:05:41 2023 - ERROR - failed to execute the case. ++ exit 6 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Tue Dec 5 02:05:41 2023 - INFO - start environment cleanup. ++ remove_ruyi +oe_test_ruyi.sh: line 108: remove_ruyi: command not found ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Tue Dec 5 02:05:41 2023 - INFO - Finish environment cleanup! diff --git a/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_admin/2023-12-05-02:03:54.log b/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_admin/2023-12-05-02:03:54.log new file mode 100644 index 0000000000000000000000000000000000000000..301e17d35f3f3a96c927b6558c9d75ec904eb9bc --- /dev/null +++ b/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_admin/2023-12-05-02:03:54.log @@ -0,0 +1,108 @@ ++ source ./common/common_lib.sh +++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib_python.sh +./common/common_lib.sh: line 73: syntax error near unexpected token `}' +./common/common_lib.sh: line 73: `}' ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Tue Dec 5 02:03:54 2023 - INFO - Start environmental preparation. ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 12668 (apt)... +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 47 10.3M 47 4996k 0 0 7037k 0 0:00:01 --:--:-- 0:00:01 7036k 100 10.3M 100 10.3M 0 0 8614k 0 0:00:01 0:00:01 --:--:-- 8620k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ rm -rf /home/pager/.cache//ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Tue Dec 5 02:03:57 2023 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Tue Dec 5 02:03:57 2023 - INFO - Start to run test. ++ test_file=oe_test_ruyi_admin.sh ++ ruyi admin manifest oe_test_ruyi_admin.sh +[ + { + "name": "oe_test_ruyi_admin.sh", + "size": 1267, + "checksums": { + "sha256": "1551d068e39a8d44069cba152f5d521b190f63462be8236bb59757858b891e76", + "sha512": "9d7ca780bd8a665469ed07984b28e766fc993fa2fdb3b73caa5efa9bbfb06a2b394c33fabf1e01670fd51b468730dbb6d5fcc23c29f4c3ad0e86485327853655" + } + } +] ++ CHECK_RESULT 0 0 0 'Check ruyi admin manifest failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi admin manifest failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ LOG_INFO 'End of the test.' ++ message='End of the test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of the test.' +Tue Dec 5 02:03:57 2023 - INFO - End of the test. ++ CASE_RESULT 0 ++ case_re=0 ++ test -z '' ++ test 0 -eq 0 ++ LOG_INFO 'succeed to execute the case.' ++ message='succeed to execute the case.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'succeed to execute the case.' +Tue Dec 5 02:03:57 2023 - INFO - succeed to execute the case. ++ exec_result= ++ exit 0 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Tue Dec 5 02:03:57 2023 - INFO - start environment cleanup. ++ remove_ruyi +oe_test_ruyi_admin.sh: line 39: remove_ruyi: command not found ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Tue Dec 5 02:03:57 2023 - INFO - Finish environment cleanup! diff --git a/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_cmake_ninja/2023-12-05-02:04:45.log b/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_cmake_ninja/2023-12-05-02:04:45.log new file mode 100644 index 0000000000000000000000000000000000000000..d763e4575e257594d5facb7b9d179bf30ec011f3 --- /dev/null +++ b/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_cmake_ninja/2023-12-05-02:04:45.log @@ -0,0 +1,517 @@ ++ source ./common/common_lib.sh +++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib_python.sh +./common/common_lib.sh: line 73: syntax error near unexpected token `}' +./common/common_lib.sh: line 73: `}' ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Tue Dec 5 02:04:45 2023 - INFO - Start environmental preparation. ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 66 10.3M 66 7108k 0 0 6702k 0 0:00:01 0:00:01 --:--:-- 6699k 100 10.3M 100 10.3M 0 0 7388k 0 0:00:01 0:00:01 --:--:-- 7385k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ rm -rf /home/pager/.cache//ruyi ++ DNF_INSTALL 'cmake ninja-build' ++ pkgs='cmake ninja-build' ++ node=1 ++ '[' -z '' ']' ++ tmpfile= +++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/rpm_manage.py install --pkgs 'cmake ninja-build' --node 1 --tempfile '' +Tue Dec 5 02:04:47 2023 - INFO - unsupported package manager: dnf ++ tmpfile2= ++ '[' -z '' ']' ++ tmpfile= ++ APT_INSTALL 'cmake ninja-build' ++ pkgs='cmake ninja-build' ++ node=1 ++ '[' -z '' ']' ++ tmpfile= +++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/deb_manage.py install --pkgs 'cmake ninja-build' --node 1 --tempfile '' ++ tmpfile2='Reading package lists... +E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) +E: Unable to lock directory /var/lib/apt/lists/ +W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) +W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)' ++ '[' -z '' ']' ++ tmpfile='Reading package lists... +E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) +E: Unable to lock directory /var/lib/apt/lists/ +W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) +W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)' ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Tue Dec 5 02:04:47 2023 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Tue Dec 5 02:04:47 2023 - INFO - Start to run test. ++ mkdir build ++ cd build ++ tar zxf ../common/source/zlib-ng-2.1.5.tar.gz ++ ruyi update ++ ruyi install gnu-plct gnu-plct-xthead +info: skipping already installed package gnu-plct-0.20231118.0 +info: downloading +https://mirror.iscas.ac.cn/ruyisdk/dist/RuyiSDK-20231118-T-Head-Sources-riscv64- +plctxthead-linux-gnu.tar.xz to +/home/pager/.cache/ruyi/distfiles/RuyiSDK-20231118-T-Head-Sources-riscv64-plctxt +head-linux-gnu.tar.xz + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2 273M 2 7141k 0 0 7221k 0 0:00:38 --:--:-- 0:00:38 7220k 6 273M 6 17.0M 0 0 8824k 0 0:00:31 0:00:01 0:00:30 8822k 10 273M 10 28.3M 0 0 9744k 0 0:00:28 0:00:02 0:00:26 9743k 15 273M 15 41.8M 0 0 10.4M 0 0:00:26 0:00:03 0:00:23 10.4M 20 273M 20 57.1M 0 0 11.4M 0 0:00:23 0:00:04 0:00:19 11.4M 27 273M 27 74.5M 0 0 12.4M 0 0:00:21 0:00:05 0:00:16 13.5M 34 273M 34 93.9M 0 0 13.4M 0 0:00:20 0:00:06 0:00:14 15.3M 42 273M 42 115M 0 0 14.4M 0 0:00:18 0:00:07 0:00:11 17.3M 50 273M 50 138M 0 0 15.4M 0 0:00:17 0:00:08 0:00:09 19.3M 60 273M 60 164M 0 0 16.4M 0 0:00:16 0:00:09 0:00:07 21.3M 69 273M 69 191M 0 0 17.4M 0 0:00:15 0:00:10 0:00:05 23.3M 80 273M 80 220M 0 0 18.4M 0 0:00:14 0:00:11 0:00:03 25.3M 92 273M 92 252M 0 0 19.4M 0 0:00:14 0:00:12 0:00:02 27.3M 100 273M 100 273M 0 0 20.0M 0 0:00:13 0:00:13 --:--:-- 29.0M +info: extracting +RuyiSDK-20231118-T-Head-Sources-riscv64-plctxthead-linux-gnu.tar.xz for package +gnu-plct-xthead-0.20231118.0 +info: package gnu-plct-xthead-0.20231118.0 installed to +/home/pager/.local/share/ruyi/binaries/x86_64/gnu-plct-xthead-0.20231118.0 ++ ruyi venv -t gnu-plct-xthead sipeed-lpi4a ./coremark_venv +info: Creating a Ruyi virtual environment at coremark_venv... +info: The virtual environment is now created. + +You may activate it by sourcing the appropriate activation script in the +bin directory, and deactivate by invoking `ruyi-deactivate`. + +A fresh sysroot/prefix is also provisioned in the virtual environment. +It is available at the following path: + + /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/coremark_venv/s +ysroot + +The virtual environment also comes with ready-made CMake toolchain file +and Meson cross file. Check the virtual environment root for those; +comments in the files contain usage instructions. + ++ ruyi extract coremark +info: downloading https://mirror.iscas.ac.cn/ruyisdk/dist/coremark-1.01.tar.gz +to /home/pager/.cache/ruyi/distfiles/coremark-1.01.tar.gz + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 391k 100 391k 0 0 1275k 0 --:--:-- --:--:-- --:--:-- 1276k +info: extracting coremark-1.01.tar.gz for package coremark-1.0.1 +info: package coremark-1.0.1 extracted to current working directory ++ . coremark_venv/bin/ruyi-activate +++ '[' coremark_venv/bin/ruyi-activate = oe_test_ruyi_cmake_ninja.sh ']' +++ ruyi-deactivate nondestructive +++ '[' -z '' ']' +++ hash -r +++ '[' -z '' ']' +++ unset RUYI_VENV +++ unset RUYI_VENV_PROMPT +++ '[' '!' nondestructive = nondestructive ']' +++ RUYI_VENV=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/coremark_venv +++ export RUYI_VENV +++ _RUYI_OLD_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ PATH=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/coremark_venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ export PATH +++ hash -r ++++ basename /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/coremark_venv +++ RUYI_VENV_PROMPT=coremark_venv +++ export RUYI_VENV_PROMPT +++ '[' -z '' ']' +++ _RUYI_OLD_PS1= +++ PS1='«Ruyi coremark_venv» ' +++ export PS1 ++ sed -i 's/\bgcc\b/riscv64-plctxthead-linux-gnu-gcc/g' linux64/core_portme.mak ++ make PORT_DIR=linux64 link +riscv64-plctxthead-linux-gnu-gcc -O2 -Ilinux64 -I. -DFLAGS_STR=\""-O2 -lrt"\" -DITERATIONS=0 core_list_join.c core_main.c core_matrix.c core_state.c core_util.c linux64/core_portme.c -o ./coremark.exe -lrt +Link performed along with compile ++ file coremark.exe ++ grep -i RISC-V +coremark.exe: ELF 64-bit LSB executable, UCB RISC-V, RVC, double-float ABI, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-riscv64xthead-lp64d.so.1, BuildID[sha1]=d9510c5fef107e2c56b40547a02f1488471dd2d2, for GNU/Linux 4.15.0, with debug_info, not stripped ++ CHECK_RESULT 0 0 0 'Check ruyi coremark build failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi coremark build failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi-deactivate ++ '[' -z _ ']' ++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin ++ export PATH ++ unset _RUYI_OLD_PATH ++ hash -r ++ '[' -z _ ']' ++ PS1= ++ export PS1 ++ unset _RUYI_OLD_PS1 ++ unset RUYI_VENV ++ unset RUYI_VENV_PROMPT ++ '[' '!' '' = nondestructive ']' ++ unset -f ruyi-deactivate ++ tar zxf ../common/source/zlib-ng-2.1.5.tar.gz ++ cd ./zlib-ng-2.1.5 ++ ruyi venv -t gnu-plct milkv-duo ./zlib_venv +info: Creating a Ruyi virtual environment at zlib_venv... +info: The virtual environment is now created. + +You may activate it by sourcing the appropriate activation script in the +bin directory, and deactivate by invoking `ruyi-deactivate`. + +A fresh sysroot/prefix is also provisioned in the virtual environment. +It is available at the following path: + + /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/z +lib_venv/sysroot + +The virtual environment also comes with ready-made CMake toolchain file +and Meson cross file. Check the virtual environment root for those; +comments in the files contain usage instructions. + ++ . zlib_venv/bin/ruyi-activate +++ '[' zlib_venv/bin/ruyi-activate = oe_test_ruyi_cmake_ninja.sh ']' +++ ruyi-deactivate nondestructive +++ '[' -z '' ']' +++ hash -r +++ '[' -z '' ']' +++ unset RUYI_VENV +++ unset RUYI_VENV_PROMPT +++ '[' '!' nondestructive = nondestructive ']' +++ RUYI_VENV=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_venv +++ export RUYI_VENV +++ _RUYI_OLD_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ PATH=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ export PATH +++ hash -r ++++ basename /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_venv +++ RUYI_VENV_PROMPT=zlib_venv +++ export RUYI_VENV_PROMPT +++ '[' -z '' ']' +++ _RUYI_OLD_PS1= +++ PS1='«Ruyi zlib_venv» ' +++ export PS1 +++ pwd ++ cmake . -G Ninja -DCMAKE_C_COMPILER=riscv64-plct-linux-gnu-gcc -DCMAKE_INSTALL_PREFIX=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install '-DCMAKE_C_FLAGS=-O2 -pipe -g' -DZLIB_COMPAT=ON -DWITH_GTEST=OFF +-- Using CMake version 3.22.1 +-- ZLIB_HEADER_VERSION: 1.3.0 +-- ZLIBNG_HEADER_VERSION: 2.1.5 +-- The C compiler identification is GNU 13.1.0 +-- Detecting C compiler ABI info +-- Detecting C compiler ABI info - done +-- Check for working C compiler: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_venv/bin/riscv64-plct-linux-gnu-gcc - skipped +-- Detecting C compile features +-- Detecting C compile features - done +-- Arch detected: 'riscv64' +-- Basearch of 'riscv64' has been detected as: 'riscv' +-- Performing Test FNO_LTO_AVAILABLE +-- Performing Test FNO_LTO_AVAILABLE - Success +-- Looking for arm_acle.h +-- Looking for arm_acle.h - not found +-- Looking for sys/auxv.h +-- Looking for sys/auxv.h - found +-- Looking for sys/sdt.h +-- Looking for sys/sdt.h - not found +-- Looking for unistd.h +-- Looking for unistd.h - found +-- Looking for sys/types.h +-- Looking for sys/types.h - found +-- Looking for stdint.h +-- Looking for stdint.h - found +-- Looking for stddef.h +-- Looking for stddef.h - found +-- Check size of off64_t +-- Check size of off64_t - done +-- Looking for fseeko +-- Looking for fseeko - found +-- Looking for strerror +-- Looking for strerror - found +-- Looking for posix_memalign +-- Looking for posix_memalign - found +-- Looking for aligned_alloc +-- Looking for aligned_alloc - found +-- Performing Test HAVE_NO_INTERPOSITION +-- Performing Test HAVE_NO_INTERPOSITION - Success +-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_HIDDEN +-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_HIDDEN - Success +-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_INTERNAL +-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_INTERNAL - Success +-- Performing Test HAVE_ATTRIBUTE_ALIGNED +-- Performing Test HAVE_ATTRIBUTE_ALIGNED - Success +-- Performing Test HAVE_THREAD_LOCAL +-- Performing Test HAVE_THREAD_LOCAL - Success +-- Performing Test HAVE_BUILTIN_CTZ +-- Performing Test HAVE_BUILTIN_CTZ - Success +-- Performing Test HAVE_BUILTIN_CTZLL +-- Performing Test HAVE_BUILTIN_CTZLL - Success +-- Performing Test HAVE_PTRDIFF_T +-- Performing Test HAVE_PTRDIFF_T - Success +-- Performing Test HAVE_RVV_INTRIN +-- Performing Test HAVE_RVV_INTRIN - Success +-- Architecture-specific source files: arch/riscv/riscv_features.c;arch/riscv/riscv_features.c;arch/riscv/adler32_rvv.c;arch/riscv/chunkset_rvv.c;arch/riscv/compare256_rvv.c;arch/riscv/slide_hash_rvv.c +-- The following features have been enabled: + + * CMAKE_BUILD_TYPE, Build type: Release (default) + * WITH_GZFILEOP, Compile with support for gzFile related functions + * ZLIB_COMPAT, Compile with zlib compatible API + * ZLIB_ENABLE_TESTS, Build test binaries + * ZLIBNG_ENABLE_TESTS, Test zlib-ng specific API + * WITH_SANITIZER, Enable sanitizer support + * WITH_OPTIM, Build with optimisation + * WITH_NEW_STRATEGIES, Use new strategies + * WITH_RVV, Build with RVV intrinsics + +-- The following features have been disabled: + + * ZLIB_SYMBOL_PREFIX, Publicly exported symbols DO NOT have a custom prefix + * WITH_GTEST, Build gtest_zlib + * WITH_FUZZERS, Build test/fuzz + * WITH_BENCHMARKS, Build test/benchmarks + * WITH_BENCHMARK_APPS, Build application benchmarks + * WITH_NATIVE_INSTRUCTIONS, Instruct the compiler to use the full instruction set on this host (gcc/clang -march=native) + * WITH_MAINTAINER_WARNINGS, Build with project maintainer warnings + * WITH_CODE_COVERAGE, Enable code coverage reporting + * WITH_INFLATE_STRICT, Build with strict inflate distance checking + * WITH_INFLATE_ALLOW_INVALID_DIST, Build with zero fill for inflate invalid distances + * INSTALL_UTILS, Copy minigzip and minideflate during install + +CMake Warning at CMakeLists.txt:1287 (message): + Building to source folder is not recommended. Cpack will be unable to + generate source package. + + +-- Configuring done +-- Generating done +-- Build files have been written to: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5 ++ ninja +[1/93] Building C object CMakeFiles/zlib.dir/cpu_features.c.o +[2/93] Building C object CMakeFiles/zlib.dir/adler32_fold.c.o +[3/93] Building C object CMakeFiles/zlib.dir/crc32_fold.c.o +[4/93] Building C object CMakeFiles/zlib.dir/compress.c.o +[5/93] Building C object CMakeFiles/zlib.dir/crc32_braid_comb.c.o +[6/93] Building C object CMakeFiles/zlib.dir/crc32_braid.c.o +[7/93] Building C object CMakeFiles/zlib.dir/adler32.c.o +[8/93] Building C object CMakeFiles/zlib.dir/deflate_huff.c.o +[9/93] Building C object CMakeFiles/zlib.dir/deflate_fast.c.o +[10/93] Building C object CMakeFiles/zlib.dir/compare256.c.o +[11/93] Building C object CMakeFiles/zlib.dir/chunkset.c.o +[12/93] Building C object CMakeFiles/zlib.dir/deflate_medium.c.o +[13/93] Building C object CMakeFiles/zlib.dir/deflate_quick.c.o +[14/93] Building C object CMakeFiles/zlib.dir/deflate_rle.c.o +[15/93] Building C object CMakeFiles/zlib.dir/deflate_slow.c.o +[16/93] Building C object CMakeFiles/zlib.dir/deflate_stored.c.o +[17/93] Building C object CMakeFiles/zlib.dir/functable.c.o +[18/93] Building C object CMakeFiles/zlib.dir/insert_string.c.o +[19/93] Building C object CMakeFiles/zlib.dir/deflate.c.o +[20/93] Building C object CMakeFiles/zlib.dir/slide_hash.c.o +[21/93] Building C object CMakeFiles/zlib.dir/inftrees.c.o +[22/93] Building C object CMakeFiles/zlib.dir/insert_string_roll.c.o +[23/93] Building C object CMakeFiles/zlib.dir/uncompr.c.o +[24/93] Building C object CMakeFiles/zlib.dir/zutil.c.o +[25/93] Building C object CMakeFiles/zlib.dir/arch/riscv/riscv_features.c.o +/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/arch/riscv/riscv_features.c: In function 'is_kernel_version_greater_or_equal_to_6_5': +/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/arch/riscv/riscv_features.c:22:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 22 | if (major > 6 || major == 6 && minor >= 5) + | ~~~~~~~~~~~^~~~~~~~~~~~~ +[26/93] Building C object CMakeFiles/zlib.dir/infback.c.o +[27/93] Building C object CMakeFiles/zlib.dir/arch/riscv/adler32_rvv.c.o +[28/93] Building C object CMakeFiles/zlibstatic.dir/adler32_fold.c.o +[29/93] Building C object CMakeFiles/zlib.dir/gzlib.c.o +[30/93] Building C object CMakeFiles/zlib.dir/gzwrite.c.o +[31/93] Building C object CMakeFiles/zlib.dir/arch/riscv/compare256_rvv.c.o +[32/93] Building C object CMakeFiles/zlibstatic.dir/adler32.c.o +[33/93] Building C object CMakeFiles/zlib.dir/trees.c.o +[34/93] Building C object CMakeFiles/zlib.dir/arch/riscv/slide_hash_rvv.c.o +[35/93] Building C object CMakeFiles/zlib.dir/arch/riscv/chunkset_rvv.c.o +[36/93] Building C object CMakeFiles/zlibstatic.dir/compare256.c.o +[37/93] Building C object CMakeFiles/zlib.dir/gzread.c.o +[38/93] Building C object CMakeFiles/zlibstatic.dir/cpu_features.c.o +[39/93] Building C object CMakeFiles/zlibstatic.dir/chunkset.c.o +[40/93] Building C object CMakeFiles/zlibstatic.dir/compress.c.o +[41/93] Building C object CMakeFiles/zlibstatic.dir/crc32_braid.c.o +[42/93] Building C object CMakeFiles/zlib.dir/inflate.c.o +[43/93] Building C object CMakeFiles/zlibstatic.dir/crc32_fold.c.o +[44/93] Building C object CMakeFiles/zlibstatic.dir/crc32_braid_comb.c.o +[45/93] Building C object CMakeFiles/zlibstatic.dir/deflate_fast.c.o +[46/93] Building C object CMakeFiles/zlibstatic.dir/deflate_huff.c.o +[47/93] Building C object CMakeFiles/zlibstatic.dir/deflate_slow.c.o +[48/93] Building C object CMakeFiles/zlibstatic.dir/deflate_medium.c.o +[49/93] Building C object CMakeFiles/zlibstatic.dir/deflate_rle.c.o +[50/93] Building C object CMakeFiles/zlibstatic.dir/functable.c.o +[51/93] Building C object CMakeFiles/zlibstatic.dir/deflate_stored.c.o +[52/93] Building C object CMakeFiles/zlibstatic.dir/deflate_quick.c.o +[53/93] Linking C shared library libz.so.1.3.0.zlib-ng +[54/93] Building C object CMakeFiles/zlibstatic.dir/deflate.c.o +[55/93] Building C object CMakeFiles/zlibstatic.dir/insert_string_roll.c.o +[56/93] Building C object CMakeFiles/zlibstatic.dir/insert_string.c.o +[57/93] Creating library symlink libz.so.1 libz.so +[58/93] Building C object CMakeFiles/zlibstatic.dir/slide_hash.c.o +[59/93] Building C object CMakeFiles/zlibstatic.dir/inftrees.c.o +[60/93] Building C object CMakeFiles/zlibstatic.dir/uncompr.c.o +[61/93] Building C object CMakeFiles/zlibstatic.dir/zutil.c.o +[62/93] Building C object CMakeFiles/zlibstatic.dir/infback.c.o +[63/93] Building C object CMakeFiles/zlibstatic.dir/arch/riscv/riscv_features.c.o +/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/arch/riscv/riscv_features.c: In function 'is_kernel_version_greater_or_equal_to_6_5': +/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/arch/riscv/riscv_features.c:22:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 22 | if (major > 6 || major == 6 && minor >= 5) + | ~~~~~~~~~~~^~~~~~~~~~~~~ +[64/93] Building C object CMakeFiles/zlibstatic.dir/arch/riscv/adler32_rvv.c.o +[65/93] Building C object CMakeFiles/zlibstatic.dir/arch/riscv/compare256_rvv.c.o +[66/93] Building C object CMakeFiles/zlibstatic.dir/arch/riscv/slide_hash_rvv.c.o +[67/93] Building C object CMakeFiles/zlibstatic.dir/gzwrite.c.o +[68/93] Building C object CMakeFiles/zlibstatic.dir/trees.c.o +[69/93] Building C object CMakeFiles/zlibstatic.dir/gzlib.c.o +[70/93] Building C object CMakeFiles/zlibstatic.dir/arch/riscv/chunkset_rvv.c.o +[71/93] Building C object CMakeFiles/zlibstatic.dir/gzread.c.o +[72/93] Building C object test/CMakeFiles/switchlevels.dir/switchlevels.c.o +[73/93] Building C object test/CMakeFiles/minigzip.dir/minigzip.c.o +[74/93] Building C object test/CMakeFiles/example.dir/example.c.o +[75/93] Building C object test/CMakeFiles/minideflate.dir/minideflate.c.o +[76/93] Building C object CMakeFiles/zlibstatic.dir/inflate.c.o +[77/93] Building C object test/CMakeFiles/makefixed.dir/__/tools/makefixed.c.o +[78/93] Building C object test/CMakeFiles/infcover.dir/infcover.c.o +[79/93] Building C object test/CMakeFiles/infcover.dir/__/inftrees.c.o +[80/93] Building C object test/CMakeFiles/maketrees.dir/__/zutil.c.o +[81/93] Building C object test/CMakeFiles/makefixed.dir/__/inftrees.c.o +[82/93] Linking C executable switchlevels +[83/93] Building C object test/CMakeFiles/maketrees.dir/__/tools/maketrees.c.o +[84/93] Linking C executable example +[85/93] Building C object test/CMakeFiles/makecrct.dir/__/tools/makecrct.c.o +[86/93] Linking C executable minideflate +[87/93] Linking C executable infcover +[88/93] Linking C executable makefixed +[89/93] Linking C executable makecrct +[90/93] Linking C static library libz.a +[91/93] Building C object test/CMakeFiles/maketrees.dir/__/trees.c.o +[92/93] Linking C executable minigzip +[93/93] Linking C executable maketrees ++ ninja install +[0/1] Install the project... +-- Install configuration: "Release" +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/lib/libz.so.1.3.0.zlib-ng +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/lib/libz.so.1 +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/lib/libz.so +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/lib/libz.a +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/include/zlib.h +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/include/zlib_name_mangling.h +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/include/zconf.h +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/lib/pkgconfig/zlib.pc +++ pwd ++ ls /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/include +zconf.h +zlib.h +zlib_name_mangling.h ++ CHECK_RESULT 0 0 0 'Check ruyi zlib-ng build failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi zlib-ng build failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi-deactivate ++ '[' -z _ ']' ++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin ++ export PATH ++ unset _RUYI_OLD_PATH ++ hash -r ++ '[' -z _ ']' ++ PS1= ++ export PS1 ++ unset _RUYI_OLD_PS1 ++ unset RUYI_VENV ++ unset RUYI_VENV_PROMPT ++ '[' '!' '' = nondestructive ']' ++ unset -f ruyi-deactivate ++ cd .. ++ cd .. ++ rm -rf build ++ LOG_INFO 'End of the test.' ++ message='End of the test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of the test.' +Tue Dec 5 02:05:29 2023 - INFO - End of the test. ++ CASE_RESULT 0 ++ case_re=0 ++ test -z '' ++ test 0 -eq 0 ++ LOG_INFO 'succeed to execute the case.' ++ message='succeed to execute the case.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'succeed to execute the case.' +Tue Dec 5 02:05:29 2023 - INFO - succeed to execute the case. ++ exec_result= ++ exit 0 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Tue Dec 5 02:05:29 2023 - INFO - start environment cleanup. ++ remove_ruyi +oe_test_ruyi_cmake_ninja.sh: line 67: remove_ruyi: command not found ++ PKG_REMOVE ++ node=1 ++ pkg_list= ++ mode=0 ++ [[ -z Reading package lists... +E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) +E: Unable to lock directory /var/lib/apt/lists/ +W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) +W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied) ]] ++ '[' 0 -ne 0 ']' ++ '[' 1 == 0 ']' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/rpm_manage.py remove --node 1 --pkgs '' --tempfile 'Reading package lists... +E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) +E: Unable to lock directory /var/lib/apt/lists/ +W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) +W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)' +Tue Dec 5 02:05:29 2023 - INFO - unsupported package manager: dnf +(0, None) ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/deb_manage.py remove --node 1 --pkgs '' --tempfile 'Reading package lists... +E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) +E: Unable to lock directory /var/lib/apt/lists/ +W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) +W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)' +Traceback (most recent call last): + File "/home/pager/Desktop/mugen-ruyi/libs/locallibs/deb_manage.py", line 183, in + exitcode = deb_remove(args.pkgs, args.node, args.tempfile) + File "/home/pager/Desktop/mugen-ruyi/libs/locallibs/deb_manage.py", line 154, in deb_remove + with open(tmpfile, "r") as f: +FileNotFoundError: [Errno 2] No such file or directory: 'Reading package lists...\nE: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)\nE: Unable to lock directory /var/lib/apt/lists/\nW: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)\nW: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)' ++ '[' 0 -ne 0 ']' ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Tue Dec 5 02:05:29 2023 - INFO - Finish environment cleanup! diff --git a/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_llvm/2023-12-05-02:03:57.log b/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_llvm/2023-12-05-02:03:57.log new file mode 100644 index 0000000000000000000000000000000000000000..4e0a458c9e8c520a32b061c6b4c8a0857b40bca8 --- /dev/null +++ b/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_llvm/2023-12-05-02:03:57.log @@ -0,0 +1,235 @@ ++ source ./common/common_lib.sh +++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib_python.sh +./common/common_lib.sh: line 73: syntax error near unexpected token `}' +./common/common_lib.sh: line 73: `}' ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Tue Dec 5 02:03:57 2023 - INFO - Start environmental preparation. ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 54 10.3M 54 5774k 0 0 6308k 0 0:00:01 --:--:-- 0:00:01 6303k 100 10.3M 100 10.3M 0 0 7357k 0 0:00:01 0:00:01 --:--:-- 7359k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ rm -rf /home/pager/.cache//ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Tue Dec 5 02:03:59 2023 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Tue Dec 5 02:03:59 2023 - INFO - Start to run test. ++ mkdir llvm_test +mkdir: cannot create directory ‘llvm_test’: File exists ++ cd llvm_test ++ qemu_pkg=qemu-user-riscv-upstream ++ qemu_cmd='-e qemu-user-riscv-upstream' ++ qemu_bin=ruyi-qemu +++ uname -m ++ '[' x86_64 == riscv64 ']' ++ ruyi update +++ ruyi list +++ grep -v 'no binary for current host' +++ grep -E 'slug: llvm-upstream-[0-9]+' ++ pe=' - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121' ++ '[' -z ' - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121' ']' ++ ruyi install llvm-upstream gnu-plct qemu-user-riscv-upstream +info: downloading +https://mirror.iscas.ac.cn/ruyisdk/dist/llvm-17.0.5.ruyi-20231121.amd64.tar.zst +to /home/pager/.cache/ruyi/distfiles/llvm-17.0.5.ruyi-20231121.amd64.tar.zst + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 398M 0 95240 0 0 441k 0 0:15:25 --:--:-- 0:15:25 440k 2 398M 2 9985k 0 0 8253k 0 0:00:49 0:00:01 0:00:48 8252k 5 398M 5 19.9M 0 0 9262k 0 0:00:44 0:00:02 0:00:42 9261k 7 398M 7 31.8M 0 0 9.9M 0 0:00:40 0:00:03 0:00:37 9.9M 11 398M 11 45.6M 0 0 10.8M 0 0:00:36 0:00:04 0:00:32 10.8M 15 398M 15 61.5M 0 0 11.8M 0 0:00:33 0:00:05 0:00:28 12.3M 19 398M 19 79.4M 0 0 12.7M 0 0:00:31 0:00:06 0:00:25 13.9M 24 398M 24 99.3M 0 0 13.7M 0 0:00:28 0:00:07 0:00:21 15.8M 30 398M 30 121M 0 0 14.7M 0 0:00:27 0:00:08 0:00:19 17.8M 36 398M 36 144M 0 0 15.7M 0 0:00:25 0:00:09 0:00:16 19.8M 42 398M 42 170M 0 0 16.7M 0 0:00:23 0:00:10 0:00:13 21.8M 49 398M 49 198M 0 0 17.6M 0 0:00:22 0:00:11 0:00:11 23.7M 57 398M 57 228M 0 0 18.6M 0 0:00:21 0:00:12 0:00:09 25.7M 65 398M 65 259M 0 0 19.6M 0 0:00:20 0:00:13 0:00:07 27.7M 73 398M 73 293M 0 0 20.6M 0 0:00:19 0:00:14 0:00:05 29.7M 82 398M 82 329M 0 0 21.6M 0 0:00:18 0:00:15 0:00:03 31.8M 93 398M 93 373M 0 0 23.0M 0 0:00:17 0:00:16 0:00:01 35.0M 100 398M 100 398M 0 0 23.8M 0 0:00:16 0:00:16 --:--:-- 37.8M +info: extracting llvm-17.0.5.ruyi-20231121.amd64.tar.zst for package +llvm-upstream-17.0.5-ruyi.20231121 +info: package llvm-upstream-17.0.5-ruyi.20231121 installed to +/home/pager/.local/share/ruyi/binaries/x86_64/llvm-upstream-17.0.5-ruyi.20231121 +info: downloading +https://mirror.iscas.ac.cn/ruyisdk/dist/RuyiSDK-20231118-PLCT-Sources-riscv64-pl +ct-linux-gnu.tar.xz to +/home/pager/.cache/ruyi/distfiles/RuyiSDK-20231118-PLCT-Sources-riscv64-plct-lin +ux-gnu.tar.xz + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 232M 0 111k 0 0 378k 0 0:10:28 --:--:-- 0:10:28 377k 9 232M 9 23.0M 0 0 17.8M 0 0:00:13 0:00:01 0:00:12 17.8M 20 232M 20 47.6M 0 0 20.7M 0 0:00:11 0:00:02 0:00:09 20.7M 31 232M 31 72.1M 0 0 21.9M 0 0:00:10 0:00:03 0:00:07 21.9M 41 232M 41 96.7M 0 0 22.5M 0 0:00:10 0:00:04 0:00:06 22.5M 52 232M 52 121M 0 0 22.9M 0 0:00:10 0:00:05 0:00:05 24.2M 62 232M 62 145M 0 0 23.1M 0 0:00:10 0:00:06 0:00:04 24.5M 73 232M 73 170M 0 0 23.3M 0 0:00:09 0:00:07 0:00:02 24.5M 83 232M 83 195M 0 0 23.5M 0 0:00:09 0:00:08 0:00:01 24.5M 94 232M 94 219M 0 0 23.6M 0 0:00:09 0:00:09 --:--:-- 24.6M 100 232M 100 232M 0 0 23.7M 0 0:00:09 0:00:09 --:--:-- 24.6M +info: extracting RuyiSDK-20231118-PLCT-Sources-riscv64-plct-linux-gnu.tar.xz for +package gnu-plct-0.20231118.0 +info: package gnu-plct-0.20231118.0 installed to +/home/pager/.local/share/ruyi/binaries/x86_64/gnu-plct-0.20231118.0 +info: downloading +https://mirror.iscas.ac.cn/ruyisdk/dist/qemu-user-riscv-8.1.2.ruyi-20231121.amd6 +4.tar.zst to +/home/pager/.cache/ruyi/distfiles/qemu-user-riscv-8.1.2.ruyi-20231121.amd64.tar. +zst + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 94 14.4M 94 13.6M 0 0 11.8M 0 0:00:01 0:00:01 --:--:-- 11.8M 100 14.4M 100 14.4M 0 0 12.2M 0 0:00:01 0:00:01 --:--:-- 12.2M +info: extracting qemu-user-riscv-8.1.2.ruyi-20231121.amd64.tar.zst for package +qemu-user-riscv-upstream-8.1.2-ruyi.20231121 +info: package qemu-user-riscv-upstream-8.1.2-ruyi.20231121 installed to +/home/pager/.local/share/ruyi/binaries/x86_64/qemu-user-riscv-upstream-8.1.2-ruy +i.20231121 ++ CHECK_RESULT 0 0 0 'Check ruyi toolchain install failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi toolchain install failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi venv -t llvm-upstream --sysroot-from gnu-plct -e qemu-user-riscv-upstream generic venv +info: Creating a Ruyi virtual environment at venv... +info: The virtual environment is now created. + +You may activate it by sourcing the appropriate activation script in the +bin directory, and deactivate by invoking `ruyi-deactivate`. + +A fresh sysroot/prefix is also provisioned in the virtual environment. +It is available at the following path: + + /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/llvm_test/venv/sysroo +t + +The virtual environment also comes with ready-made CMake toolchain file +and Meson cross file. Check the virtual environment root for those; +comments in the files contain usage instructions. + ++ CHECK_RESULT 0 0 0 'Check ruyi venv creation failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi venv creation failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ . venv/bin/ruyi-activate +++ '[' venv/bin/ruyi-activate = oe_test_ruyi_llvm.sh ']' +++ ruyi-deactivate nondestructive +++ '[' -z '' ']' +++ hash -r +++ '[' -z '' ']' +++ unset RUYI_VENV +++ unset RUYI_VENV_PROMPT +++ '[' '!' nondestructive = nondestructive ']' +++ RUYI_VENV=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/llvm_test/venv +++ export RUYI_VENV +++ _RUYI_OLD_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ PATH=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/llvm_test/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ export PATH +++ hash -r ++++ basename /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/llvm_test/venv +++ RUYI_VENV_PROMPT=venv +++ export RUYI_VENV_PROMPT +++ '[' -z '' ']' +++ _RUYI_OLD_PS1= +++ PS1='«Ruyi venv» ' +++ export PS1 ++ cat ++ clang -O3 hello_ruyi.c -o hello_ruyi.o ++ CHECK_RESULT 0 0 0 'Check ruyi llvm compilation failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi llvm compilation failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi-qemu ./hello_ruyi.o ++ grep 'hello, ruyi' +hello, ruyi ++ CHECK_RESULT 0 0 0 'Check ruyi binary failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi binary failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi-deactivate ++ '[' -z _ ']' ++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin ++ export PATH ++ unset _RUYI_OLD_PATH ++ hash -r ++ '[' -z _ ']' ++ PS1= ++ export PS1 ++ unset _RUYI_OLD_PS1 ++ unset RUYI_VENV ++ unset RUYI_VENV_PROMPT ++ '[' '!' '' = nondestructive ']' ++ unset -f ruyi-deactivate ++ cd .. ++ rm -rf llvm_test ++ LOG_INFO 'End of the test.' ++ message='End of the test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of the test.' +Tue Dec 5 02:04:45 2023 - INFO - End of the test. ++ CASE_RESULT 0 ++ case_re=0 ++ test -z '' ++ test 0 -eq 0 ++ LOG_INFO 'succeed to execute the case.' ++ message='succeed to execute the case.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'succeed to execute the case.' +Tue Dec 5 02:04:45 2023 - INFO - succeed to execute the case. ++ exec_result= ++ exit 0 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Tue Dec 5 02:04:45 2023 - INFO - start environment cleanup. ++ remove_ruyi +oe_test_ruyi_llvm.sh: line 78: remove_ruyi: command not found ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Tue Dec 5 02:04:45 2023 - INFO - Finish environment cleanup! diff --git a/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_qemu/2023-12-05-02:05:29.log b/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_qemu/2023-12-05-02:05:29.log new file mode 100644 index 0000000000000000000000000000000000000000..cb58e09f44f39963beaae5c1bc2afec9ff4af792 --- /dev/null +++ b/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_qemu/2023-12-05-02:05:29.log @@ -0,0 +1,86 @@ ++ source ./common/common_lib.sh +++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib_python.sh +./common/common_lib.sh: line 73: syntax error near unexpected token `}' +./common/common_lib.sh: line 73: `}' ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Tue Dec 5 02:05:29 2023 - INFO - Start environmental preparation. ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 50 10.3M 50 5396k 0 0 6354k 0 0:00:01 --:--:-- 0:00:01 6348k 100 10.3M 100 10.3M 0 0 9791k 0 0:00:01 0:00:01 --:--:-- 9797k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ rm -rf /home/pager/.cache//ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Tue Dec 5 02:05:31 2023 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Tue Dec 5 02:05:31 2023 - INFO - Start to run test. ++ mkdir qemu_test +mkdir: cannot create directory ‘qemu_test’: File exists ++ cd qemu_test ++ ruyi update +++ ruyi list +++ grep -E 'slug: qemu-user-riscv-upstream-[0-9]+' +++ grep -v 'no binary for current host' ++ pe= ++ '[' -z '' ']' +++ uname -m ++ LOG_INFO 'No qemu-user-riscv-upstream available for current host x86_64, skip' ++ message='No qemu-user-riscv-upstream available for current host x86_64, skip' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'No qemu-user-riscv-upstream available for current host x86_64, skip' +Tue Dec 5 02:05:32 2023 - INFO - No qemu-user-riscv-upstream available for current host x86_64, skip ++ exit 0 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Tue Dec 5 02:05:32 2023 - INFO - start environment cleanup. ++ remove_ruyi +oe_test_ruyi_qemu.sh: line 73: remove_ruyi: command not found ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Tue Dec 5 02:05:32 2023 - INFO - Finish environment cleanup! diff --git a/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_venv/2023-12-05-02:05:41.log b/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_venv/2023-12-05-02:05:41.log new file mode 100644 index 0000000000000000000000000000000000000000..73972d1a2ee2ae695d257fd1182dbb9bb0ef4265 --- /dev/null +++ b/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_venv/2023-12-05-02:05:41.log @@ -0,0 +1,185 @@ ++ source ./common/common_lib.sh +++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib_python.sh +./common/common_lib.sh: line 73: syntax error near unexpected token `}' +./common/common_lib.sh: line 73: `}' ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Tue Dec 5 02:05:41 2023 - INFO - Start environmental preparation. ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 32 10.3M 32 3442k 0 0 6030k 0 0:00:01 --:--:-- 0:00:01 6028k 100 10.3M 100 10.3M 0 0 8516k 0 0:00:01 0:00:01 --:--:-- 8523k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ rm -rf /home/pager/.cache//ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Tue Dec 5 02:05:42 2023 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Tue Dec 5 02:05:42 2023 - INFO - Start to run test. ++ ruyi update ++ ruyi install gnu-plct +info: downloading +https://mirror.iscas.ac.cn/ruyisdk/dist/RuyiSDK-20231118-PLCT-Sources-riscv64-pl +ct-linux-gnu.tar.xz to +/home/pager/.cache/ruyi/distfiles/RuyiSDK-20231118-PLCT-Sources-riscv64-plct-lin +ux-gnu.tar.xz + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 232M 0 11088 0 0 62489 0 1:04:59 --:--:-- 1:04:59 62292 3 232M 3 9492k 0 0 8125k 0 0:00:29 0:00:01 0:00:28 8119k 8 232M 8 19.3M 0 0 9139k 0 0:00:26 0:00:02 0:00:24 9139k 13 232M 13 30.7M 0 0 9946k 0 0:00:23 0:00:03 0:00:20 9943k 19 232M 19 44.2M 0 0 10.6M 0 0:00:21 0:00:04 0:00:17 10.6M 25 232M 25 59.7M 0 0 11.5M 0 0:00:20 0:00:05 0:00:15 11.9M 33 232M 33 77.2M 0 0 12.5M 0 0:00:18 0:00:06 0:00:12 13.5M 41 232M 41 96.6M 0 0 13.4M 0 0:00:17 0:00:07 0:00:10 15.4M 50 232M 50 118M 0 0 14.4M 0 0:00:16 0:00:08 0:00:08 17.4M 60 232M 60 141M 0 0 15.4M 0 0:00:15 0:00:09 0:00:06 19.4M 71 232M 71 167M 0 0 16.4M 0 0:00:14 0:00:10 0:00:04 21.4M 83 232M 83 194M 0 0 17.4M 0 0:00:13 0:00:11 0:00:02 23.4M 96 232M 96 224M 0 0 18.4M 0 0:00:12 0:00:12 --:--:-- 25.4M 100 232M 100 232M 0 0 18.6M 0 0:00:12 0:00:12 --:--:-- 26.7M +info: extracting RuyiSDK-20231118-PLCT-Sources-riscv64-plct-linux-gnu.tar.xz for +package gnu-plct-0.20231118.0 +info: package gnu-plct-0.20231118.0 installed to +/home/pager/.local/share/ruyi/binaries/x86_64/gnu-plct-0.20231118.0 ++ ruyi venv --toolchain gnu-plct milkv-duo test-venv ++ grep 'The virtual environment is now created.' +info: The virtual environment is now created. ++ CHECK_RESULT 0 0 0 'Check ruyi venv install failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi venv install failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ '[' -f ./test-venv/bin/ruyi-activate ']' ++ CHECK_RESULT 0 0 0 'Check ruyi venv activate file failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi venv activate file failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ oldps1= ++ source ./test-venv/bin/ruyi-activate +++ '[' ./test-venv/bin/ruyi-activate = oe_test_ruyi_venv.sh ']' +++ ruyi-deactivate nondestructive +++ '[' -z '' ']' +++ hash -r +++ '[' -z '' ']' +++ unset RUYI_VENV +++ unset RUYI_VENV_PROMPT +++ '[' '!' nondestructive = nondestructive ']' +++ RUYI_VENV=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/test-venv +++ export RUYI_VENV +++ _RUYI_OLD_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ PATH=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/test-venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ export PATH +++ hash -r ++++ basename /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/test-venv +++ RUYI_VENV_PROMPT=test-venv +++ export RUYI_VENV_PROMPT +++ '[' -z '' ']' +++ _RUYI_OLD_PS1= +++ PS1='«Ruyi test-venv» ' +++ export PS1 ++ echo '«Ruyi test-venv» ' ++ grep test-venv +«Ruyi test-venv» ++ CHECK_RESULT 0 0 0 'Check activate ruyi venv PS1 failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check activate ruyi venv PS1 failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi-deactivate ++ '[' -z _ ']' ++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin ++ export PATH ++ unset _RUYI_OLD_PATH ++ hash -r ++ '[' -z _ ']' ++ PS1= ++ export PS1 ++ unset _RUYI_OLD_PS1 ++ unset RUYI_VENV ++ unset RUYI_VENV_PROMPT ++ '[' '!' '' = nondestructive ']' ++ unset -f ruyi-deactivate ++ '[' '' == '' ']' ++ CHECK_RESULT 0 0 0 'Check deactivate ruyi venv PS1 failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check deactivate ruyi venv PS1 failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ rm -rf test-venv ++ LOG_INFO 'End of the test.' ++ message='End of the test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of the test.' +Tue Dec 5 02:06:10 2023 - INFO - End of the test. ++ CASE_RESULT 0 ++ case_re=0 ++ test -z '' ++ test 0 -eq 0 ++ LOG_INFO 'succeed to execute the case.' ++ message='succeed to execute the case.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'succeed to execute the case.' +Tue Dec 5 02:06:10 2023 - INFO - succeed to execute the case. ++ exec_result= ++ exit 0 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Tue Dec 5 02:06:10 2023 - INFO - start environment cleanup. ++ remove_ruyi +oe_test_ruyi_venv.sh: line 50: remove_ruyi: command not found ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Tue Dec 5 02:06:10 2023 - INFO - Finish environment cleanup! diff --git a/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_xdg/2023-12-05-02:09:17.log b/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_xdg/2023-12-05-02:09:17.log new file mode 100644 index 0000000000000000000000000000000000000000..41041ffbaf02a1cdb570aaab389177f02dfca103 --- /dev/null +++ b/pre_round4/mugen_20231204/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_xdg/2023-12-05-02:09:17.log @@ -0,0 +1,351 @@ ++ source ./common/common_lib.sh +++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib_python.sh +./common/common_lib.sh: line 73: syntax error near unexpected token `}' +./common/common_lib.sh: line 73: `}' ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Tue Dec 5 02:09:17 2023 - INFO - Start environmental preparation. ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 19 10.3M 19 2046k 0 0 3732k 0 0:00:02 --:--:-- 0:00:02 3727k 83 10.3M 83 8846k 0 0 5691k 0 0:00:01 0:00:01 --:--:-- 5689k 100 10.3M 100 10.3M 0 0 5941k 0 0:00:01 0:00:01 --:--:-- 5939k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf /root/.cache//ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Tue Dec 5 02:09:19 2023 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Tue Dec 5 02:09:19 2023 - INFO - Start to run test. ++ export XDG_CACHE_HOME=/root/.cache/test ++ XDG_CACHE_HOME=/root/.cache/test ++ export XDG_DATA_HOME=/root/.local/share/test ++ XDG_DATA_HOME=/root/.local/share/test ++ mkdir /root/.cache/test /root/.local/share/test +mkdir: cannot create directory ‘/root/.local/share/test’: No such file or directory ++ xdg_ruyi_dir=/root/.cache/test/ruyi ++ xdg_ruyi_data_dir=/root/.local/share/test/ruyi ++ default_ruyi_dir=/root/.cache/ruyi ++ default_ruyi_data_dir=/root/.local/share/ruyi ++ ruyi list +List of available packages: + +* source/coremark + - 1.0.2-pre.20230125 (prerelease, latest-prerelease) + - 1.0.1 (latest) +* source/ruyisdk-demo + - 0.20231114.0 (latest) +* emulator/qemu-user-riscv-upstream + - 8.1.2-ruyi.20231121 (latest) +* toolchain/llvm-upstream + - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121 +* toolchain/gnu-plct-xthead + - 0.20231118.0 (latest) slug: gnu-plct-xthead-20231118 +* toolchain/gnu-upstream + - 0.20231118.0 (latest) slug: gnu-upstream-20231118 +* toolchain/gnu-plct + - 0.20231118.0 (latest) slug: gnu-plct-20231118 ++ CHECK_RESULT 0 0 0 'Check ruyi empty list failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi empty list failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi update ++ CHECK_RESULT 0 0 0 'Check ruyi update failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi update failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 +++ ruyi list +++ grep -e '^* ' +++ wc -l ++ pkgcnt=7 ++ CHECK_RESULT 7 0 1 'Check ruyi list failed' ++ actual_result=7 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi list failed' ++ exit_mode=0 ++ '[' -z 7 ']' ++ '[' 1 -eq 0 ']' ++ test 7x == 0x ++ return 0 ++ ruyi list ++ grep 'Package declares' ++ CHECK_RESULT 1 0 1 'Check ruyi brief list failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi brief list failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ ruyi list --verbose ++ grep 'Package declares' +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 2 distfile(s): +Package declares 2 distfile(s): +Package declares 2 distfile(s): ++ CHECK_RESULT 0 0 0 'Check ruyi list verbose package failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose package failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi list --verbose ++ grep 'Binary artifacts' +### Binary artifacts +### Binary artifacts +### Binary artifacts +### Binary artifacts +### Binary artifacts ++ CHECK_RESULT 0 0 0 'Check ruyi list verbose artifacts failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose artifacts failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi list --verbose ++ grep 'Toolchain metadata' +### Toolchain metadata +### Toolchain metadata +### Toolchain metadata +### Toolchain metadata ++ CHECK_RESULT 0 0 0 'Check ruyi list verbose metadata failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose metadata failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 +++ ruyi list +++ grep -e '^* toolchain' +++ cut -d/ -f 2 ++ pkgnames='llvm-upstream +gnu-plct-xthead +gnu-upstream +gnu-plct' ++ for p in $pkgnames +++ ruyi list +++ grep -E 'slug: llvm-upstream-[0-9]+' +++ grep -v 'no binary for current host' ++ s=' - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121' ++ '[' '!' -z ' - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121' ']' ++ pkgname=llvm-upstream ++ break ++ '[' -z llvm-upstream ']' ++ ruyi install llvm-upstream +info: downloading +https://mirror.iscas.ac.cn/ruyisdk/dist/llvm-17.0.5.ruyi-20231121.amd64.tar.zst +to /root/.cache/test/ruyi/distfiles/llvm-17.0.5.ruyi-20231121.amd64.tar.zst + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 398M 0 113k 0 0 446k 0 0:15:14 --:--:-- 0:15:14 445k 1 398M 1 5637k 0 0 4519k 0 0:01:30 0:00:01 0:01:29 4517k 2 398M 2 11.6M 0 0 5305k 0 0:01:16 0:00:02 0:01:14 5306k 4 398M 4 19.3M 0 0 6086k 0 0:01:07 0:00:03 0:01:04 6086k 7 398M 7 28.5M 0 0 6872k 0 0:00:59 0:00:04 0:00:55 6871k 9 398M 9 39.2M 0 0 7665k 0 0:00:53 0:00:05 0:00:48 8030k 12 398M 12 51.5M 0 0 8457k 0 0:00:48 0:00:06 0:00:42 9440k 16 398M 16 65.4M 0 0 9253k 0 0:00:44 0:00:07 0:00:37 10.7M 20 398M 20 80.8M 0 0 9.8M 0 0:00:40 0:00:08 0:00:32 12.3M 24 398M 24 97.8M 0 0 10.5M 0 0:00:37 0:00:09 0:00:28 13.8M 29 398M 29 116M 0 0 11.3M 0 0:00:35 0:00:10 0:00:25 15.4M 34 398M 34 136M 0 0 12.1M 0 0:00:32 0:00:11 0:00:21 16.9M 39 398M 39 158M 0 0 12.9M 0 0:00:30 0:00:12 0:00:18 18.5M 45 398M 45 181M 0 0 13.6M 0 0:00:29 0:00:13 0:00:16 20.0M 52 398M 52 207M 0 0 14.5M 0 0:00:27 0:00:14 0:00:13 21.9M 60 398M 60 240M 0 0 15.7M 0 0:00:25 0:00:15 0:00:10 24.8M 70 398M 70 282M 0 0 17.3M 0 0:00:22 0:00:16 0:00:06 29.1M 82 398M 82 329M 0 0 19.1M 0 0:00:20 0:00:17 0:00:03 34.3M 93 398M 93 373M 0 0 20.4M 0 0:00:19 0:00:18 0:00:01 38.4M 100 398M 100 398M 0 0 21.1M 0 0:00:18 0:00:18 --:--:-- 41.8M +info: extracting llvm-17.0.5.ruyi-20231121.amd64.tar.zst for package +llvm-upstream-17.0.5-ruyi.20231121 +info: package llvm-upstream-17.0.5-ruyi.20231121 installed to +/root/.local/share/test/ruyi/binaries/x86_64/llvm-upstream-17.0.5-ruyi.20231121 ++ CHECK_RESULT 0 0 0 'Check ruyi install package failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi install package failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi install llvm-upstream ++ grep 'skipping already installed package' +info: skipping already installed package llvm-upstream-17.0.5-ruyi.20231121 ++ CHECK_RESULT 0 0 0 'Check ruyi install duplicate package failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi install duplicate package failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ '[' -d /root/.cache/test/ruyi ']' ++ CHECK_RESULT 0 0 0 'Check ruyi create xdg based cache directory failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi create xdg based cache directory failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ '[' -d /root/.cache/ruyi ']' ++ CHECK_RESULT 1 0 1 'Check ruyi create default cache directory failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi create default cache directory failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ '[' -d /root/.local/share/test/ruyi ']' ++ CHECK_RESULT 0 0 0 'Check ruyi create xdg based data directory failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi create xdg based data directory failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ '[' -d /root/.local/share/ruyi ']' ++ CHECK_RESULT 1 0 1 'Check ruyi create default data directory failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi create default data directory failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ ruyi self uninstall --purge -y +info: uninstallation consent given over CLI, proceeding +info: removing installed packages +info: removing cached data +info: removing the ruyi binary +info: ruyi is uninstalled ++ CHECK_RESULT 0 0 0 'Check ruyi xdg self purge failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi xdg self purge failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ '[' -d /root/.cache/test/ruyi ']' ++ CHECK_RESULT 1 0 1 'Check ruyi xdg purge cache dir exists failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi xdg purge cache dir exists failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ '[' -d /root/.local/share/test/ruyi ']' ++ CHECK_RESULT 1 0 1 'Check ruyi xdg purge data dir exists failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi xdg purge data dir exists failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ rm -rf /root/.cache/test ++ rm -rf /root/.local/share/test ++ export XDG_CACHE_HOME= ++ XDG_CACHE_HOME= ++ export XDG_DATA_HOME= ++ XDG_DATA_HOME= ++ LOG_INFO 'End of the test.' ++ message='End of the test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of the test.' +Tue Dec 5 02:09:43 2023 - INFO - End of the test. ++ CASE_RESULT 0 ++ case_re=0 ++ test -z '' ++ test 0 -eq 0 ++ LOG_INFO 'succeed to execute the case.' ++ message='succeed to execute the case.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'succeed to execute the case.' +Tue Dec 5 02:09:43 2023 - INFO - succeed to execute the case. ++ exec_result= ++ exit 0 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Tue Dec 5 02:09:43 2023 - INFO - start environment cleanup. ++ remove_ruyi +oe_test_ruyi_xdg.sh: line 95: remove_ruyi: command not found ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Tue Dec 5 02:09:43 2023 - INFO - Finish environment cleanup! diff --git a/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi/2023-12-05-02:05:32.log b/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi/2023-12-05-02:05:32.log new file mode 100644 index 0000000000000000000000000000000000000000..4f7664b516644095cc8ae3453cf2fe2dcee416c3 --- /dev/null +++ b/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi/2023-12-05-02:05:32.log @@ -0,0 +1,599 @@ ++ source ./common/common_lib.sh +++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib_python.sh +./common/common_lib.sh: line 73: syntax error near unexpected token `}' +./common/common_lib.sh: line 73: `}' ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Tue Dec 5 02:05:32 2023 - INFO - Start environmental preparation. ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 10.3M 0 8440 0 0 44140 0 0:04:06 --:--:-- 0:04:06 43958 78 10.3M 78 8360k 0 0 7022k 0 0:00:01 0:00:01 --:--:-- 7019k 100 10.3M 100 10.3M 0 0 7389k 0 0:00:01 0:00:01 --:--:-- 7385k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ rm -rf /home/pager/.cache//ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Tue Dec 5 02:05:34 2023 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Tue Dec 5 02:05:34 2023 - INFO - Start to run test. ++ ruyi --version ++ grep 20231204 +Ruyi 0.2.0-beta.20231204 ++ CHECK_RESULT 0 0 0 'Check ruyi version failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi version failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi ++ grep usage +usage: ruyi [-h] [-V] ++ CHECK_RESULT 0 0 0 'Check ruyi empty cmdline help failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi empty cmdline help failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi -h ++ grep usage +usage: ruyi [-h] [-V] ++ CHECK_RESULT 0 0 0 'Check ruyi help failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi help failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi list +List of available packages: + +* source/coremark + - 1.0.2-pre.20230125 (prerelease, latest-prerelease) + - 1.0.1 (latest) +* source/ruyisdk-demo + - 0.20231114.0 (latest) +* emulator/qemu-user-riscv-upstream + - 8.1.2-ruyi.20231121 (latest) +* toolchain/llvm-upstream + - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121 +* toolchain/gnu-plct-xthead + - 0.20231118.0 (latest) slug: gnu-plct-xthead-20231118 +* toolchain/gnu-upstream + - 0.20231118.0 (latest) slug: gnu-upstream-20231118 +* toolchain/gnu-plct + - 0.20231118.0 (latest) slug: gnu-plct-20231118 ++ CHECK_RESULT 0 0 0 'Check ruyi empty list failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi empty list failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ '[' -d /home/pager/.cache//ruyi ']' ++ CHECK_RESULT 0 0 0 'Check ruyi create cache directory failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi create cache directory failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi update ++ CHECK_RESULT 0 0 0 'Check ruyi update failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi update failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 +++ ruyi list +++ grep -e '^* ' +++ wc -l ++ pkgcnt=7 ++ CHECK_RESULT 7 0 1 'Check ruyi list failed' ++ actual_result=7 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi list failed' ++ exit_mode=0 ++ '[' -z 7 ']' ++ '[' 1 -eq 0 ']' ++ test 7x == 0x ++ return 0 ++ ruyi list ++ grep 'Package declares' ++ CHECK_RESULT 1 0 1 'Check ruyi brief list failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi brief list failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ ruyi list --verbose ++ grep 'Package declares' +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 2 distfile(s): +Package declares 2 distfile(s): +Package declares 2 distfile(s): ++ CHECK_RESULT 0 0 0 'Check ruyi list verbose package failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose package failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi list --verbose ++ grep 'Binary artifacts' +### Binary artifacts +### Binary artifacts +### Binary artifacts +### Binary artifacts +### Binary artifacts ++ CHECK_RESULT 0 0 0 'Check ruyi list verbose artifacts failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose artifacts failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi list --verbose ++ grep 'Toolchain metadata' +### Toolchain metadata +### Toolchain metadata +### Toolchain metadata +### Toolchain metadata ++ CHECK_RESULT 0 0 0 'Check ruyi list verbose metadata failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose metadata failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi list profiles +generic +sipeed-lpi4a (needs flavor(s): {'xthead'}) +milkv-duo ++ CHECK_RESULT 0 0 0 'Check ruyi profile failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi profile failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 +++ ruyi list +++ grep -e '^* toolchain' +++ cut -d/ -f 2 ++ pkgnames='llvm-upstream +gnu-plct-xthead +gnu-upstream +gnu-plct' ++ for p in $pkgnames +++ ruyi list +++ grep -E 'slug: llvm-upstream-[0-9]+' +++ grep -v 'no binary for current host' ++ s=' - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121' ++ '[' '!' -z ' - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121' ']' ++ pkgname=llvm-upstream ++ break ++ '[' -z llvm-upstream ']' ++ http_proxy=http://wrong.proxy ++ https_proxy=http://wrong.proxy ++ ruyi install llvm-upstream +info: skipping already installed package llvm-upstream-17.0.5-ruyi.20231121 ++ CHECK_RESULT 0 0 1 'Check ruyi install package from wrong proxy failed' ++ actual_result=0 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi install package from wrong proxy failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 1 -eq 0 ']' ++ test 0x == 0x ++ test -n 'Check ruyi install package from wrong proxy failed' ++ LOG_ERROR 'Check ruyi install package from wrong proxy failed' ++ message='Check ruyi install package from wrong proxy failed' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'Check ruyi install package from wrong proxy failed' +Tue Dec 5 02:05:37 2023 - ERROR - Check ruyi install package from wrong proxy failed ++ (( exec_result++ )) ++ LOG_ERROR 'oe_test_ruyi.sh line 68' ++ message='oe_test_ruyi.sh line 68' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'oe_test_ruyi.sh line 68' +Tue Dec 5 02:05:37 2023 - ERROR - oe_test_ruyi.sh line 68 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi install llvm-upstream ++ grep downloading ++ CHECK_RESULT 1 0 0 'Check ruyi install package failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi install package failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi install package failed' ++ LOG_ERROR 'Check ruyi install package failed' ++ message='Check ruyi install package failed' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'Check ruyi install package failed' +Tue Dec 5 02:05:37 2023 - ERROR - Check ruyi install package failed ++ (( exec_result++ )) ++ LOG_ERROR 'oe_test_ruyi.sh line 70' ++ message='oe_test_ruyi.sh line 70' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'oe_test_ruyi.sh line 70' +Tue Dec 5 02:05:37 2023 - ERROR - oe_test_ruyi.sh line 70 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi install llvm-upstream ++ grep 'skipping already installed package' +info: skipping already installed package llvm-upstream-17.0.5-ruyi.20231121 ++ CHECK_RESULT 0 0 0 'Check ruyi install duplicate package failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi install duplicate package failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi install name:llvm-upstream ++ grep 'skipping already installed package' +info: skipping already installed package llvm-upstream-17.0.5-ruyi.20231121 ++ CHECK_RESULT 0 0 0 'Check ruyi install duplicate package by name failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi install duplicate package by name failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 +++ ruyi list +++ grep -e '^* source' +++ head -n 1 +++ cut -d/ -f 2 ++ pkgname=coremark ++ mkdir source-test ++ cd source-test ++ ruyi extract coremark +info: downloading https://mirror.iscas.ac.cn/ruyisdk/dist/coremark-1.01.tar.gz +to /home/pager/.cache/ruyi/distfiles/coremark-1.01.tar.gz + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 391k 100 391k 0 0 1322k 0 --:--:-- --:--:-- --:--:-- 1323k +info: extracting coremark-1.01.tar.gz for package coremark-1.0.1 +info: package coremark-1.0.1 extracted to current working directory ++ CHECK_RESULT 0 0 0 'Check ruyi extract failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi extract failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 +++ ls ++ '[' 'barebones +core_list_join.c +core_main.c +coremark.h +core_matrix.c +core_state.c +core_util.c +cygwin +docs +LICENSE.md +linux +linux64 +Makefile +README.md +simple' '!=' '' ']' ++ CHECK_RESULT 0 0 0 'Check ruyi extract dir not enpty failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi extract dir not enpty failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ cd .. ++ rm -rf source-test ++ ruyi self uninstall -y +info: uninstallation consent given over CLI, proceeding +info: removing the ruyi binary +Traceback (most recent call last): + File "/home/pager/.cache/ruyi/progcache/0.2.0-beta.20231204/__main__.py", line 30, in + File "/home/pager/.cache/ruyi/progcache/0.2.0-beta.20231204/ruyi/cli/__init__.py", line 233, in main + File "/home/pager/.cache/ruyi/progcache/0.2.0-beta.20231204/ruyi/cli/self_cli.py", line 53, in cli_self_uninstall +PermissionError: [Errno 13] Permission denied: '/usr/bin/ruyi' ++ CHECK_RESULT 1 0 0 'Check ruyi self uninstall failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi self uninstall failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi self uninstall failed' ++ LOG_ERROR 'Check ruyi self uninstall failed' ++ message='Check ruyi self uninstall failed' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'Check ruyi self uninstall failed' +Tue Dec 5 02:05:38 2023 - ERROR - Check ruyi self uninstall failed ++ (( exec_result++ )) ++ LOG_ERROR 'oe_test_ruyi.sh line 86' ++ message='oe_test_ruyi.sh line 86' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'oe_test_ruyi.sh line 86' +Tue Dec 5 02:05:38 2023 - ERROR - oe_test_ruyi.sh line 86 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi version +Ruyi 0.2.0-beta.20231204 +Copyright (C) 2023 Institute of Software, Chinese Academy of Sciences (ISCAS). +All rights reserved. +License: Apache-2.0 ++ CHECK_RESULT 0 0 1 'Check ruyi uninstall exists failed' ++ actual_result=0 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi uninstall exists failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 1 -eq 0 ']' ++ test 0x == 0x ++ test -n 'Check ruyi uninstall exists failed' ++ LOG_ERROR 'Check ruyi uninstall exists failed' ++ message='Check ruyi uninstall exists failed' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'Check ruyi uninstall exists failed' +Tue Dec 5 02:05:38 2023 - ERROR - Check ruyi uninstall exists failed ++ (( exec_result++ )) ++ LOG_ERROR 'oe_test_ruyi.sh line 88' ++ message='oe_test_ruyi.sh line 88' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'oe_test_ruyi.sh line 88' +Tue Dec 5 02:05:38 2023 - ERROR - oe_test_ruyi.sh line 88 ++ '[' 0 -eq 1 ']' ++ return 0 ++ '[' -d /home/pager/.cache/ruyi ']' ++ CHECK_RESULT 0 0 0 'Check ruyi cache dir exists failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi cache dir exists failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ '[' -d /home/pager/.local/share/ruyi ']' ++ CHECK_RESULT 0 0 0 'Check ruyi data dir exists failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi data dir exists failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 66 10.3M 66 7051k 0 0 7734k 0 0:00:01 --:--:-- 0:00:01 7732k 100 10.3M 100 10.3M 0 0 8499k 0 0:00:01 0:00:01 --:--:-- 8502k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ rm -rf /home/pager/.cache//ruyi ++ ruyi self uninstall --purge -y +info: uninstallation consent given over CLI, proceeding +info: removing installed packages +info: removing cached data +info: removing the ruyi binary +Traceback (most recent call last): + File "/home/pager/.cache/ruyi/progcache/0.2.0-beta.20231204/__main__.py", line 30, in + File "/home/pager/.cache/ruyi/progcache/0.2.0-beta.20231204/ruyi/cli/__init__.py", line 233, in main + File "/home/pager/.cache/ruyi/progcache/0.2.0-beta.20231204/ruyi/cli/self_cli.py", line 53, in cli_self_uninstall +PermissionError: [Errno 13] Permission denied: '/usr/bin/ruyi' ++ CHECK_RESULT 1 0 0 'Check ruyi self purge failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi self purge failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi self purge failed' ++ LOG_ERROR 'Check ruyi self purge failed' ++ message='Check ruyi self purge failed' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'Check ruyi self purge failed' +Tue Dec 5 02:05:40 2023 - ERROR - Check ruyi self purge failed ++ (( exec_result++ )) ++ LOG_ERROR 'oe_test_ruyi.sh line 95' ++ message='oe_test_ruyi.sh line 95' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'oe_test_ruyi.sh line 95' +Tue Dec 5 02:05:40 2023 - ERROR - oe_test_ruyi.sh line 95 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi version +Ruyi 0.2.0-beta.20231204 +Copyright (C) 2023 Institute of Software, Chinese Academy of Sciences (ISCAS). +All rights reserved. +License: Apache-2.0 ++ CHECK_RESULT 0 0 1 'Check ruyi purge exists failed' ++ actual_result=0 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi purge exists failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 1 -eq 0 ']' ++ test 0x == 0x ++ test -n 'Check ruyi purge exists failed' ++ LOG_ERROR 'Check ruyi purge exists failed' ++ message='Check ruyi purge exists failed' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'Check ruyi purge exists failed' +Tue Dec 5 02:05:40 2023 - ERROR - Check ruyi purge exists failed ++ (( exec_result++ )) ++ LOG_ERROR 'oe_test_ruyi.sh line 97' ++ message='oe_test_ruyi.sh line 97' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'oe_test_ruyi.sh line 97' +Tue Dec 5 02:05:40 2023 - ERROR - oe_test_ruyi.sh line 97 ++ '[' 0 -eq 1 ']' ++ return 0 ++ '[' -d '~/.cache/ruyi' ']' ++ CHECK_RESULT 1 0 1 'Check ruyi purge cache dir exists failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi purge cache dir exists failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ '[' -d '~/.local/share/ruyi' ']' ++ CHECK_RESULT 1 0 1 'Check ruyi purge data dir exists failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi purge data dir exists failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ LOG_INFO 'End of the test.' ++ message='End of the test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of the test.' +Tue Dec 5 02:05:40 2023 - INFO - End of the test. ++ CASE_RESULT 0 ++ case_re=0 ++ test -z 6 ++ test 6 -gt 0 ++ LOG_ERROR 'failed to execute the case.' ++ message='failed to execute the case.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level error --message 'failed to execute the case.' +Tue Dec 5 02:05:41 2023 - ERROR - failed to execute the case. ++ exit 6 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Tue Dec 5 02:05:41 2023 - INFO - start environment cleanup. ++ remove_ruyi +oe_test_ruyi.sh: line 108: remove_ruyi: command not found ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Tue Dec 5 02:05:41 2023 - INFO - Finish environment cleanup! diff --git a/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_admin/2023-12-05-02:03:54.log b/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_admin/2023-12-05-02:03:54.log new file mode 100644 index 0000000000000000000000000000000000000000..301e17d35f3f3a96c927b6558c9d75ec904eb9bc --- /dev/null +++ b/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_admin/2023-12-05-02:03:54.log @@ -0,0 +1,108 @@ ++ source ./common/common_lib.sh +++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib_python.sh +./common/common_lib.sh: line 73: syntax error near unexpected token `}' +./common/common_lib.sh: line 73: `}' ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Tue Dec 5 02:03:54 2023 - INFO - Start environmental preparation. ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 12668 (apt)... +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 47 10.3M 47 4996k 0 0 7037k 0 0:00:01 --:--:-- 0:00:01 7036k 100 10.3M 100 10.3M 0 0 8614k 0 0:00:01 0:00:01 --:--:-- 8620k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ rm -rf /home/pager/.cache//ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Tue Dec 5 02:03:57 2023 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Tue Dec 5 02:03:57 2023 - INFO - Start to run test. ++ test_file=oe_test_ruyi_admin.sh ++ ruyi admin manifest oe_test_ruyi_admin.sh +[ + { + "name": "oe_test_ruyi_admin.sh", + "size": 1267, + "checksums": { + "sha256": "1551d068e39a8d44069cba152f5d521b190f63462be8236bb59757858b891e76", + "sha512": "9d7ca780bd8a665469ed07984b28e766fc993fa2fdb3b73caa5efa9bbfb06a2b394c33fabf1e01670fd51b468730dbb6d5fcc23c29f4c3ad0e86485327853655" + } + } +] ++ CHECK_RESULT 0 0 0 'Check ruyi admin manifest failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi admin manifest failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ LOG_INFO 'End of the test.' ++ message='End of the test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of the test.' +Tue Dec 5 02:03:57 2023 - INFO - End of the test. ++ CASE_RESULT 0 ++ case_re=0 ++ test -z '' ++ test 0 -eq 0 ++ LOG_INFO 'succeed to execute the case.' ++ message='succeed to execute the case.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'succeed to execute the case.' +Tue Dec 5 02:03:57 2023 - INFO - succeed to execute the case. ++ exec_result= ++ exit 0 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Tue Dec 5 02:03:57 2023 - INFO - start environment cleanup. ++ remove_ruyi +oe_test_ruyi_admin.sh: line 39: remove_ruyi: command not found ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Tue Dec 5 02:03:57 2023 - INFO - Finish environment cleanup! diff --git a/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_cmake_ninja/2023-12-05-02:04:45.log b/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_cmake_ninja/2023-12-05-02:04:45.log new file mode 100644 index 0000000000000000000000000000000000000000..d763e4575e257594d5facb7b9d179bf30ec011f3 --- /dev/null +++ b/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_cmake_ninja/2023-12-05-02:04:45.log @@ -0,0 +1,517 @@ ++ source ./common/common_lib.sh +++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib_python.sh +./common/common_lib.sh: line 73: syntax error near unexpected token `}' +./common/common_lib.sh: line 73: `}' ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Tue Dec 5 02:04:45 2023 - INFO - Start environmental preparation. ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 66 10.3M 66 7108k 0 0 6702k 0 0:00:01 0:00:01 --:--:-- 6699k 100 10.3M 100 10.3M 0 0 7388k 0 0:00:01 0:00:01 --:--:-- 7385k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ rm -rf /home/pager/.cache//ruyi ++ DNF_INSTALL 'cmake ninja-build' ++ pkgs='cmake ninja-build' ++ node=1 ++ '[' -z '' ']' ++ tmpfile= +++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/rpm_manage.py install --pkgs 'cmake ninja-build' --node 1 --tempfile '' +Tue Dec 5 02:04:47 2023 - INFO - unsupported package manager: dnf ++ tmpfile2= ++ '[' -z '' ']' ++ tmpfile= ++ APT_INSTALL 'cmake ninja-build' ++ pkgs='cmake ninja-build' ++ node=1 ++ '[' -z '' ']' ++ tmpfile= +++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/deb_manage.py install --pkgs 'cmake ninja-build' --node 1 --tempfile '' ++ tmpfile2='Reading package lists... +E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) +E: Unable to lock directory /var/lib/apt/lists/ +W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) +W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)' ++ '[' -z '' ']' ++ tmpfile='Reading package lists... +E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) +E: Unable to lock directory /var/lib/apt/lists/ +W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) +W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)' ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Tue Dec 5 02:04:47 2023 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Tue Dec 5 02:04:47 2023 - INFO - Start to run test. ++ mkdir build ++ cd build ++ tar zxf ../common/source/zlib-ng-2.1.5.tar.gz ++ ruyi update ++ ruyi install gnu-plct gnu-plct-xthead +info: skipping already installed package gnu-plct-0.20231118.0 +info: downloading +https://mirror.iscas.ac.cn/ruyisdk/dist/RuyiSDK-20231118-T-Head-Sources-riscv64- +plctxthead-linux-gnu.tar.xz to +/home/pager/.cache/ruyi/distfiles/RuyiSDK-20231118-T-Head-Sources-riscv64-plctxt +head-linux-gnu.tar.xz + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2 273M 2 7141k 0 0 7221k 0 0:00:38 --:--:-- 0:00:38 7220k 6 273M 6 17.0M 0 0 8824k 0 0:00:31 0:00:01 0:00:30 8822k 10 273M 10 28.3M 0 0 9744k 0 0:00:28 0:00:02 0:00:26 9743k 15 273M 15 41.8M 0 0 10.4M 0 0:00:26 0:00:03 0:00:23 10.4M 20 273M 20 57.1M 0 0 11.4M 0 0:00:23 0:00:04 0:00:19 11.4M 27 273M 27 74.5M 0 0 12.4M 0 0:00:21 0:00:05 0:00:16 13.5M 34 273M 34 93.9M 0 0 13.4M 0 0:00:20 0:00:06 0:00:14 15.3M 42 273M 42 115M 0 0 14.4M 0 0:00:18 0:00:07 0:00:11 17.3M 50 273M 50 138M 0 0 15.4M 0 0:00:17 0:00:08 0:00:09 19.3M 60 273M 60 164M 0 0 16.4M 0 0:00:16 0:00:09 0:00:07 21.3M 69 273M 69 191M 0 0 17.4M 0 0:00:15 0:00:10 0:00:05 23.3M 80 273M 80 220M 0 0 18.4M 0 0:00:14 0:00:11 0:00:03 25.3M 92 273M 92 252M 0 0 19.4M 0 0:00:14 0:00:12 0:00:02 27.3M 100 273M 100 273M 0 0 20.0M 0 0:00:13 0:00:13 --:--:-- 29.0M +info: extracting +RuyiSDK-20231118-T-Head-Sources-riscv64-plctxthead-linux-gnu.tar.xz for package +gnu-plct-xthead-0.20231118.0 +info: package gnu-plct-xthead-0.20231118.0 installed to +/home/pager/.local/share/ruyi/binaries/x86_64/gnu-plct-xthead-0.20231118.0 ++ ruyi venv -t gnu-plct-xthead sipeed-lpi4a ./coremark_venv +info: Creating a Ruyi virtual environment at coremark_venv... +info: The virtual environment is now created. + +You may activate it by sourcing the appropriate activation script in the +bin directory, and deactivate by invoking `ruyi-deactivate`. + +A fresh sysroot/prefix is also provisioned in the virtual environment. +It is available at the following path: + + /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/coremark_venv/s +ysroot + +The virtual environment also comes with ready-made CMake toolchain file +and Meson cross file. Check the virtual environment root for those; +comments in the files contain usage instructions. + ++ ruyi extract coremark +info: downloading https://mirror.iscas.ac.cn/ruyisdk/dist/coremark-1.01.tar.gz +to /home/pager/.cache/ruyi/distfiles/coremark-1.01.tar.gz + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 391k 100 391k 0 0 1275k 0 --:--:-- --:--:-- --:--:-- 1276k +info: extracting coremark-1.01.tar.gz for package coremark-1.0.1 +info: package coremark-1.0.1 extracted to current working directory ++ . coremark_venv/bin/ruyi-activate +++ '[' coremark_venv/bin/ruyi-activate = oe_test_ruyi_cmake_ninja.sh ']' +++ ruyi-deactivate nondestructive +++ '[' -z '' ']' +++ hash -r +++ '[' -z '' ']' +++ unset RUYI_VENV +++ unset RUYI_VENV_PROMPT +++ '[' '!' nondestructive = nondestructive ']' +++ RUYI_VENV=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/coremark_venv +++ export RUYI_VENV +++ _RUYI_OLD_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ PATH=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/coremark_venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ export PATH +++ hash -r ++++ basename /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/coremark_venv +++ RUYI_VENV_PROMPT=coremark_venv +++ export RUYI_VENV_PROMPT +++ '[' -z '' ']' +++ _RUYI_OLD_PS1= +++ PS1='«Ruyi coremark_venv» ' +++ export PS1 ++ sed -i 's/\bgcc\b/riscv64-plctxthead-linux-gnu-gcc/g' linux64/core_portme.mak ++ make PORT_DIR=linux64 link +riscv64-plctxthead-linux-gnu-gcc -O2 -Ilinux64 -I. -DFLAGS_STR=\""-O2 -lrt"\" -DITERATIONS=0 core_list_join.c core_main.c core_matrix.c core_state.c core_util.c linux64/core_portme.c -o ./coremark.exe -lrt +Link performed along with compile ++ file coremark.exe ++ grep -i RISC-V +coremark.exe: ELF 64-bit LSB executable, UCB RISC-V, RVC, double-float ABI, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-riscv64xthead-lp64d.so.1, BuildID[sha1]=d9510c5fef107e2c56b40547a02f1488471dd2d2, for GNU/Linux 4.15.0, with debug_info, not stripped ++ CHECK_RESULT 0 0 0 'Check ruyi coremark build failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi coremark build failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi-deactivate ++ '[' -z _ ']' ++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin ++ export PATH ++ unset _RUYI_OLD_PATH ++ hash -r ++ '[' -z _ ']' ++ PS1= ++ export PS1 ++ unset _RUYI_OLD_PS1 ++ unset RUYI_VENV ++ unset RUYI_VENV_PROMPT ++ '[' '!' '' = nondestructive ']' ++ unset -f ruyi-deactivate ++ tar zxf ../common/source/zlib-ng-2.1.5.tar.gz ++ cd ./zlib-ng-2.1.5 ++ ruyi venv -t gnu-plct milkv-duo ./zlib_venv +info: Creating a Ruyi virtual environment at zlib_venv... +info: The virtual environment is now created. + +You may activate it by sourcing the appropriate activation script in the +bin directory, and deactivate by invoking `ruyi-deactivate`. + +A fresh sysroot/prefix is also provisioned in the virtual environment. +It is available at the following path: + + /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/z +lib_venv/sysroot + +The virtual environment also comes with ready-made CMake toolchain file +and Meson cross file. Check the virtual environment root for those; +comments in the files contain usage instructions. + ++ . zlib_venv/bin/ruyi-activate +++ '[' zlib_venv/bin/ruyi-activate = oe_test_ruyi_cmake_ninja.sh ']' +++ ruyi-deactivate nondestructive +++ '[' -z '' ']' +++ hash -r +++ '[' -z '' ']' +++ unset RUYI_VENV +++ unset RUYI_VENV_PROMPT +++ '[' '!' nondestructive = nondestructive ']' +++ RUYI_VENV=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_venv +++ export RUYI_VENV +++ _RUYI_OLD_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ PATH=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ export PATH +++ hash -r ++++ basename /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_venv +++ RUYI_VENV_PROMPT=zlib_venv +++ export RUYI_VENV_PROMPT +++ '[' -z '' ']' +++ _RUYI_OLD_PS1= +++ PS1='«Ruyi zlib_venv» ' +++ export PS1 +++ pwd ++ cmake . -G Ninja -DCMAKE_C_COMPILER=riscv64-plct-linux-gnu-gcc -DCMAKE_INSTALL_PREFIX=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install '-DCMAKE_C_FLAGS=-O2 -pipe -g' -DZLIB_COMPAT=ON -DWITH_GTEST=OFF +-- Using CMake version 3.22.1 +-- ZLIB_HEADER_VERSION: 1.3.0 +-- ZLIBNG_HEADER_VERSION: 2.1.5 +-- The C compiler identification is GNU 13.1.0 +-- Detecting C compiler ABI info +-- Detecting C compiler ABI info - done +-- Check for working C compiler: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_venv/bin/riscv64-plct-linux-gnu-gcc - skipped +-- Detecting C compile features +-- Detecting C compile features - done +-- Arch detected: 'riscv64' +-- Basearch of 'riscv64' has been detected as: 'riscv' +-- Performing Test FNO_LTO_AVAILABLE +-- Performing Test FNO_LTO_AVAILABLE - Success +-- Looking for arm_acle.h +-- Looking for arm_acle.h - not found +-- Looking for sys/auxv.h +-- Looking for sys/auxv.h - found +-- Looking for sys/sdt.h +-- Looking for sys/sdt.h - not found +-- Looking for unistd.h +-- Looking for unistd.h - found +-- Looking for sys/types.h +-- Looking for sys/types.h - found +-- Looking for stdint.h +-- Looking for stdint.h - found +-- Looking for stddef.h +-- Looking for stddef.h - found +-- Check size of off64_t +-- Check size of off64_t - done +-- Looking for fseeko +-- Looking for fseeko - found +-- Looking for strerror +-- Looking for strerror - found +-- Looking for posix_memalign +-- Looking for posix_memalign - found +-- Looking for aligned_alloc +-- Looking for aligned_alloc - found +-- Performing Test HAVE_NO_INTERPOSITION +-- Performing Test HAVE_NO_INTERPOSITION - Success +-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_HIDDEN +-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_HIDDEN - Success +-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_INTERNAL +-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_INTERNAL - Success +-- Performing Test HAVE_ATTRIBUTE_ALIGNED +-- Performing Test HAVE_ATTRIBUTE_ALIGNED - Success +-- Performing Test HAVE_THREAD_LOCAL +-- Performing Test HAVE_THREAD_LOCAL - Success +-- Performing Test HAVE_BUILTIN_CTZ +-- Performing Test HAVE_BUILTIN_CTZ - Success +-- Performing Test HAVE_BUILTIN_CTZLL +-- Performing Test HAVE_BUILTIN_CTZLL - Success +-- Performing Test HAVE_PTRDIFF_T +-- Performing Test HAVE_PTRDIFF_T - Success +-- Performing Test HAVE_RVV_INTRIN +-- Performing Test HAVE_RVV_INTRIN - Success +-- Architecture-specific source files: arch/riscv/riscv_features.c;arch/riscv/riscv_features.c;arch/riscv/adler32_rvv.c;arch/riscv/chunkset_rvv.c;arch/riscv/compare256_rvv.c;arch/riscv/slide_hash_rvv.c +-- The following features have been enabled: + + * CMAKE_BUILD_TYPE, Build type: Release (default) + * WITH_GZFILEOP, Compile with support for gzFile related functions + * ZLIB_COMPAT, Compile with zlib compatible API + * ZLIB_ENABLE_TESTS, Build test binaries + * ZLIBNG_ENABLE_TESTS, Test zlib-ng specific API + * WITH_SANITIZER, Enable sanitizer support + * WITH_OPTIM, Build with optimisation + * WITH_NEW_STRATEGIES, Use new strategies + * WITH_RVV, Build with RVV intrinsics + +-- The following features have been disabled: + + * ZLIB_SYMBOL_PREFIX, Publicly exported symbols DO NOT have a custom prefix + * WITH_GTEST, Build gtest_zlib + * WITH_FUZZERS, Build test/fuzz + * WITH_BENCHMARKS, Build test/benchmarks + * WITH_BENCHMARK_APPS, Build application benchmarks + * WITH_NATIVE_INSTRUCTIONS, Instruct the compiler to use the full instruction set on this host (gcc/clang -march=native) + * WITH_MAINTAINER_WARNINGS, Build with project maintainer warnings + * WITH_CODE_COVERAGE, Enable code coverage reporting + * WITH_INFLATE_STRICT, Build with strict inflate distance checking + * WITH_INFLATE_ALLOW_INVALID_DIST, Build with zero fill for inflate invalid distances + * INSTALL_UTILS, Copy minigzip and minideflate during install + +CMake Warning at CMakeLists.txt:1287 (message): + Building to source folder is not recommended. Cpack will be unable to + generate source package. + + +-- Configuring done +-- Generating done +-- Build files have been written to: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5 ++ ninja +[1/93] Building C object CMakeFiles/zlib.dir/cpu_features.c.o +[2/93] Building C object CMakeFiles/zlib.dir/adler32_fold.c.o +[3/93] Building C object CMakeFiles/zlib.dir/crc32_fold.c.o +[4/93] Building C object CMakeFiles/zlib.dir/compress.c.o +[5/93] Building C object CMakeFiles/zlib.dir/crc32_braid_comb.c.o +[6/93] Building C object CMakeFiles/zlib.dir/crc32_braid.c.o +[7/93] Building C object CMakeFiles/zlib.dir/adler32.c.o +[8/93] Building C object CMakeFiles/zlib.dir/deflate_huff.c.o +[9/93] Building C object CMakeFiles/zlib.dir/deflate_fast.c.o +[10/93] Building C object CMakeFiles/zlib.dir/compare256.c.o +[11/93] Building C object CMakeFiles/zlib.dir/chunkset.c.o +[12/93] Building C object CMakeFiles/zlib.dir/deflate_medium.c.o +[13/93] Building C object CMakeFiles/zlib.dir/deflate_quick.c.o +[14/93] Building C object CMakeFiles/zlib.dir/deflate_rle.c.o +[15/93] Building C object CMakeFiles/zlib.dir/deflate_slow.c.o +[16/93] Building C object CMakeFiles/zlib.dir/deflate_stored.c.o +[17/93] Building C object CMakeFiles/zlib.dir/functable.c.o +[18/93] Building C object CMakeFiles/zlib.dir/insert_string.c.o +[19/93] Building C object CMakeFiles/zlib.dir/deflate.c.o +[20/93] Building C object CMakeFiles/zlib.dir/slide_hash.c.o +[21/93] Building C object CMakeFiles/zlib.dir/inftrees.c.o +[22/93] Building C object CMakeFiles/zlib.dir/insert_string_roll.c.o +[23/93] Building C object CMakeFiles/zlib.dir/uncompr.c.o +[24/93] Building C object CMakeFiles/zlib.dir/zutil.c.o +[25/93] Building C object CMakeFiles/zlib.dir/arch/riscv/riscv_features.c.o +/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/arch/riscv/riscv_features.c: In function 'is_kernel_version_greater_or_equal_to_6_5': +/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/arch/riscv/riscv_features.c:22:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 22 | if (major > 6 || major == 6 && minor >= 5) + | ~~~~~~~~~~~^~~~~~~~~~~~~ +[26/93] Building C object CMakeFiles/zlib.dir/infback.c.o +[27/93] Building C object CMakeFiles/zlib.dir/arch/riscv/adler32_rvv.c.o +[28/93] Building C object CMakeFiles/zlibstatic.dir/adler32_fold.c.o +[29/93] Building C object CMakeFiles/zlib.dir/gzlib.c.o +[30/93] Building C object CMakeFiles/zlib.dir/gzwrite.c.o +[31/93] Building C object CMakeFiles/zlib.dir/arch/riscv/compare256_rvv.c.o +[32/93] Building C object CMakeFiles/zlibstatic.dir/adler32.c.o +[33/93] Building C object CMakeFiles/zlib.dir/trees.c.o +[34/93] Building C object CMakeFiles/zlib.dir/arch/riscv/slide_hash_rvv.c.o +[35/93] Building C object CMakeFiles/zlib.dir/arch/riscv/chunkset_rvv.c.o +[36/93] Building C object CMakeFiles/zlibstatic.dir/compare256.c.o +[37/93] Building C object CMakeFiles/zlib.dir/gzread.c.o +[38/93] Building C object CMakeFiles/zlibstatic.dir/cpu_features.c.o +[39/93] Building C object CMakeFiles/zlibstatic.dir/chunkset.c.o +[40/93] Building C object CMakeFiles/zlibstatic.dir/compress.c.o +[41/93] Building C object CMakeFiles/zlibstatic.dir/crc32_braid.c.o +[42/93] Building C object CMakeFiles/zlib.dir/inflate.c.o +[43/93] Building C object CMakeFiles/zlibstatic.dir/crc32_fold.c.o +[44/93] Building C object CMakeFiles/zlibstatic.dir/crc32_braid_comb.c.o +[45/93] Building C object CMakeFiles/zlibstatic.dir/deflate_fast.c.o +[46/93] Building C object CMakeFiles/zlibstatic.dir/deflate_huff.c.o +[47/93] Building C object CMakeFiles/zlibstatic.dir/deflate_slow.c.o +[48/93] Building C object CMakeFiles/zlibstatic.dir/deflate_medium.c.o +[49/93] Building C object CMakeFiles/zlibstatic.dir/deflate_rle.c.o +[50/93] Building C object CMakeFiles/zlibstatic.dir/functable.c.o +[51/93] Building C object CMakeFiles/zlibstatic.dir/deflate_stored.c.o +[52/93] Building C object CMakeFiles/zlibstatic.dir/deflate_quick.c.o +[53/93] Linking C shared library libz.so.1.3.0.zlib-ng +[54/93] Building C object CMakeFiles/zlibstatic.dir/deflate.c.o +[55/93] Building C object CMakeFiles/zlibstatic.dir/insert_string_roll.c.o +[56/93] Building C object CMakeFiles/zlibstatic.dir/insert_string.c.o +[57/93] Creating library symlink libz.so.1 libz.so +[58/93] Building C object CMakeFiles/zlibstatic.dir/slide_hash.c.o +[59/93] Building C object CMakeFiles/zlibstatic.dir/inftrees.c.o +[60/93] Building C object CMakeFiles/zlibstatic.dir/uncompr.c.o +[61/93] Building C object CMakeFiles/zlibstatic.dir/zutil.c.o +[62/93] Building C object CMakeFiles/zlibstatic.dir/infback.c.o +[63/93] Building C object CMakeFiles/zlibstatic.dir/arch/riscv/riscv_features.c.o +/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/arch/riscv/riscv_features.c: In function 'is_kernel_version_greater_or_equal_to_6_5': +/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/arch/riscv/riscv_features.c:22:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 22 | if (major > 6 || major == 6 && minor >= 5) + | ~~~~~~~~~~~^~~~~~~~~~~~~ +[64/93] Building C object CMakeFiles/zlibstatic.dir/arch/riscv/adler32_rvv.c.o +[65/93] Building C object CMakeFiles/zlibstatic.dir/arch/riscv/compare256_rvv.c.o +[66/93] Building C object CMakeFiles/zlibstatic.dir/arch/riscv/slide_hash_rvv.c.o +[67/93] Building C object CMakeFiles/zlibstatic.dir/gzwrite.c.o +[68/93] Building C object CMakeFiles/zlibstatic.dir/trees.c.o +[69/93] Building C object CMakeFiles/zlibstatic.dir/gzlib.c.o +[70/93] Building C object CMakeFiles/zlibstatic.dir/arch/riscv/chunkset_rvv.c.o +[71/93] Building C object CMakeFiles/zlibstatic.dir/gzread.c.o +[72/93] Building C object test/CMakeFiles/switchlevels.dir/switchlevels.c.o +[73/93] Building C object test/CMakeFiles/minigzip.dir/minigzip.c.o +[74/93] Building C object test/CMakeFiles/example.dir/example.c.o +[75/93] Building C object test/CMakeFiles/minideflate.dir/minideflate.c.o +[76/93] Building C object CMakeFiles/zlibstatic.dir/inflate.c.o +[77/93] Building C object test/CMakeFiles/makefixed.dir/__/tools/makefixed.c.o +[78/93] Building C object test/CMakeFiles/infcover.dir/infcover.c.o +[79/93] Building C object test/CMakeFiles/infcover.dir/__/inftrees.c.o +[80/93] Building C object test/CMakeFiles/maketrees.dir/__/zutil.c.o +[81/93] Building C object test/CMakeFiles/makefixed.dir/__/inftrees.c.o +[82/93] Linking C executable switchlevels +[83/93] Building C object test/CMakeFiles/maketrees.dir/__/tools/maketrees.c.o +[84/93] Linking C executable example +[85/93] Building C object test/CMakeFiles/makecrct.dir/__/tools/makecrct.c.o +[86/93] Linking C executable minideflate +[87/93] Linking C executable infcover +[88/93] Linking C executable makefixed +[89/93] Linking C executable makecrct +[90/93] Linking C static library libz.a +[91/93] Building C object test/CMakeFiles/maketrees.dir/__/trees.c.o +[92/93] Linking C executable minigzip +[93/93] Linking C executable maketrees ++ ninja install +[0/1] Install the project... +-- Install configuration: "Release" +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/lib/libz.so.1.3.0.zlib-ng +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/lib/libz.so.1 +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/lib/libz.so +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/lib/libz.a +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/include/zlib.h +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/include/zlib_name_mangling.h +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/include/zconf.h +-- Installing: /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/lib/pkgconfig/zlib.pc +++ pwd ++ ls /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/build/zlib-ng-2.1.5/zlib_my_install/include +zconf.h +zlib.h +zlib_name_mangling.h ++ CHECK_RESULT 0 0 0 'Check ruyi zlib-ng build failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi zlib-ng build failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi-deactivate ++ '[' -z _ ']' ++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin ++ export PATH ++ unset _RUYI_OLD_PATH ++ hash -r ++ '[' -z _ ']' ++ PS1= ++ export PS1 ++ unset _RUYI_OLD_PS1 ++ unset RUYI_VENV ++ unset RUYI_VENV_PROMPT ++ '[' '!' '' = nondestructive ']' ++ unset -f ruyi-deactivate ++ cd .. ++ cd .. ++ rm -rf build ++ LOG_INFO 'End of the test.' ++ message='End of the test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of the test.' +Tue Dec 5 02:05:29 2023 - INFO - End of the test. ++ CASE_RESULT 0 ++ case_re=0 ++ test -z '' ++ test 0 -eq 0 ++ LOG_INFO 'succeed to execute the case.' ++ message='succeed to execute the case.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'succeed to execute the case.' +Tue Dec 5 02:05:29 2023 - INFO - succeed to execute the case. ++ exec_result= ++ exit 0 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Tue Dec 5 02:05:29 2023 - INFO - start environment cleanup. ++ remove_ruyi +oe_test_ruyi_cmake_ninja.sh: line 67: remove_ruyi: command not found ++ PKG_REMOVE ++ node=1 ++ pkg_list= ++ mode=0 ++ [[ -z Reading package lists... +E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) +E: Unable to lock directory /var/lib/apt/lists/ +W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) +W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied) ]] ++ '[' 0 -ne 0 ']' ++ '[' 1 == 0 ']' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/rpm_manage.py remove --node 1 --pkgs '' --tempfile 'Reading package lists... +E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) +E: Unable to lock directory /var/lib/apt/lists/ +W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) +W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)' +Tue Dec 5 02:05:29 2023 - INFO - unsupported package manager: dnf +(0, None) ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/deb_manage.py remove --node 1 --pkgs '' --tempfile 'Reading package lists... +E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) +E: Unable to lock directory /var/lib/apt/lists/ +W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) +W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)' +Traceback (most recent call last): + File "/home/pager/Desktop/mugen-ruyi/libs/locallibs/deb_manage.py", line 183, in + exitcode = deb_remove(args.pkgs, args.node, args.tempfile) + File "/home/pager/Desktop/mugen-ruyi/libs/locallibs/deb_manage.py", line 154, in deb_remove + with open(tmpfile, "r") as f: +FileNotFoundError: [Errno 2] No such file or directory: 'Reading package lists...\nE: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)\nE: Unable to lock directory /var/lib/apt/lists/\nW: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)\nW: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)' ++ '[' 0 -ne 0 ']' ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Tue Dec 5 02:05:29 2023 - INFO - Finish environment cleanup! diff --git a/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_llvm/2023-12-05-02:03:57.log b/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_llvm/2023-12-05-02:03:57.log new file mode 100644 index 0000000000000000000000000000000000000000..4e0a458c9e8c520a32b061c6b4c8a0857b40bca8 --- /dev/null +++ b/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_llvm/2023-12-05-02:03:57.log @@ -0,0 +1,235 @@ ++ source ./common/common_lib.sh +++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib_python.sh +./common/common_lib.sh: line 73: syntax error near unexpected token `}' +./common/common_lib.sh: line 73: `}' ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Tue Dec 5 02:03:57 2023 - INFO - Start environmental preparation. ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 54 10.3M 54 5774k 0 0 6308k 0 0:00:01 --:--:-- 0:00:01 6303k 100 10.3M 100 10.3M 0 0 7357k 0 0:00:01 0:00:01 --:--:-- 7359k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ rm -rf /home/pager/.cache//ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Tue Dec 5 02:03:59 2023 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Tue Dec 5 02:03:59 2023 - INFO - Start to run test. ++ mkdir llvm_test +mkdir: cannot create directory ‘llvm_test’: File exists ++ cd llvm_test ++ qemu_pkg=qemu-user-riscv-upstream ++ qemu_cmd='-e qemu-user-riscv-upstream' ++ qemu_bin=ruyi-qemu +++ uname -m ++ '[' x86_64 == riscv64 ']' ++ ruyi update +++ ruyi list +++ grep -v 'no binary for current host' +++ grep -E 'slug: llvm-upstream-[0-9]+' ++ pe=' - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121' ++ '[' -z ' - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121' ']' ++ ruyi install llvm-upstream gnu-plct qemu-user-riscv-upstream +info: downloading +https://mirror.iscas.ac.cn/ruyisdk/dist/llvm-17.0.5.ruyi-20231121.amd64.tar.zst +to /home/pager/.cache/ruyi/distfiles/llvm-17.0.5.ruyi-20231121.amd64.tar.zst + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 398M 0 95240 0 0 441k 0 0:15:25 --:--:-- 0:15:25 440k 2 398M 2 9985k 0 0 8253k 0 0:00:49 0:00:01 0:00:48 8252k 5 398M 5 19.9M 0 0 9262k 0 0:00:44 0:00:02 0:00:42 9261k 7 398M 7 31.8M 0 0 9.9M 0 0:00:40 0:00:03 0:00:37 9.9M 11 398M 11 45.6M 0 0 10.8M 0 0:00:36 0:00:04 0:00:32 10.8M 15 398M 15 61.5M 0 0 11.8M 0 0:00:33 0:00:05 0:00:28 12.3M 19 398M 19 79.4M 0 0 12.7M 0 0:00:31 0:00:06 0:00:25 13.9M 24 398M 24 99.3M 0 0 13.7M 0 0:00:28 0:00:07 0:00:21 15.8M 30 398M 30 121M 0 0 14.7M 0 0:00:27 0:00:08 0:00:19 17.8M 36 398M 36 144M 0 0 15.7M 0 0:00:25 0:00:09 0:00:16 19.8M 42 398M 42 170M 0 0 16.7M 0 0:00:23 0:00:10 0:00:13 21.8M 49 398M 49 198M 0 0 17.6M 0 0:00:22 0:00:11 0:00:11 23.7M 57 398M 57 228M 0 0 18.6M 0 0:00:21 0:00:12 0:00:09 25.7M 65 398M 65 259M 0 0 19.6M 0 0:00:20 0:00:13 0:00:07 27.7M 73 398M 73 293M 0 0 20.6M 0 0:00:19 0:00:14 0:00:05 29.7M 82 398M 82 329M 0 0 21.6M 0 0:00:18 0:00:15 0:00:03 31.8M 93 398M 93 373M 0 0 23.0M 0 0:00:17 0:00:16 0:00:01 35.0M 100 398M 100 398M 0 0 23.8M 0 0:00:16 0:00:16 --:--:-- 37.8M +info: extracting llvm-17.0.5.ruyi-20231121.amd64.tar.zst for package +llvm-upstream-17.0.5-ruyi.20231121 +info: package llvm-upstream-17.0.5-ruyi.20231121 installed to +/home/pager/.local/share/ruyi/binaries/x86_64/llvm-upstream-17.0.5-ruyi.20231121 +info: downloading +https://mirror.iscas.ac.cn/ruyisdk/dist/RuyiSDK-20231118-PLCT-Sources-riscv64-pl +ct-linux-gnu.tar.xz to +/home/pager/.cache/ruyi/distfiles/RuyiSDK-20231118-PLCT-Sources-riscv64-plct-lin +ux-gnu.tar.xz + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 232M 0 111k 0 0 378k 0 0:10:28 --:--:-- 0:10:28 377k 9 232M 9 23.0M 0 0 17.8M 0 0:00:13 0:00:01 0:00:12 17.8M 20 232M 20 47.6M 0 0 20.7M 0 0:00:11 0:00:02 0:00:09 20.7M 31 232M 31 72.1M 0 0 21.9M 0 0:00:10 0:00:03 0:00:07 21.9M 41 232M 41 96.7M 0 0 22.5M 0 0:00:10 0:00:04 0:00:06 22.5M 52 232M 52 121M 0 0 22.9M 0 0:00:10 0:00:05 0:00:05 24.2M 62 232M 62 145M 0 0 23.1M 0 0:00:10 0:00:06 0:00:04 24.5M 73 232M 73 170M 0 0 23.3M 0 0:00:09 0:00:07 0:00:02 24.5M 83 232M 83 195M 0 0 23.5M 0 0:00:09 0:00:08 0:00:01 24.5M 94 232M 94 219M 0 0 23.6M 0 0:00:09 0:00:09 --:--:-- 24.6M 100 232M 100 232M 0 0 23.7M 0 0:00:09 0:00:09 --:--:-- 24.6M +info: extracting RuyiSDK-20231118-PLCT-Sources-riscv64-plct-linux-gnu.tar.xz for +package gnu-plct-0.20231118.0 +info: package gnu-plct-0.20231118.0 installed to +/home/pager/.local/share/ruyi/binaries/x86_64/gnu-plct-0.20231118.0 +info: downloading +https://mirror.iscas.ac.cn/ruyisdk/dist/qemu-user-riscv-8.1.2.ruyi-20231121.amd6 +4.tar.zst to +/home/pager/.cache/ruyi/distfiles/qemu-user-riscv-8.1.2.ruyi-20231121.amd64.tar. +zst + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 94 14.4M 94 13.6M 0 0 11.8M 0 0:00:01 0:00:01 --:--:-- 11.8M 100 14.4M 100 14.4M 0 0 12.2M 0 0:00:01 0:00:01 --:--:-- 12.2M +info: extracting qemu-user-riscv-8.1.2.ruyi-20231121.amd64.tar.zst for package +qemu-user-riscv-upstream-8.1.2-ruyi.20231121 +info: package qemu-user-riscv-upstream-8.1.2-ruyi.20231121 installed to +/home/pager/.local/share/ruyi/binaries/x86_64/qemu-user-riscv-upstream-8.1.2-ruy +i.20231121 ++ CHECK_RESULT 0 0 0 'Check ruyi toolchain install failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi toolchain install failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi venv -t llvm-upstream --sysroot-from gnu-plct -e qemu-user-riscv-upstream generic venv +info: Creating a Ruyi virtual environment at venv... +info: The virtual environment is now created. + +You may activate it by sourcing the appropriate activation script in the +bin directory, and deactivate by invoking `ruyi-deactivate`. + +A fresh sysroot/prefix is also provisioned in the virtual environment. +It is available at the following path: + + /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/llvm_test/venv/sysroo +t + +The virtual environment also comes with ready-made CMake toolchain file +and Meson cross file. Check the virtual environment root for those; +comments in the files contain usage instructions. + ++ CHECK_RESULT 0 0 0 'Check ruyi venv creation failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi venv creation failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ . venv/bin/ruyi-activate +++ '[' venv/bin/ruyi-activate = oe_test_ruyi_llvm.sh ']' +++ ruyi-deactivate nondestructive +++ '[' -z '' ']' +++ hash -r +++ '[' -z '' ']' +++ unset RUYI_VENV +++ unset RUYI_VENV_PROMPT +++ '[' '!' nondestructive = nondestructive ']' +++ RUYI_VENV=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/llvm_test/venv +++ export RUYI_VENV +++ _RUYI_OLD_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ PATH=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/llvm_test/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ export PATH +++ hash -r ++++ basename /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/llvm_test/venv +++ RUYI_VENV_PROMPT=venv +++ export RUYI_VENV_PROMPT +++ '[' -z '' ']' +++ _RUYI_OLD_PS1= +++ PS1='«Ruyi venv» ' +++ export PS1 ++ cat ++ clang -O3 hello_ruyi.c -o hello_ruyi.o ++ CHECK_RESULT 0 0 0 'Check ruyi llvm compilation failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi llvm compilation failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi-qemu ./hello_ruyi.o ++ grep 'hello, ruyi' +hello, ruyi ++ CHECK_RESULT 0 0 0 'Check ruyi binary failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi binary failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi-deactivate ++ '[' -z _ ']' ++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin ++ export PATH ++ unset _RUYI_OLD_PATH ++ hash -r ++ '[' -z _ ']' ++ PS1= ++ export PS1 ++ unset _RUYI_OLD_PS1 ++ unset RUYI_VENV ++ unset RUYI_VENV_PROMPT ++ '[' '!' '' = nondestructive ']' ++ unset -f ruyi-deactivate ++ cd .. ++ rm -rf llvm_test ++ LOG_INFO 'End of the test.' ++ message='End of the test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of the test.' +Tue Dec 5 02:04:45 2023 - INFO - End of the test. ++ CASE_RESULT 0 ++ case_re=0 ++ test -z '' ++ test 0 -eq 0 ++ LOG_INFO 'succeed to execute the case.' ++ message='succeed to execute the case.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'succeed to execute the case.' +Tue Dec 5 02:04:45 2023 - INFO - succeed to execute the case. ++ exec_result= ++ exit 0 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Tue Dec 5 02:04:45 2023 - INFO - start environment cleanup. ++ remove_ruyi +oe_test_ruyi_llvm.sh: line 78: remove_ruyi: command not found ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Tue Dec 5 02:04:45 2023 - INFO - Finish environment cleanup! diff --git a/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_qemu/2023-12-05-02:05:29.log b/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_qemu/2023-12-05-02:05:29.log new file mode 100644 index 0000000000000000000000000000000000000000..cb58e09f44f39963beaae5c1bc2afec9ff4af792 --- /dev/null +++ b/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_qemu/2023-12-05-02:05:29.log @@ -0,0 +1,86 @@ ++ source ./common/common_lib.sh +++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib_python.sh +./common/common_lib.sh: line 73: syntax error near unexpected token `}' +./common/common_lib.sh: line 73: `}' ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Tue Dec 5 02:05:29 2023 - INFO - Start environmental preparation. ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 50 10.3M 50 5396k 0 0 6354k 0 0:00:01 --:--:-- 0:00:01 6348k 100 10.3M 100 10.3M 0 0 9791k 0 0:00:01 0:00:01 --:--:-- 9797k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ rm -rf /home/pager/.cache//ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Tue Dec 5 02:05:31 2023 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Tue Dec 5 02:05:31 2023 - INFO - Start to run test. ++ mkdir qemu_test +mkdir: cannot create directory ‘qemu_test’: File exists ++ cd qemu_test ++ ruyi update +++ ruyi list +++ grep -E 'slug: qemu-user-riscv-upstream-[0-9]+' +++ grep -v 'no binary for current host' ++ pe= ++ '[' -z '' ']' +++ uname -m ++ LOG_INFO 'No qemu-user-riscv-upstream available for current host x86_64, skip' ++ message='No qemu-user-riscv-upstream available for current host x86_64, skip' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'No qemu-user-riscv-upstream available for current host x86_64, skip' +Tue Dec 5 02:05:32 2023 - INFO - No qemu-user-riscv-upstream available for current host x86_64, skip ++ exit 0 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Tue Dec 5 02:05:32 2023 - INFO - start environment cleanup. ++ remove_ruyi +oe_test_ruyi_qemu.sh: line 73: remove_ruyi: command not found ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Tue Dec 5 02:05:32 2023 - INFO - Finish environment cleanup! diff --git a/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_venv/2023-12-05-02:05:41.log b/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_venv/2023-12-05-02:05:41.log new file mode 100644 index 0000000000000000000000000000000000000000..73972d1a2ee2ae695d257fd1182dbb9bb0ef4265 --- /dev/null +++ b/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_venv/2023-12-05-02:05:41.log @@ -0,0 +1,185 @@ ++ source ./common/common_lib.sh +++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib_python.sh +./common/common_lib.sh: line 73: syntax error near unexpected token `}' +./common/common_lib.sh: line 73: `}' ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Tue Dec 5 02:05:41 2023 - INFO - Start environmental preparation. ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 32 10.3M 32 3442k 0 0 6030k 0 0:00:01 --:--:-- 0:00:01 6028k 100 10.3M 100 10.3M 0 0 8516k 0 0:00:01 0:00:01 --:--:-- 8523k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/home/pager/.cache/ +++ echo /home/pager/.cache//ruyi ++ rm -rf /home/pager/.cache//ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Tue Dec 5 02:05:42 2023 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Tue Dec 5 02:05:42 2023 - INFO - Start to run test. ++ ruyi update ++ ruyi install gnu-plct +info: downloading +https://mirror.iscas.ac.cn/ruyisdk/dist/RuyiSDK-20231118-PLCT-Sources-riscv64-pl +ct-linux-gnu.tar.xz to +/home/pager/.cache/ruyi/distfiles/RuyiSDK-20231118-PLCT-Sources-riscv64-plct-lin +ux-gnu.tar.xz + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 232M 0 11088 0 0 62489 0 1:04:59 --:--:-- 1:04:59 62292 3 232M 3 9492k 0 0 8125k 0 0:00:29 0:00:01 0:00:28 8119k 8 232M 8 19.3M 0 0 9139k 0 0:00:26 0:00:02 0:00:24 9139k 13 232M 13 30.7M 0 0 9946k 0 0:00:23 0:00:03 0:00:20 9943k 19 232M 19 44.2M 0 0 10.6M 0 0:00:21 0:00:04 0:00:17 10.6M 25 232M 25 59.7M 0 0 11.5M 0 0:00:20 0:00:05 0:00:15 11.9M 33 232M 33 77.2M 0 0 12.5M 0 0:00:18 0:00:06 0:00:12 13.5M 41 232M 41 96.6M 0 0 13.4M 0 0:00:17 0:00:07 0:00:10 15.4M 50 232M 50 118M 0 0 14.4M 0 0:00:16 0:00:08 0:00:08 17.4M 60 232M 60 141M 0 0 15.4M 0 0:00:15 0:00:09 0:00:06 19.4M 71 232M 71 167M 0 0 16.4M 0 0:00:14 0:00:10 0:00:04 21.4M 83 232M 83 194M 0 0 17.4M 0 0:00:13 0:00:11 0:00:02 23.4M 96 232M 96 224M 0 0 18.4M 0 0:00:12 0:00:12 --:--:-- 25.4M 100 232M 100 232M 0 0 18.6M 0 0:00:12 0:00:12 --:--:-- 26.7M +info: extracting RuyiSDK-20231118-PLCT-Sources-riscv64-plct-linux-gnu.tar.xz for +package gnu-plct-0.20231118.0 +info: package gnu-plct-0.20231118.0 installed to +/home/pager/.local/share/ruyi/binaries/x86_64/gnu-plct-0.20231118.0 ++ ruyi venv --toolchain gnu-plct milkv-duo test-venv ++ grep 'The virtual environment is now created.' +info: The virtual environment is now created. ++ CHECK_RESULT 0 0 0 'Check ruyi venv install failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi venv install failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ '[' -f ./test-venv/bin/ruyi-activate ']' ++ CHECK_RESULT 0 0 0 'Check ruyi venv activate file failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi venv activate file failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ oldps1= ++ source ./test-venv/bin/ruyi-activate +++ '[' ./test-venv/bin/ruyi-activate = oe_test_ruyi_venv.sh ']' +++ ruyi-deactivate nondestructive +++ '[' -z '' ']' +++ hash -r +++ '[' -z '' ']' +++ unset RUYI_VENV +++ unset RUYI_VENV_PROMPT +++ '[' '!' nondestructive = nondestructive ']' +++ RUYI_VENV=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/test-venv +++ export RUYI_VENV +++ _RUYI_OLD_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ PATH=/home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/test-venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin +++ export PATH +++ hash -r ++++ basename /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/test-venv +++ RUYI_VENV_PROMPT=test-venv +++ export RUYI_VENV_PROMPT +++ '[' -z '' ']' +++ _RUYI_OLD_PS1= +++ PS1='«Ruyi test-venv» ' +++ export PS1 ++ echo '«Ruyi test-venv» ' ++ grep test-venv +«Ruyi test-venv» ++ CHECK_RESULT 0 0 0 'Check activate ruyi venv PS1 failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check activate ruyi venv PS1 failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi-deactivate ++ '[' -z _ ']' ++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin ++ export PATH ++ unset _RUYI_OLD_PATH ++ hash -r ++ '[' -z _ ']' ++ PS1= ++ export PS1 ++ unset _RUYI_OLD_PS1 ++ unset RUYI_VENV ++ unset RUYI_VENV_PROMPT ++ '[' '!' '' = nondestructive ']' ++ unset -f ruyi-deactivate ++ '[' '' == '' ']' ++ CHECK_RESULT 0 0 0 'Check deactivate ruyi venv PS1 failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check deactivate ruyi venv PS1 failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ rm -rf test-venv ++ LOG_INFO 'End of the test.' ++ message='End of the test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of the test.' +Tue Dec 5 02:06:10 2023 - INFO - End of the test. ++ CASE_RESULT 0 ++ case_re=0 ++ test -z '' ++ test 0 -eq 0 ++ LOG_INFO 'succeed to execute the case.' ++ message='succeed to execute the case.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'succeed to execute the case.' +Tue Dec 5 02:06:10 2023 - INFO - succeed to execute the case. ++ exec_result= ++ exit 0 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Tue Dec 5 02:06:10 2023 - INFO - start environment cleanup. ++ remove_ruyi +oe_test_ruyi_venv.sh: line 50: remove_ruyi: command not found ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Tue Dec 5 02:06:10 2023 - INFO - Finish environment cleanup! diff --git a/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_xdg/2023-12-05-02:09:17.log b/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_xdg/2023-12-05-02:09:17.log new file mode 100644 index 0000000000000000000000000000000000000000..41041ffbaf02a1cdb570aaab389177f02dfca103 --- /dev/null +++ b/pre_round4/mugen_build_100/ubuntu-2204_x86_64/logs/ruyi/oe_test_ruyi_xdg/2023-12-05-02:09:17.log @@ -0,0 +1,351 @@ ++ source ./common/common_lib.sh +++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /home/pager/Desktop/mugen-ruyi/libs/locallibs/common_lib_python.sh +./common/common_lib.sh: line 73: syntax error near unexpected token `}' +./common/common_lib.sh: line 73: `}' ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Tue Dec 5 02:09:17 2023 - INFO - Start environmental preparation. ++ install_ruyi ++ sudo apt install 'git tar bzip2 xz-utils zstd' + +WARNING: apt does not have a stable CLI interface. Use with caution in scripts. + +Reading package lists... +Building dependency tree... +Reading state information... +E: Unable to locate package git tar bzip2 xz-utils zstd ++ version=20231204 ++ arch=amd64 +++ uname -m ++ larch=x86_64 ++ '[' x86_64 == riscv64 ']' ++ '[' x86_64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20231204 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 19 10.3M 19 2046k 0 0 3732k 0 0:00:02 --:--:-- 0:00:02 3727k 83 10.3M 83 8846k 0 0 5691k 0 0:00:01 0:00:01 --:--:-- 5689k 100 10.3M 100 10.3M 0 0 5941k 0 0:00:01 0:00:01 --:--:-- 5939k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /home/pager/Desktop/mugen-ruyi/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi +ln: failed to create symbolic link '/usr/bin/ruyi': File exists +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf /root/.cache//ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Tue Dec 5 02:09:19 2023 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Tue Dec 5 02:09:19 2023 - INFO - Start to run test. ++ export XDG_CACHE_HOME=/root/.cache/test ++ XDG_CACHE_HOME=/root/.cache/test ++ export XDG_DATA_HOME=/root/.local/share/test ++ XDG_DATA_HOME=/root/.local/share/test ++ mkdir /root/.cache/test /root/.local/share/test +mkdir: cannot create directory ‘/root/.local/share/test’: No such file or directory ++ xdg_ruyi_dir=/root/.cache/test/ruyi ++ xdg_ruyi_data_dir=/root/.local/share/test/ruyi ++ default_ruyi_dir=/root/.cache/ruyi ++ default_ruyi_data_dir=/root/.local/share/ruyi ++ ruyi list +List of available packages: + +* source/coremark + - 1.0.2-pre.20230125 (prerelease, latest-prerelease) + - 1.0.1 (latest) +* source/ruyisdk-demo + - 0.20231114.0 (latest) +* emulator/qemu-user-riscv-upstream + - 8.1.2-ruyi.20231121 (latest) +* toolchain/llvm-upstream + - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121 +* toolchain/gnu-plct-xthead + - 0.20231118.0 (latest) slug: gnu-plct-xthead-20231118 +* toolchain/gnu-upstream + - 0.20231118.0 (latest) slug: gnu-upstream-20231118 +* toolchain/gnu-plct + - 0.20231118.0 (latest) slug: gnu-plct-20231118 ++ CHECK_RESULT 0 0 0 'Check ruyi empty list failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi empty list failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi update ++ CHECK_RESULT 0 0 0 'Check ruyi update failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi update failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 +++ ruyi list +++ grep -e '^* ' +++ wc -l ++ pkgcnt=7 ++ CHECK_RESULT 7 0 1 'Check ruyi list failed' ++ actual_result=7 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi list failed' ++ exit_mode=0 ++ '[' -z 7 ']' ++ '[' 1 -eq 0 ']' ++ test 7x == 0x ++ return 0 ++ ruyi list ++ grep 'Package declares' ++ CHECK_RESULT 1 0 1 'Check ruyi brief list failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi brief list failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ ruyi list --verbose ++ grep 'Package declares' +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 1 distfile(s): +Package declares 2 distfile(s): +Package declares 2 distfile(s): +Package declares 2 distfile(s): ++ CHECK_RESULT 0 0 0 'Check ruyi list verbose package failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose package failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi list --verbose ++ grep 'Binary artifacts' +### Binary artifacts +### Binary artifacts +### Binary artifacts +### Binary artifacts +### Binary artifacts ++ CHECK_RESULT 0 0 0 'Check ruyi list verbose artifacts failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose artifacts failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi list --verbose ++ grep 'Toolchain metadata' +### Toolchain metadata +### Toolchain metadata +### Toolchain metadata +### Toolchain metadata ++ CHECK_RESULT 0 0 0 'Check ruyi list verbose metadata failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose metadata failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 +++ ruyi list +++ grep -e '^* toolchain' +++ cut -d/ -f 2 ++ pkgnames='llvm-upstream +gnu-plct-xthead +gnu-upstream +gnu-plct' ++ for p in $pkgnames +++ ruyi list +++ grep -E 'slug: llvm-upstream-[0-9]+' +++ grep -v 'no binary for current host' ++ s=' - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121' ++ '[' '!' -z ' - 17.0.5-ruyi.20231121 (latest) slug: llvm-upstream-20231121' ']' ++ pkgname=llvm-upstream ++ break ++ '[' -z llvm-upstream ']' ++ ruyi install llvm-upstream +info: downloading +https://mirror.iscas.ac.cn/ruyisdk/dist/llvm-17.0.5.ruyi-20231121.amd64.tar.zst +to /root/.cache/test/ruyi/distfiles/llvm-17.0.5.ruyi-20231121.amd64.tar.zst + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 398M 0 113k 0 0 446k 0 0:15:14 --:--:-- 0:15:14 445k 1 398M 1 5637k 0 0 4519k 0 0:01:30 0:00:01 0:01:29 4517k 2 398M 2 11.6M 0 0 5305k 0 0:01:16 0:00:02 0:01:14 5306k 4 398M 4 19.3M 0 0 6086k 0 0:01:07 0:00:03 0:01:04 6086k 7 398M 7 28.5M 0 0 6872k 0 0:00:59 0:00:04 0:00:55 6871k 9 398M 9 39.2M 0 0 7665k 0 0:00:53 0:00:05 0:00:48 8030k 12 398M 12 51.5M 0 0 8457k 0 0:00:48 0:00:06 0:00:42 9440k 16 398M 16 65.4M 0 0 9253k 0 0:00:44 0:00:07 0:00:37 10.7M 20 398M 20 80.8M 0 0 9.8M 0 0:00:40 0:00:08 0:00:32 12.3M 24 398M 24 97.8M 0 0 10.5M 0 0:00:37 0:00:09 0:00:28 13.8M 29 398M 29 116M 0 0 11.3M 0 0:00:35 0:00:10 0:00:25 15.4M 34 398M 34 136M 0 0 12.1M 0 0:00:32 0:00:11 0:00:21 16.9M 39 398M 39 158M 0 0 12.9M 0 0:00:30 0:00:12 0:00:18 18.5M 45 398M 45 181M 0 0 13.6M 0 0:00:29 0:00:13 0:00:16 20.0M 52 398M 52 207M 0 0 14.5M 0 0:00:27 0:00:14 0:00:13 21.9M 60 398M 60 240M 0 0 15.7M 0 0:00:25 0:00:15 0:00:10 24.8M 70 398M 70 282M 0 0 17.3M 0 0:00:22 0:00:16 0:00:06 29.1M 82 398M 82 329M 0 0 19.1M 0 0:00:20 0:00:17 0:00:03 34.3M 93 398M 93 373M 0 0 20.4M 0 0:00:19 0:00:18 0:00:01 38.4M 100 398M 100 398M 0 0 21.1M 0 0:00:18 0:00:18 --:--:-- 41.8M +info: extracting llvm-17.0.5.ruyi-20231121.amd64.tar.zst for package +llvm-upstream-17.0.5-ruyi.20231121 +info: package llvm-upstream-17.0.5-ruyi.20231121 installed to +/root/.local/share/test/ruyi/binaries/x86_64/llvm-upstream-17.0.5-ruyi.20231121 ++ CHECK_RESULT 0 0 0 'Check ruyi install package failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi install package failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi install llvm-upstream ++ grep 'skipping already installed package' +info: skipping already installed package llvm-upstream-17.0.5-ruyi.20231121 ++ CHECK_RESULT 0 0 0 'Check ruyi install duplicate package failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi install duplicate package failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ '[' -d /root/.cache/test/ruyi ']' ++ CHECK_RESULT 0 0 0 'Check ruyi create xdg based cache directory failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi create xdg based cache directory failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ '[' -d /root/.cache/ruyi ']' ++ CHECK_RESULT 1 0 1 'Check ruyi create default cache directory failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi create default cache directory failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ '[' -d /root/.local/share/test/ruyi ']' ++ CHECK_RESULT 0 0 0 'Check ruyi create xdg based data directory failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi create xdg based data directory failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ '[' -d /root/.local/share/ruyi ']' ++ CHECK_RESULT 1 0 1 'Check ruyi create default data directory failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi create default data directory failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ ruyi self uninstall --purge -y +info: uninstallation consent given over CLI, proceeding +info: removing installed packages +info: removing cached data +info: removing the ruyi binary +info: ruyi is uninstalled ++ CHECK_RESULT 0 0 0 'Check ruyi xdg self purge failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi xdg self purge failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ '[' -d /root/.cache/test/ruyi ']' ++ CHECK_RESULT 1 0 1 'Check ruyi xdg purge cache dir exists failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi xdg purge cache dir exists failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ '[' -d /root/.local/share/test/ruyi ']' ++ CHECK_RESULT 1 0 1 'Check ruyi xdg purge data dir exists failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi xdg purge data dir exists failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ rm -rf /root/.cache/test ++ rm -rf /root/.local/share/test ++ export XDG_CACHE_HOME= ++ XDG_CACHE_HOME= ++ export XDG_DATA_HOME= ++ XDG_DATA_HOME= ++ LOG_INFO 'End of the test.' ++ message='End of the test.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'End of the test.' +Tue Dec 5 02:09:43 2023 - INFO - End of the test. ++ CASE_RESULT 0 ++ case_re=0 ++ test -z '' ++ test 0 -eq 0 ++ LOG_INFO 'succeed to execute the case.' ++ message='succeed to execute the case.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'succeed to execute the case.' +Tue Dec 5 02:09:43 2023 - INFO - succeed to execute the case. ++ exec_result= ++ exit 0 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Tue Dec 5 02:09:43 2023 - INFO - start environment cleanup. ++ remove_ruyi +oe_test_ruyi_xdg.sh: line 95: remove_ruyi: command not found ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /home/pager/Desktop/mugen-ruyi/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Tue Dec 5 02:09:43 2023 - INFO - Finish environment cleanup!