From: jianzhong.fang Date: Wed, 23 Sep 2015 06:53:42 +0000 (+0800) Subject: Drop raw image format test cases X-Git-Tag: submit/devel/20190730.074558~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43f099b86c39c50863b268c9ecce51d2afcbeb1d;p=tools%2Fitest-cases-mic.git Drop raw image format test cases Change-Id: I31368d6e3dfd4ecac30908fd063fd5cedcc692b8 --- diff --git a/cases/create/func_cases/mic_cr_auto_raw.case b/cases/create/func_cases/mic_cr_auto_raw.case deleted file mode 100644 index f372370..0000000 --- a/cases/create/func_cases/mic_cr_auto_raw.case +++ /dev/null @@ -1,99 +0,0 @@ - - test 'mic cr auto ks' for raw type -if we run command with 'auto', mic will use the first line in ks file, -which called magic line, and magic line in this ks file is: - -*-mic2-options-*- -f raw --copy-kernel --compress-disk-image=bz2 --generate-bmap -*-mic2-options-*- - - - - -import sys -import json -img_file = sys.argv[1] -mic_version = sys.argv[2] -bmap_file = sys.argv[3] -manifest_file=open('mic-output/manifest.json') -manifest=json.load(manifest_file) -assert manifest['format'] == 'raw' -assert manifest['version'] == mic_version -assert manifest['raw']['compress'] == 'bz2' -assert img_file in manifest['raw']['image_files'] -assert 'sdb' in manifest['raw']['disks'] -assert manifest['raw']['sdb']['bmap'] == bmap_file -assert manifest['raw']['sdb']['image'] == img_file - - - - - diff --git a/cases/create/func_cases/mic_cr_auto_raw_gpt.case b/cases/create/func_cases/mic_cr_auto_raw_gpt.case deleted file mode 100644 index 836753d..0000000 --- a/cases/create/func_cases/mic_cr_auto_raw_gpt.case +++ /dev/null @@ -1,76 +0,0 @@ - - create raw image with gpt table and --part-type for partition - - - - - - diff --git a/cases/create/func_cases/mic_cr_raw_generate-bmap_cp-knl_compress_runtime_local-pkgs_conf_armv7l.case b/cases/create/func_cases/mic_cr_raw_generate-bmap_cp-knl_compress_runtime_local-pkgs_conf_armv7l.case deleted file mode 100644 index 4627a4f..0000000 --- a/cases/create/func_cases/mic_cr_raw_generate-bmap_cp-knl_compress_runtime_local-pkgs_conf_armv7l.case +++ /dev/null @@ -1,48 +0,0 @@ - - create raw image with "--generate-bmap --compress-disk-image=bz2 --copy-kernel --runtime=zypp --local-pkgs-path=rpm -c conf/mic.conf" - - - - - - - - diff --git a/cases/create/func_cases/mic_cr_raw_gpt-part-type.case b/cases/create/func_cases/mic_cr_raw_gpt-part-type.case deleted file mode 100644 index bf4f5a3..0000000 --- a/cases/create/func_cases/mic_cr_raw_gpt-part-type.case +++ /dev/null @@ -1,29 +0,0 @@ - - create raw image with gpt table and --part-type for partition - - - - - - diff --git a/cases/create/func_cases/mic_cr_raw_release_logfile_local-pkg-pth_record-pkg_gen-bmap_ia32.case b/cases/create/func_cases/mic_cr_raw_release_logfile_local-pkg-pth_record-pkg_gen-bmap_ia32.case deleted file mode 100644 index 58dcef3..0000000 --- a/cases/create/func_cases/mic_cr_raw_release_logfile_local-pkg-pth_record-pkg_gen-bmap_ia32.case +++ /dev/null @@ -1,46 +0,0 @@ - - This test case is used to test the option "--logfile", - if a file name is given to it, images should be created successfully. - There is no need to give an existed file name, mic will create a new - file with the given name if the file does not exist at present. - - - - - - - - diff --git a/cases/create/mixed_cases/mic_cr_createrepo_issue.case b/cases/create/mixed_cases/mic_cr_createrepo_issue.case deleted file mode 100644 index 6054c0d..0000000 --- a/cases/create/mixed_cases/mic_cr_createrepo_issue.case +++ /dev/null @@ -1,51 +0,0 @@ - - Test whether repo created by 'createrepo' locally can be used by mic - - 2261 - - - - - - - - diff --git a/cases/create/mixed_cases/mic_cr_raw_active_partition.case b/cases/create/mixed_cases/mic_cr_raw_active_partition.case deleted file mode 100644 index 1304792..0000000 --- a/cases/create/mixed_cases/mic_cr_raw_active_partition.case +++ /dev/null @@ -1,37 +0,0 @@ - - This case is used to test if mic can work well with '--active' configed to partition in ks config file, the command is as bellow: - mic cr raw ./ks_files/ivi_with_active_partition.ks - - 639 - - - - - - - diff --git a/cases/create/mixed_cases/mic_cr_raw_broken_bootstrap.case b/cases/create/mixed_cases/mic_cr_raw_broken_bootstrap.case deleted file mode 100644 index 8b5e971..0000000 --- a/cases/create/mixed_cases/mic_cr_raw_broken_bootstrap.case +++ /dev/null @@ -1,21 +0,0 @@ - - Testing broken mic-bootstrap - - - - - - diff --git a/cases/create/mixed_cases/mic_cr_raw_installerfw_extlinux.case b/cases/create/mixed_cases/mic_cr_raw_installerfw_extlinux.case deleted file mode 100644 index ca2a4fc..0000000 --- a/cases/create/mixed_cases/mic_cr_raw_installerfw_extlinux.case +++ /dev/null @@ -1,46 +0,0 @@ - - This case is used to test if 'installerfw' command in ks - - - - - - - diff --git a/cases/create/mixed_cases/mic_cr_raw_invliad_mic-bootstrap.case b/cases/create/mixed_cases/mic_cr_raw_invliad_mic-bootstrap.case deleted file mode 100644 index 858fd62..0000000 --- a/cases/create/mixed_cases/mic_cr_raw_invliad_mic-bootstrap.case +++ /dev/null @@ -1,21 +0,0 @@ - - Testing invalid mic-bootstrap - - - - - - diff --git a/cases/create/mixed_cases/mic_cr_raw_ivi_partition_size_compute_ia32.case b/cases/create/mixed_cases/mic_cr_raw_ivi_partition_size_compute_ia32.case deleted file mode 100644 index 1b500c8..0000000 --- a/cases/create/mixed_cases/mic_cr_raw_ivi_partition_size_compute_ia32.case +++ /dev/null @@ -1,45 +0,0 @@ - - - - 624 - - - - - > tmp1.log - VAL1=$(awk '{print $NF}' tmp1.log | grep -o [0-9]*) - parted ./mic-output/ivi*.raw print >> tmp2.log - sed -i '/^$/d' tmp2.log - tail -1 tmp2.log >> tmp3.log - VAL2=$(awk '{print $3}' tmp3.log | grep -o [0-9]*) - test "$VAL1" -eq "$VAL2" -else - fdisk_path=$(sudo which fdisk) - VAL1=`sudo $fdisk_path -l ./mic-output/ivi*.raw | sed '/^$/d' | sed -n '$p' | awk '{print $3}'` - sudo $fdisk_path -l ./mic-output/ivi*.raw | sed -n '/.*sectors$/p' >> tmp2.file - VAL2=`awk '{print $(NF-1)}' tmp2.file` - let VAL3=$VAL2-1 - test "$VAL1" -eq "$VAL3" -fi -]]> - - diff --git a/cases/create/mixed_cases/mic_cr_raw_locale.case b/cases/create/mixed_cases/mic_cr_raw_locale.case deleted file mode 100644 index 6d07b15..0000000 --- a/cases/create/mixed_cases/mic_cr_raw_locale.case +++ /dev/null @@ -1,61 +0,0 @@ - - - test if '/etc/locale.conf' exists - - - - - - 1745 - - - - diff --git a/cases/create/mixed_cases/mic_cr_raw_multi_partition_gpt.case b/cases/create/mixed_cases/mic_cr_raw_multi_partition_gpt.case deleted file mode 100644 index 49750e0..0000000 --- a/cases/create/mixed_cases/mic_cr_raw_multi_partition_gpt.case +++ /dev/null @@ -1,28 +0,0 @@ - - This case is used to test if mic can work well with multi partitions for GPT partition table format, which are setted in ks config file, the command is : mic cr raw ./ks_files/ivi_four_partition_gpt.ks - - 741 - - - - - - - diff --git a/cases/create/mixed_cases/mic_cr_raw_multi_partition_mbr.case b/cases/create/mixed_cases/mic_cr_raw_multi_partition_mbr.case deleted file mode 100644 index b5907da..0000000 --- a/cases/create/mixed_cases/mic_cr_raw_multi_partition_mbr.case +++ /dev/null @@ -1,28 +0,0 @@ - - This case is used to test if mic can work well with multi partitions for 'msdos' partition table format which are setted in ks config file, the command is as bellow: mic cr raw ./ks_files/ivi_four_partition_mbr.ks - - 742 - - - - - - - diff --git a/cases/create/mixed_cases/mic_cr_raw_no_mountpoint.case b/cases/create/mixed_cases/mic_cr_raw_no_mountpoint.case deleted file mode 100644 index 7106d11..0000000 --- a/cases/create/mixed_cases/mic_cr_raw_no_mountpoint.case +++ /dev/null @@ -1,22 +0,0 @@ - - Test the condition that the ks file has no mountpoint. - - - - - - diff --git a/cases/create/mixed_cases/mic_cr_raw_no_partition.case b/cases/create/mixed_cases/mic_cr_raw_no_partition.case deleted file mode 100644 index 2252900..0000000 --- a/cases/create/mixed_cases/mic_cr_raw_no_partition.case +++ /dev/null @@ -1,23 +0,0 @@ - - This case is used to test if mic can work well with no partitions in ks config file, - the command is as bellow: mic cr raw ./ks_files/ivi_no_partition.ks - - - - - - diff --git a/cases/create/mixed_cases/mic_cr_raw_unicode.case b/cases/create/mixed_cases/mic_cr_raw_unicode.case deleted file mode 100644 index 9ebdcfc..0000000 --- a/cases/create/mixed_cases/mic_cr_raw_unicode.case +++ /dev/null @@ -1,23 +0,0 @@ - - create raw image when LANG is zh_CN.UTF-8 - - - - - - diff --git a/cases/create/mixed_cases/mic_cr_raw_without_conf_bootstrap_ia32.case b/cases/create/mixed_cases/mic_cr_raw_without_conf_bootstrap_ia32.case deleted file mode 100644 index 59fd6ad..0000000 --- a/cases/create/mixed_cases/mic_cr_raw_without_conf_bootstrap_ia32.case +++ /dev/null @@ -1,24 +0,0 @@ - - Without /etc/mic/mic.conf, raw image cannot be created in bootstrap mode - - - - &1 | tee mic.log -grep -i "Failed to download/install bootstrap package" mic.log -sudo $losetup_path -a -sudo $losetup_path -a | wc -l | xargs test 0 -eq -]]> - - diff --git a/cases/create/opt_cases/mic_cr_raw_compress-image-bz2_ia32.case b/cases/create/opt_cases/mic_cr_raw_compress-image-bz2_ia32.case deleted file mode 100644 index 83866bb..0000000 --- a/cases/create/opt_cases/mic_cr_raw_compress-image-bz2_ia32.case +++ /dev/null @@ -1,43 +0,0 @@ - - create raw image with ia32 arch and compress-image option with bz2 - - - - - cpmpress_volume)?"yes":"no"}'` -test $result = 'yes' -sudo bunzip2 $name2 -raw_name=`ls ivi*.raw` -test -f $raw_name -]]> - - diff --git a/cases/create/opt_cases/mic_cr_raw_compress-image-gz_ia32.case b/cases/create/opt_cases/mic_cr_raw_compress-image-gz_ia32.case deleted file mode 100644 index e1306f8..0000000 --- a/cases/create/opt_cases/mic_cr_raw_compress-image-gz_ia32.case +++ /dev/null @@ -1,39 +0,0 @@ - - create raw image with ia32 arch and compress-image option with gz - - - - - cpmpress_volume)?"yes":"no"}'` -test $result = 'yes' -sudo gunzip $name2 -raw_name=`ls ivi*.raw` -test -f $name -]]> - - diff --git a/cases/create/opt_cases/mic_cr_raw_compress-image-invalid_ia32.case b/cases/create/opt_cases/mic_cr_raw_compress-image-invalid_ia32.case deleted file mode 100644 index 24893be..0000000 --- a/cases/create/opt_cases/mic_cr_raw_compress-image-invalid_ia32.case +++ /dev/null @@ -1,21 +0,0 @@ - - create raw image with ia32 arch and compress-image option with invalid option, like zip - - - - &1 | tee mic2.log ) -grep "compress-image: invalid choice: 'zip'" mic2.log -sudo $losetup_path -a -sudo $losetup_path -a | wc -l | xargs test 0 -eq -]]> - - diff --git a/cases/create/opt_cases/mic_cr_raw_fstab-entry-name.case b/cases/create/opt_cases/mic_cr_raw_fstab-entry-name.case deleted file mode 100644 index 1371bc8..0000000 --- a/cases/create/opt_cases/mic_cr_raw_fstab-entry-name.case +++ /dev/null @@ -1,59 +0,0 @@ - - This test case is used to test the option "--fstab-entry=name", - - - - - - diff --git a/cases/create/opt_cases/mic_cr_raw_fstab-entry-uuid.case b/cases/create/opt_cases/mic_cr_raw_fstab-entry-uuid.case deleted file mode 100644 index ea249f5..0000000 --- a/cases/create/opt_cases/mic_cr_raw_fstab-entry-uuid.case +++ /dev/null @@ -1,60 +0,0 @@ - - This test case is used to test the option "--fstab-entry=uuid", - - - - - - diff --git a/cases/create/opt_cases/mic_cr_raw_generate-bmap_ia32.case b/cases/create/opt_cases/mic_cr_raw_generate-bmap_ia32.case deleted file mode 100644 index 26770ce..0000000 --- a/cases/create/opt_cases/mic_cr_raw_generate-bmap_ia32.case +++ /dev/null @@ -1,23 +0,0 @@ - - create loop image with ia32 arch and shrink option - - - - - -