From: xuhy Date: Wed, 20 Dec 2023 08:43:14 +0000 (+0800) Subject: Add test cases for riscv64 arch. X-Git-Tag: accepted/tools/devbase/tools/20250527.103752~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=930aee6afaa042f12dc0e662cb35b22646da0574;p=tools%2Fitest-cases-mic.git Add test cases for riscv64 arch. Change-Id: I608ae0829d2ec3a75d19f496baa2f3aa4e15703e Signed-off-by: xuhy --- diff --git a/cases/create/func_cases/mic_cr_fs_inc-src_cache-dir_arch_logfile_riscv64.case b/cases/create/func_cases/mic_cr_fs_inc-src_cache-dir_arch_logfile_riscv64.case new file mode 100755 index 0000000..1b9a29e --- /dev/null +++ b/cases/create/func_cases/mic_cr_fs_inc-src_cache-dir_arch_logfile_riscv64.case @@ -0,0 +1,42 @@ + + This test case is used to test the options "--include-src --logfile=fs_src.log -k fs_cache -A riscv64". All these options are used to test whether the image will be generated according to the given values. + + + + + + + + + + + + + diff --git a/cases/create/func_cases/mic_cr_loop_compress_local-pkgs_record-pkgs_pack-to_riscv64.case b/cases/create/func_cases/mic_cr_loop_compress_local-pkgs_record-pkgs_pack-to_riscv64.case new file mode 100755 index 0000000..d8413d7 --- /dev/null +++ b/cases/create/func_cases/mic_cr_loop_compress_local-pkgs_record-pkgs_pack-to_riscv64.case @@ -0,0 +1,56 @@ + + create loop image with riscv64 arch, and options is + "--local-pkgs-path=./rpm --record-pkgs=name,content,license --taring-to=@NAME@.tar --compress-image=bz2" + + + + + + + + + diff --git a/cases/create/func_cases/mic_cr_loop_logfile_conf_shrink_release_pkgmgr_riscv64.case b/cases/create/func_cases/mic_cr_loop_logfile_conf_shrink_release_pkgmgr_riscv64.case new file mode 100755 index 0000000..7dfcb7e --- /dev/null +++ b/cases/create/func_cases/mic_cr_loop_logfile_conf_shrink_release_pkgmgr_riscv64.case @@ -0,0 +1,48 @@ + + create loop image with riscv64 arch, the option is +"--logfile=/custome/riscv64.log -c conf/mic.conf --shrink --release=latest --pkgmgr=zypp" + + + + + + + + + diff --git a/cases/create/opt_cases/mic_cr_loop_pack-to-Invalid_riscv64.case b/cases/create/opt_cases/mic_cr_loop_pack-to-Invalid_riscv64.case new file mode 100755 index 0000000..0d390dc --- /dev/null +++ b/cases/create/opt_cases/mic_cr_loop_pack-to-Invalid_riscv64.case @@ -0,0 +1,28 @@ + + create loop image with arch riscv64 and --pack-to is .bz2 + + + + + + + + diff --git a/cases/create/opt_cases/mic_cr_loop_pack-to-tar-bz_riscv64.case b/cases/create/opt_cases/mic_cr_loop_pack-to-tar-bz_riscv64.case new file mode 100755 index 0000000..f83b3fb --- /dev/null +++ b/cases/create/opt_cases/mic_cr_loop_pack-to-tar-bz_riscv64.case @@ -0,0 +1,32 @@ + + create loop image with arch riscv64 and --pack-to is .tar.bz2 + + + + + + + + diff --git a/cases/create/opt_cases/mic_cr_loop_pack-to-tar-gz_riscv64.case b/cases/create/opt_cases/mic_cr_loop_pack-to-tar-gz_riscv64.case new file mode 100755 index 0000000..cbaf9f1 --- /dev/null +++ b/cases/create/opt_cases/mic_cr_loop_pack-to-tar-gz_riscv64.case @@ -0,0 +1,32 @@ + + create loop image with arch riscv64 and --pack-to is .tar.gz + + + + + + + + diff --git a/cases/create/opt_cases/mic_cr_loop_pack-to-tar_riscv64.case b/cases/create/opt_cases/mic_cr_loop_pack-to-tar_riscv64.case new file mode 100755 index 0000000..5721b2e --- /dev/null +++ b/cases/create/opt_cases/mic_cr_loop_pack-to-tar_riscv64.case @@ -0,0 +1,31 @@ + + create loop image with arch riscv64 and --pack-to is @NAME@.tar + + + + + + + + diff --git a/cases/create/opt_cases/mic_cr_loop_pack-to-zip_riscv64.case b/cases/create/opt_cases/mic_cr_loop_pack-to-zip_riscv64.case new file mode 100755 index 0000000..fa6eac7 --- /dev/null +++ b/cases/create/opt_cases/mic_cr_loop_pack-to-zip_riscv64.case @@ -0,0 +1,36 @@ + + create loop image with arch riscv64 and --pack-to is .zip + + + + + + + + diff --git a/cases/create/opt_cases/mic_cr_loop_release_latest_riscv64.case b/cases/create/opt_cases/mic_cr_loop_release_latest_riscv64.case new file mode 100755 index 0000000..109501b --- /dev/null +++ b/cases/create/opt_cases/mic_cr_loop_release_latest_riscv64.case @@ -0,0 +1,32 @@ + + + + + + + + + + diff --git a/cases/create/opt_cases/mic_cr_loop_runtime-bootstrap_riscv64.case b/cases/create/opt_cases/mic_cr_loop_runtime-bootstrap_riscv64.case new file mode 100755 index 0000000..90c17fa --- /dev/null +++ b/cases/create/opt_cases/mic_cr_loop_runtime-bootstrap_riscv64.case @@ -0,0 +1,32 @@ + + create loop image with riscv64 arch and --runtime is bootstrap + + + + + + + + diff --git a/fixtures/conf/repo_config.json b/fixtures/conf/repo_config.json index 8d1066f..8750b09 100644 --- a/fixtures/conf/repo_config.json +++ b/fixtures/conf/repo_config.json @@ -1,4 +1,14 @@ { + "riscv64-profile": [ + "repo --name=Tizen-base --baseurl=http://download.tizen.org/releases/milestone/TIZEN/Tizen/Tizen-Base-RISCV/latest/repos/standard/packages/ --save --gpgkey=0 --ssl_verify=no", + "repo --name=Tizen-main --baseurl=http://download.tizen.org/releases/milestone/TIZEN/Tizen/Tizen-Unified-RISCV/latest/repos/standard/packages/ --save --gpgkey=0 --ssl_verify=no", + "repo --name=Tizen-base-source --baseurl=http://download.tizen.org/releases/milestone/TIZEN/Tizen/Tizen-Base-RISCV/latest/repos/standard/source/ --save --source --gpgkey=0 --ssl_verify=no", + "repo --name=Tizen-main-source --baseurl=http://download.tizen.org/releases/milestone/TIZEN/Tizen/Tizen-Unified-RISCV/latest/repos/standard/source/ --save --source --gpgkey=0 --ssl_verify=no" + ], + "riscv64-no-source-profile": [ + "repo --name=Tizen-base --baseurl=http://download.tizen.org/releases/milestone/TIZEN/Tizen/Tizen-Base-RISCV/latest/repos/standard/packages/ --save --gpgkey=0 --ssl_verify=no", + "repo --name=Tizen-main --baseurl=http://download.tizen.org/releases/milestone/TIZEN/Tizen/Tizen-Unified-RISCV/latest/repos/standard/packages/ --save --gpgkey=0 --ssl_verify=no" + ], "arm64-profile": [ "repo --name=Tizen-main --baseurl=http://10.113.136.109/repo/aarch64/ --save --gpgkey=0 --ssl_verify=no" ], diff --git a/fixtures/ks_files/handset_blackbay_riscv64.ks b/fixtures/ks_files/handset_blackbay_riscv64.ks new file mode 100755 index 0000000..d4aef56 --- /dev/null +++ b/fixtures/ks_files/handset_blackbay_riscv64.ks @@ -0,0 +1,42 @@ +# -*-mic2-options-*- -f loop --pack-to=@NAME@-rs.zip -*-mic2-options-*- + +lang en_US.UTF-8 +keyboard us +timezone --utc America/Los_Angeles + +part / --size 848 --ondisk sda --fstype=ext3 --label platform + +rootpw tizen +bootloader --timeout=0 --append="rootdelay=5 security=none" + +desktop --autologinuser=tizen +user --name tizen --groups audio,video --password 'tizen' + +repo --name=Tizen-base --baseurl=http://download.tizen.org/releases/milestone/TIZEN/Tizen/Tizen-Base-RISCV/latest/repos/standard/packages/ --save --gpgkey=0 --ssl_verify=no +repo --name=Tizen-main --baseurl=http://download.tizen.org/releases/milestone/TIZEN/Tizen/Tizen-Unified-RISCV/latest/repos/standard/packages/ --save --gpgkey=0 --ssl_verify=no +repo --name=Tizen-base-source --baseurl=http://download.tizen.org/releases/milestone/TIZEN/Tizen/Tizen-Base-RISCV/latest/repos/standard/source/ --save --source --gpgkey=0 --ssl_verify=no +repo --name=Tizen-main-source --baseurl=http://download.tizen.org/releases/milestone/TIZEN/Tizen/Tizen-Unified-RISCV/latest/repos/standard/source/ --save --source --gpgkey=0 --ssl_verify=no + +%packages +coreutils +bash +rpm +%end + +%attachment +preos-runtime +bootstub-bb +/boot/cmdline +/boot/vmlinuz-* +%end + +%post +# Set environment for launchpad daemon. Fix TDIST-264 +cat > /etc/sysconfig/launchpad < /etc/sysconfig/launchpad <