create all PASS cases branch
authoradmin <yuhuan.yang@samsung.com>
Fri, 24 Jul 2015 01:17:57 +0000 (09:17 +0800)
committeradmin <yuhuan.yang@samsung.com>
Fri, 24 Jul 2015 01:17:57 +0000 (09:17 +0800)
87 files changed:
cases/create/func_cases/mic_cr_auto_qcow.case [deleted file]
cases/create/func_cases/mic_cr_qcow_check-pkgs_tmpfs_ia32.case [deleted file]
cases/create/func_cases/mic_cr_qcow_config_runtime_ia32.case [deleted file]
cases/create/func_cases/mic_cr_qcow_local-pkgs_record-pkgs.case [deleted file]
cases/create/func_cases/mic_cr_qcow_logfile_conf_release_pkgmgr.case [deleted file]
cases/create/mixed_cases/mic_cr_auto_arm64.case [deleted file]
cases/create/mixed_cases/mic_cr_fs_duplicate_log_native.case [deleted file]
cases/create/mixed_cases/mic_cr_fs_native_check_chroot.case [deleted file]
cases/create/mixed_cases/mic_cr_fs_prefix-conf_ia32.case [deleted file]
cases/create/mixed_cases/mic_cr_fs_without_conf_native_ia32.case [deleted file]
cases/create/mixed_cases/mic_cr_livecd_bootstrap_check_chroot.case [deleted file]
cases/create/mixed_cases/mic_cr_livecd_duplicate_log_native.case [deleted file]
cases/create/mixed_cases/mic_cr_livecd_prefix-conf_ia32.case [deleted file]
cases/create/mixed_cases/mic_cr_livecd_with_partition_label.case [deleted file]
cases/create/mixed_cases/mic_cr_livecd_without_conf_bootstrap_ia32.case [deleted file]
cases/create/mixed_cases/mic_cr_livecd_without_conf_native_ia32.case [deleted file]
cases/create/mixed_cases/mic_cr_liveusb_bootstrap_check_chroot.case [deleted file]
cases/create/mixed_cases/mic_cr_liveusb_duplicate_log_native.case [deleted file]
cases/create/mixed_cases/mic_cr_liveusb_excludepkgs_issue_1066.case [deleted file]
cases/create/mixed_cases/mic_cr_liveusb_includepkgs.case [deleted file]
cases/create/mixed_cases/mic_cr_liveusb_prefix-conf_ia32.case [deleted file]
cases/create/mixed_cases/mic_cr_liveusb_release_record-pkgs_.case [deleted file]
cases/create/mixed_cases/mic_cr_liveusb_with_partition_label.case [deleted file]
cases/create/mixed_cases/mic_cr_liveusb_without_conf_bootstrap_ia32.case [deleted file]
cases/create/mixed_cases/mic_cr_liveusb_without_conf_native_ia32.case [deleted file]
cases/create/mixed_cases/mic_cr_loop_bootstrap_issue_1093.case [deleted file]
cases/create/mixed_cases/mic_cr_loop_check_md5sum.case [deleted file]
cases/create/mixed_cases/mic_cr_loop_conf_difference.case [deleted file]
cases/create/mixed_cases/mic_cr_loop_duplicate_log_native.case [deleted file]
cases/create/mixed_cases/mic_cr_loop_issue_794.case [deleted file]
cases/create/mixed_cases/mic_cr_loop_native_check_chroot.case [deleted file]
cases/create/mixed_cases/mic_cr_loop_native_issue_1093.case [deleted file]
cases/create/mixed_cases/mic_cr_loop_prefix-conf_ia32.case [deleted file]
cases/create/mixed_cases/mic_cr_loop_without_conf_native_ia32.case [deleted file]
cases/create/mixed_cases/mic_cr_raw_check-bootflag_gpt.case [deleted file]
cases/create/mixed_cases/mic_cr_raw_check-bootflag_mbr.case [deleted file]
cases/create/mixed_cases/mic_cr_raw_duplicate_log_native.case [deleted file]
cases/create/mixed_cases/mic_cr_raw_installerfw_fstab.case [deleted file]
cases/create/mixed_cases/mic_cr_raw_prefix-conf_ia32.case [deleted file]
cases/create/mixed_cases/mic_cr_raw_proxy_in_ks_native.case [deleted file]
cases/create/mixed_cases/mic_cr_raw_release_record-pkgs_yum.case [deleted file]
cases/create/mixed_cases/mic_cr_raw_without_conf_native_ia32.case [deleted file]
cases/create/mixed_cases/mic_cr_strict_mode_image.case [deleted file]
cases/create/opt_cases/mic_cr_auto_liveusb.case [deleted file]
cases/create/opt_cases/mic_cr_fs_include-src_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_fs_pack-to-tar-bz2_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_fs_pack-to-tar-gz_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_fs_pack-to-tar_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_fs_pack-to-tbz_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_fs_pack-to-tgz_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_fs_record-pkgs-name-content-license-vcs_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_fs_runtime-native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_livecd.case [deleted file]
cases/create/opt_cases/mic_cr_liveusb.case [deleted file]
cases/create/opt_cases/mic_cr_liveusb_copy-kernel_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_liveusb_pack-to-tar-gz_native.case [deleted file]
cases/create/opt_cases/mic_cr_loop_cache-current-dir_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_loop_cache-root-dir_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_loop_compress-image-lzo_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_loop_conf_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_loop_local-pkg-path_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_loop_logfile-current-file_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_loop_outdir-current-dir_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_loop_outdir-root-dir_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_loop_pack-to-tar-bz2_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_loop_pack-to-tar-gz_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_loop_pack-to-tar-lzo_native.case [deleted file]
cases/create/opt_cases/mic_cr_loop_pack-to-tar_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_loop_pack-to-tzo_native.case [deleted file]
cases/create/opt_cases/mic_cr_loop_pack-to-zip_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_loop_pkgmgr-zypp_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_loop_record-pkgs-name-content-license-vcs_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_loop_release_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_loop_runtime-native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_proxy_in_custom_conf.case [deleted file]
cases/create/opt_cases/mic_cr_proxy_in_terminal.case [deleted file]
cases/create/opt_cases/mic_cr_qcow_logfile-current-file_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_raw_compress-image-lzo_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_raw_fstab-name_gpt_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_raw_fstab-name_native.case [deleted file]
cases/create/opt_cases/mic_cr_raw_fstab-uuid_gpt_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_raw_fstab-uuid_native.case [deleted file]
cases/create/opt_cases/mic_cr_raw_generate-bmap_ia32_native.case [deleted file]
cases/create/opt_cases/mic_cr_raw_install-pkgs_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_raw_native_conf_proxy.case [deleted file]
cases/create/opt_cases/mic_cr_raw_pack-to-tar-gz_native_ia32.case [deleted file]
cases/create/opt_cases/mic_cr_raw_proxy_with_authentication.case [deleted file]

diff --git a/cases/create/func_cases/mic_cr_auto_qcow.case b/cases/create/func_cases/mic_cr_auto_qcow.case
deleted file mode 100644 (file)
index 051658d..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<testcase>
-  <summary>test 'mic cr auto ks' for qcow 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 qcow  -*-mic2-options-*-
-  </summary>
-  <fixtures>
-    <copy src="ks_files/qcow_image.ks" />
-  </fixtures>
-  <steps><![CDATA[
-
-losetup_path=$(sudo which losetup)
-
-sudo $losetup_path -a
-
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-
-sudo mic cr auto qcow_image.ks -d -v --logfile=log.file -k /home/build/mic-tmp-cache
-
-# use '-k /home/build/mic-tmp-cache', because directory '/home/build/' has larger space, if
-# use default cache dir, mic will throw error 'Failed to umount /var/***/install_root' on
-# Ubuntu_12.04_64bit qemu-kvm
-
-grep "Finished" log.file
-
-sudo $losetup_path -a
-
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-
-sudo test -f ./mic-output/emulimg-3.0.img
-
-file ./mic-output/emulimg-3.0.img | grep -i "QCOW"
-
-]]></steps>
-  <teardown><![CDATA[
-
-echo "cleaning..."
-
-test -d ./mic-output && sudo rm -rf mic-output
-
-test -d /home/build/mic-tmp-cache && sudo rm -rf /home/build/mic-tmp-cache
-
-echo "finish cleaning"
-
-]]></teardown>
-</testcase>
diff --git a/cases/create/func_cases/mic_cr_qcow_check-pkgs_tmpfs_ia32.case b/cases/create/func_cases/mic_cr_qcow_check-pkgs_tmpfs_ia32.case
deleted file mode 100644 (file)
index 92f55e1..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<testcase>
-  <summary>Test option "check-pkgs".</summary>
-  <fixtures>
-    <copy src="ks_files/qcow_image.ks" />
-  </fixtures>
-  <steps><![CDATA[
-
-losetup_path=$(sudo which losetup)
-
-sudo $losetup_path -a
-
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-
-sudo mic cr -d -v  qcow qcow_image.ks --tmpfs --check-pkgs=bash,rpm --logfile=qcow1.log -k /home/build/mic-tmp-cache
-
-# use '-k /home/build/mic-tmp-cache', because directory '/home/build/' has larger space, if
-# use default cache dir, mic will throw error 'Failed to umount /var/***/install_root' on
-# Ubuntu_12.04_64bit qemu-kvm
-
-test -f qcow1.log
-
-grep 'Finished' qcow1.log
-
-sudo $losetup_path -a
-
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-
-test -f ./mic-output/emulimg-3.0.img
-
-file ./mic-output/emulimg-3.0.img | grep -i "QCOW"
-
-sudo mic cr -d -v  qcow qcow_image.ks --check-pkgs=bashrr --logfile=qcow2.log -k /home/build/mic-tmp-cache 2>&1 | tee qcow2.log || true
-
-grep "Packages absent in image: bashrr" qcow2.log
-
-sudo $losetup_path -a
-
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-
-]]></steps>
-  <teardown><![CDATA[
-
-echo "cleaning..."
-
-sudo rm -rf ./mic-output
-
-sudo rm -f qcow1.log qcow2.log
-
-test -d /home/build/mic-tmp-cache && sudo rm -rf /home/build/mic-tmp-cache
-
-echo "finish cleaning..."
-
-]]></teardown>
-</testcase>
diff --git a/cases/create/func_cases/mic_cr_qcow_config_runtime_ia32.case b/cases/create/func_cases/mic_cr_qcow_config_runtime_ia32.case
deleted file mode 100644 (file)
index 9311e1e..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<testcase>
-  <summary>This test case is used to test the option
-  "--config, --runtime"
-  </summary>
-  <fixtures>
-    <copy src="ks_files/qcow_image.ks" />
-    <copy src="conf/mic.conf" />
-  </fixtures>
-  <steps><![CDATA[
-
-losetup_path=$(sudo which losetup)
-
-sudo $losetup_path -a
-
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-
-# set tmpdir and roordir to /home/build to avoid space lacking during build
-sed -i 's!^\(tmpdir=\).*!\1 /home/build/mic/tmp!g' mic.conf
-sed -i 's!^\(rootdir=\).*!\1 /home/build/mic-bootstrap!g' mic.conf
-
-sudo mic cr -d -v  qcow qcow_image.ks \
-  --config=mic.conf \
-  --runtime=bootstrap \
-  --logfile=mic.log \
-  -k /home/build/mic-tmp-cache
-
-# use '-k /home/build/mic-tmp-cache', because directory '/home/build/' has larger space, if
-# use default cache dir, mic will throw error 'Failed to umount /var/***/install_root' on
-# Ubuntu_12.04_64bit qemu-kvm
-
-grep -i "Finished" mic.log
-
-sudo $losetup_path -a
-
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-
-grep 'Start mic in bootstrap' mic.log
-
-sudo rm mic.log
-
-sudo test -f ./my_mic-output/emulimg-3.0.img
-
-file ./my_mic-output/emulimg-3.0.img | grep -i "QCOW"
-
-]]></steps>
-  <teardown><![CDATA[
-
-echo "cleaning...."
-
-sudo rm -rf ./my_mic-output/
-
-sed -i 's!^\(tmpdir=\).*!\1 /var/tmp/mic!g' mic.conf
-sed -i 's!^\(rootdir=\).*!\1 /var/tmp/mic-bootstrap!g' mic.conf
-
-test -d /home/build/mic-tmp-cache && sudo rm -rf /home/build/mic-tmp-cache
-
-echo "finish clean space...."
-
-echo "finish cleaning...."
-
-]]></teardown>
-</testcase>
diff --git a/cases/create/func_cases/mic_cr_qcow_local-pkgs_record-pkgs.case b/cases/create/func_cases/mic_cr_qcow_local-pkgs_record-pkgs.case
deleted file mode 100644 (file)
index ded38ae..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<testcase>
-  <summary>create qcow image with armv7l arch, and options is
- "--local-pkgs-path=./rpm --record-pkgs=name,content,license --taring-to=@NAME@"</summary>
-  <fixtures>
-    <copy src="ks_files/qcow_image.ks" />
-    <copydir src="rpm/" />
-  </fixtures>
-  <steps><![CDATA[
-
-losetup_path=$(sudo which losetup)
-
-sudo $losetup_path -a
-
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-
-enforce_path=$(sudo which setenforce || true)
-
-if [ ! -z $enforce_path ];then
-    sudo $enforce_path 0 || true
-fi
-
-sudo mic cr -d -v  qcow qcow_image.ks \
-  --local-pkgs-path=./rpm \
-  --record-pkgs=name,content,license,vcs \
-  --taring-to=@NAME@ \
-  --logfile=log.file \
-  -k /home/build/mic-tmp-cache
-
-# use '-k /home/build/mic-tmp-cache', because directory '/home/build/' has larger space, if
-# use default cache dir, mic will throw error 'Failed to umount /var/***/install_root' on
-# Ubuntu_12.04_64bit qemu-kvm
-
-grep "Finished" log.file
-
-sudo $losetup_path -a
-
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-
-grep 'Marking .*.rpm to be installed' log.file
-
-sudo test -f ./mic-output/emulimg-3.0.img
-
-file ./mic-output/emulimg-3.0.img | grep -i "QCOW"
-
-sudo ls ./mic-output | grep 'qcow_image.*.packages'
-
-sudo ls ./mic-output | grep 'qcow_image.*.license'
-
-sudo ls ./mic-output | grep 'qcow_image.*.files'
-
-]]></steps>
-  <teardown><![CDATA[
-
-echo "cleaning...."
-
-sudo rm log.file
-
-sudo rm -rf ./mic-output
-
-test -d /home/build/mic-tmp-cache && sudo rm -rf /home/build/mic-tmp-cache
-
-echo "finish cleaning...."
-
-]]></teardown>
-</testcase>
diff --git a/cases/create/func_cases/mic_cr_qcow_logfile_conf_release_pkgmgr.case b/cases/create/func_cases/mic_cr_qcow_logfile_conf_release_pkgmgr.case
deleted file mode 100644 (file)
index 6615073..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<testcase>
-  <summary>create qcow image with option
-"--logfile=/custome/arm.log -c conf/mic.conf --release=tizen-2.2_20130719.3 --pkgmgr=zypp"</summary>
-  <fixtures>
-    <copy src="ks_files/qcow_image.ks" />
-    <copy src="conf/mic.conf" />
-  </fixtures>
-  <steps><![CDATA[
-
-losetup_path=$(sudo which losetup)
-
-sudo $losetup_path -a
-
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-
-# on some platforms, the command "setenforce 0" is needed to be executed,
-# on some other platforms, it's not needed to execute this command or
-# no related package is installed, so we added "||"
-
-enforce_path=$(sudo which setenforce || true)
-
-if [ ! -z $enforce_path ];then
-    sudo $enforce_path 0 || true
-fi
-
-# set tmpdir and roordir to /home/build to avoid space lacking during build
-sed -i 's!^\(tmpdir=\).*!\1 /home/build/mic/tmp!g' mic.conf
-sed -i 's!^\(rootdir=\).*!\1 /home/build/mic-bootstrap!g' mic.conf
-
-sudo mic cr -d -v  qcow qcow_image.ks --logfile=/custome/arm.log -c mic.conf --release=tizen-2.2_20130719.3 --pkgmgr=zypp -k /home/build/mic-tmp-cache
-
-# use '-k /home/build/mic-tmp-cache', because directory '/home/build/' has larger space, if
-# use default cache dir, mic will throw error 'Failed to umount /var/***/install_root' on
-# Ubuntu_12.04_64bit qemu-kvm
-
-sudo test -f /custome/arm.log
-
-grep "Finished" /custome/arm.log
-
-sudo $losetup_path -a
-
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-
-test -f my_mic-output/tizen-2.2_20130719.3/images/qcow_image/emulimg-3.0.img
-
-file my_mic-output/tizen-2.2_20130719.3/images/qcow_image/emulimg-3.0.img | grep -i "QCOW"
-
-test -f my_mic-output/tizen-2.2_20130719.3/images/qcow_image/tizen-2.2_20130719.3_qcow_image.ks
-
-test -f my_mic-output/tizen-2.2_20130719.3/images/qcow_image/tizen-2.2_20130719.3_qcow_image.packages
-
-]]></steps>
-  <teardown><![CDATA[
-
-echo "cleaning...."
-
-sudo rm /custome/arm.log
-
-sudo rm -rf my_mic-output
-
-sed -i 's!^\(tmpdir=\).*!\1 /var/tmp/mic!g' mic.conf
-sed -i 's!^\(rootdir=\).*!\1 /var/tmp/mic-bootstrap!g' mic.conf
-
-test -d /home/build/mic-tmp-cache && sudo rm -rf /home/build/mic-tmp-cache
-
-echo "finish cleaning...."
-
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_auto_arm64.case b/cases/create/mixed_cases/mic_cr_auto_arm64.case
deleted file mode 100644 (file)
index f85d09c..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<testcase>
-    <summary>test 'mic cr auto ks' for arm64 arch
-      if we run command with 'auto', mic will use the first line in ks file, which is called magic line
-    </summary>
-    <fixtures>
-        <copy src="ks_files/arm64.ks" />
-    </fixtures>
-    <steps>
-        <![CDATA[
-distro=$(python -c "import platform;print platform.linux_distribution()[0].lower().rstrip()")
-version=$(python -c "import platform;print platform.linux_distribution()[1].lower().rstrip()")
-if ([ $distro == 'opensuse' ] && [ $version == '13.1' ]) || [ $distro != 'opensuse' ]; then
-    losetup_path=$(sudo which losetup)
-    sudo $losetup_path -a
-    sudo $losetup_path -a | wc -l | xargs test 0 -eq
-    sudo mic cr -d -v  auto arm64.ks --logfile=log.file --runtime=native
-    grep "Finished" log.file
-    sudo $losetup_path -a
-    sudo $losetup_path -a | wc -l | xargs test 0 -eq
-    ls mic-output | grep 'arm64.*.tar.gz'
-fi
-    ]]>
-    </steps>
-    <teardown>
-        <![CDATA[
-echo "cleaning..."
-test -f log.file && sudo rm log.file
-test -d ./mic-output && sudo rm -rf ./mic-output
-echo "finish cleaning..."
-        ]]>
-    </teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_fs_duplicate_log_native.case b/cases/create/mixed_cases/mic_cr_fs_duplicate_log_native.case
deleted file mode 100644 (file)
index 02b9282..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-<testcase>
-  <summary>check whether the log generated by "--logfile"
-  have duplicated package number
-  </summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  fs handset_blackbay.ks --logfile=fs.log --runtime=native
-test -e fs.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-grep -ao "Installing.*" fs.log > tmp1.log
-awk -F '  ' '{print $NF}' tmp1.log > tmp2.log
-grep -ao "\[.*\]" tmp2.log > tmp3.log
-#check whether it has duplicated adjacent lines
-if $(uniq -d tmp3.log | grep '.*'); then
-    echo "Have duplicated adjacent lines"
-    exit 1
-fi
-
-Total_Pac=$(grep -ao "Packages: [0-9]* Total" fs.log | grep -ao "[0-9]*")
-
-#check whether it starts from [ 1/*]
-head -1 tmp3.log | grep "\[[[:space:]]*1\/$Total_Pac\]"
-
-#check whether it ends with "eg. [46/46]"
-tail -1 tmp3.log | grep "\[[[:space:]]*\($Total_Pac\)\/\1\]"
-
-#check whether the package number is sequential
-grep -ao "[0-9]*\/" tmp3.log > tmp4.log
-
-sed -i 's/\///' tmp4.log
-
-awk 'BEGIN{a=0} {if($1-a==1){a=$1}else{print"Not sequential";exit 1}}END{print "last number is:",a}' tmp4.log
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-
-test -e mic-output && sudo rm -rf mic-output
-test -e tmp1.log && sudo rm tmp1.log
-test -e tmp2.log && sudo rm tmp2.log
-test -e tmp3.log && sudo rm tmp3.log
-test -e tmp4.log && sudo rm tmp4.log
-test -e fs.log && sudo rm fs.log
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_fs_native_check_chroot.case b/cases/create/mixed_cases/mic_cr_fs_native_check_chroot.case
deleted file mode 100644 (file)
index 32df7a2..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<testcase>
-  <summary>Test whether it is ok to chroot into the image</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-    <content target="check_chroot">
-echo "Checking chroot"
-ls
-pwd
-echo "It's ok to chroot,jump out"
-    </content>
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  fs handset_blackbay.ks --logfile=./log/handset.log --runtime=native
-test -f ./log/handset.log
-grep 'Finished' ./log/handset.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-test -e ./mic-output/handset_blackbay*
-bash -c "sudo mic chroot ./mic-output/handset_blackbay*" < check_chroot
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo test -e ./mic-output && sudo rm -rf ./mic-output
-test -e ./log/handset.log && sudo rm ./log/handset.log
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_fs_prefix-conf_ia32.case b/cases/create/mixed_cases/mic_cr_fs_prefix-conf_ia32.case
deleted file mode 100644 (file)
index 0b8cf4a..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<testcase>
-  <summary>Test "name_prefix = prefix" in mic.conf</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-    <copy src="conf/mic_prefix.conf" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  fs handset_blackbay.ks --logfile=mic.log -c mic_prefix.conf
-test -f mic.log
-grep 'Finished' mic.log
-egrep 'mic [0-9]{1,2}\.[0-9]+' mic.log
-test -e ./mic-output/prefix-handset_blackbay*
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -d ./mic-output && sudo rm -rf ./mic-output
-test -e mic.log && sudo rm mic.log
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_fs_without_conf_native_ia32.case b/cases/create/mixed_cases/mic_cr_fs_without_conf_native_ia32.case
deleted file mode 100644 (file)
index ef46763..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<testcase>
-  <summary>Without /etc/mic/mic.conf, fs image can be created in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-test -e /etc/mic/mic.conf
-sudo mv /etc/mic/mic.conf /etc/mic/mic.conf.bak
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  fs handset_blackbay.ks --logfile=handset.log --runtime=native
-test -f handset.log
-grep 'Finished' handset.log
-test -e ./mic-output/handset_blackbay*
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -e ./mic-output && sudo rm -rf ./mic-output
-test -e handset.log && sudo rm handset.log
-test -e /etc/mic/mic.conf.bak && sudo mv /etc/mic/mic.conf.bak /etc/mic/mic.conf
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_livecd_bootstrap_check_chroot.case b/cases/create/mixed_cases/mic_cr_livecd_bootstrap_check_chroot.case
deleted file mode 100644 (file)
index af020fb..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<testcase>
-  <summary>Test whether it is ok to chroot into the image</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-(! sudo mic cr -d -v  livecd gnome-live.ks --logfile=gnome.log --runtime=bootstrap)
-test -f gnome.log
-grep "Can't get rpm binary: mic-bootstrap-x86-arm" gnome.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -d mic-output && sudo rm -rf ./mic-output
-test -f gnome.log && sudo rm gnome.log
-echo 'finish cleaning'
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_livecd_duplicate_log_native.case b/cases/create/mixed_cases/mic_cr_livecd_duplicate_log_native.case
deleted file mode 100644 (file)
index 45d2033..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-<testcase>
-  <summary>check whether the log generated by "--logfile" have duplicated package number</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr livecd gnome-live.ks --logfile=livecd.log --runtime=native
-test -e livecd.log
-grep -a "Installing" livecd.log > tmp1.log
-awk -F '  ' '{print $NF}' tmp1.log > tmp2.log
-grep -ao "\[.*\]" tmp2.log > tmp3.log
-#check whether it has duplicated adjacent lines
-if $(uniq -d tmp3.log | grep '.*')
-then
-    echo "Have duplicated adjacent lines"
-    exit 1
-fi
-Total_Pac=$(grep -ao "Packages: [0-9]* Total" livecd.log | grep -o "[0-9]*")
-#check whether it starts from "[ 1/*]"
-head -1 tmp3.log | grep "\[[[:space:]]*1\/$Total_Pac\]" 
-#check whether it ends with "eg. [46/46]"
-tail -1 tmp3.log | grep "\[[[:space:]]*\($Total_Pac\)\/\1\]"
-#check whether the package number is sequential
-grep -ao "[0-9]*\/" tmp3.log > tmp4.log
-sed -i 's/\///' tmp4.log
-awk 'BEGIN{a=0} {if($1-a==1){a=$1}else{print"Not sequential";exit 1}}END{print "last number is:",a}' tmp4.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -e mic-output && sudo rm -rf mic-output
-test -e tmp1.log && sudo rm tmp1.log
-test -e tmp2.log && sudo rm tmp2.log
-test -e tmp3.log && sudo rm tmp3.log
-test -e tmp4.log && sudo rm tmp4.log
-test -e livecd.log && sudo rm livecd.log
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_livecd_prefix-conf_ia32.case b/cases/create/mixed_cases/mic_cr_livecd_prefix-conf_ia32.case
deleted file mode 100644 (file)
index 07833eb..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<testcase>
-  <summary>Test "name_prefix = prefix" in mic.conf</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-    <copy src="conf/mic_prefix.conf" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  livecd gnome-live.ks --runtime=native --logfile=mic.log -c mic_prefix.conf
-test -f mic.log
-grep 'Finished' mic.log
-egrep 'mic [0-9]{1,2}\.[0-9]+' mic.log
-test -e ./mic-output/prefix-gnome-live*.iso
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -d ./mic-output && sudo rm -rf ./mic-output
-test -e mic.log && sudo rm mic.log
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_livecd_with_partition_label.case b/cases/create/mixed_cases/mic_cr_livecd_with_partition_label.case
deleted file mode 100644 (file)
index 9da5c8b..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<testcase>
-  <summary>test 'mic cr livecd ks' for livecd type, and '--label platform' added for partition in ks</summary>
-  <tracking>
-    <ticket>221</ticket>
-  </tracking>
-  <fixtures>
-    <copy src="ks_files/gnome-live-label.ks" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  livecd gnome-live-label.ks --logfile=log.file --runtime=native
-grep "Finished" log.file
-ls mic-output/ | grep 'gnome-live-label-.*.iso'
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -f log.file && sudo rm log.file
-test -d ./mic-output && sudo rm -rf ./mic-output
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_livecd_without_conf_bootstrap_ia32.case b/cases/create/mixed_cases/mic_cr_livecd_without_conf_bootstrap_ia32.case
deleted file mode 100644 (file)
index 2a3cfb3..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<testcase>
-  <summary>Without /etc/mic/mic.conf, livecd image cannot be created in bootstrap mode</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-test -e /etc/mic/mic.conf
-sudo mv /etc/mic/mic.conf /etc/mic/mic.conf.bak
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-! (sudo mic cr -d -v  livecd gnome-live.ks --logfile=gnome.log --runtime=bootstrap) 2>&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
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -e ./mic-output && sudo rm -rf ./mic-output
-test -e gnome.log && sudo rm gnome.log
-test -e mic.log && sudo rm mic.log
-test -e /etc/mic/mic.conf.bak && sudo mv /etc/mic/mic.conf.bak /etc/mic/mic.conf
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_livecd_without_conf_native_ia32.case b/cases/create/mixed_cases/mic_cr_livecd_without_conf_native_ia32.case
deleted file mode 100644 (file)
index 8a5ded8..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<testcase>
-  <summary>Without /etc/mic/mic.conf, livecd image can be created in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-test -e /etc/mic/mic.conf
-sudo mv /etc/mic/mic.conf /etc/mic/mic.conf.bak
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  livecd gnome-live.ks --logfile=gnome.log --runtime=native
-test -f gnome.log
-grep 'Finished' gnome.log
-test -e ./mic-output/gnome-live*.iso
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -e ./mic-output && sudo rm -rf ./mic-output
-test -e gnome.log && sudo rm gnome.log
-test -e /etc/mic/mic.conf.bak && sudo mv /etc/mic/mic.conf.bak /etc/mic/mic.conf
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_liveusb_bootstrap_check_chroot.case b/cases/create/mixed_cases/mic_cr_liveusb_bootstrap_check_chroot.case
deleted file mode 100644 (file)
index a973bcf..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<testcase>
-  <summary>Test whether it is ok to chroot into the image</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-(! sudo mic cr -d -v  liveusb gnome-live.ks --logfile=gnome.log --runtime=bootstrap)
-test -f gnome.log
-grep "Can't get rpm binary: mic-bootstrap-x86-arm" gnome.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -d mic-output && sudo rm -rf ./mic-output
-test -f gnome.log && sudo rm gnome.log
-echo 'finish cleaning...'
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_liveusb_duplicate_log_native.case b/cases/create/mixed_cases/mic_cr_liveusb_duplicate_log_native.case
deleted file mode 100644 (file)
index 8bd1f91..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-<testcase>
-  <summary>check whether the log generated by "--logfile" have duplicated package number</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr liveusb gnome-live.ks --logfile=liveusb.log --runtime=native
-test -e liveusb.log
-grep -a "Installing" liveusb.log > tmp1.log
-awk -F '  ' '{print $NF}' tmp1.log > tmp2.log
-grep -ao "\[.*\]" tmp2.log > tmp3.log
-#check whether it has duplicated adjacent lines
-if $(uniq -d tmp3.log | grep '.*')
-then
-    echo "Have duplicated adjacent lines"
-    exit 1
-fi
-Total_Pac=$(grep -ao "Packages: [0-9]* Total" liveusb.log | grep -o "[0-9]*")
-#check whether it starts from "[ 1/*]"
-head -1 tmp3.log | grep "\[[[:space:]]*1\/$Total_Pac\]"
-#check whether it ends with "eg. [46/46]"
-tail -1 tmp3.log | grep "\[[[:space:]]*\($Total_Pac\)\/\1\]"
-#check whether the package number is sequential
-grep -ao "[0-9]*\/" tmp3.log > tmp4.log
-sed -i 's/\///' tmp4.log
-awk 'BEGIN{a=0} {if($1-a==1){a=$1}else{print"Not sequential";exit 1}}END{print "last number is:",a}' tmp4.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -e mic-output && sudo rm -rf mic-output
-test -e tmp1.log && sudo rm tmp1.log
-test -e tmp2.log && sudo rm tmp2.log
-test -e tmp3.log && sudo rm tmp3.log
-test -e tmp4.log && sudo rm tmp4.log
-test -e liveusb.log && sudo rm liveusb.log
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_liveusb_excludepkgs_issue_1066.case b/cases/create/mixed_cases/mic_cr_liveusb_excludepkgs_issue_1066.case
deleted file mode 100644 (file)
index 603b788..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<testcase>
-  <summary>test '--excludepkgs' option in repo for liveusb type</summary>
-  <fixtures>
-    <copy src="ks_files/gnome_exclude.ks" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  liveusb gnome_exclude.ks \
-  --runtime=native \
-  --release=tizen-pc_20130716.3 \
-  --record-pkgs=name \
-  --logfile=log.file
-grep "Finished" log.file
-test -f mic-output/tizen-pc_20130716.3/images/gnome_exclude/tizen-pc_20130716.3_gnome_exclude.img
-test -f mic-output/tizen-pc_20130716.3/images/gnome_exclude/tizen-pc_20130716.3_gnome_exclude.packages
-grep 'wrt-devel.i686 0.8.198.3-1.3' mic-output/tizen-pc_20130716.3/images/gnome_exclude/tizen-pc_20130716.3_gnome_exclude.packages
-grep 'wrt-installer.i686 0.1.58.2-1.3'   mic-output/tizen-pc_20130716.3/images/gnome_exclude/tizen-pc_20130716.3_gnome_exclude.packages
-grep 'wrt-plugins-tizen.i686 0.4.32-3.2' mic-output/tizen-pc_20130716.3/images/gnome_exclude/tizen-pc_20130716.3_gnome_exclude.packages
-(! grep 'xhost' mic-output/tizen-pc_20130716.3/images/gnome_exclude/tizen-pc_20130716.3_gnome_exclude.packages) 
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -f log.file && sudo rm log.file
-test -d ./mic-output && sudo rm -rf ./mic-output
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_liveusb_includepkgs.case b/cases/create/mixed_cases/mic_cr_liveusb_includepkgs.case
deleted file mode 100644 (file)
index 578c02b..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<testcase>
-  <summary>test '--includepkgs' option in repo  for liveusb type</summary>
-  <fixtures>
-    <copy src="ks_files/gnome_include.ks" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  liveusb gnome_include.ks --runtime=native --release=tizen-pc_20130716.3 --record-pkgs=name --logfile=log.file
-grep "Finished" log.file
-test -f mic-output/tizen-pc_20130716.3/images/gnome_include/tizen-pc_20130716.3_gnome_include.img
-test -f mic-output/tizen-pc_20130716.3/images/gnome_include/tizen-pc_20130716.3_gnome_include.packages
-grep 'wrt-devel.i686 0.8.198.3-4.2' mic-output/tizen-pc_20130716.3/images/gnome_include/tizen-pc_20130716.3_gnome_include.packages
-grep 'wrt-installer.i686 0.1.58.2-1.3' mic-output/tizen-pc_20130716.3/images/gnome_include/tizen-pc_20130716.3_gnome_include.packages
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -f log.file && sudo rm log.file
-test -d ./mic-output && sudo rm -rf ./mic-output
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_liveusb_prefix-conf_ia32.case b/cases/create/mixed_cases/mic_cr_liveusb_prefix-conf_ia32.case
deleted file mode 100644 (file)
index 413ce78..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<testcase>
-  <summary>Test "name_prefix = prefix" in mic.conf</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-    <copy src="conf/mic_prefix.conf" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  liveusb gnome-live.ks --runtime=native --logfile=mic.log -c mic_prefix.conf
-test -f mic.log
-grep 'Finished' mic.log
-egrep 'mic [0-9]{1,2}\.[0-9]+' mic.log
-test -e ./mic-output/prefix-gnome-live*.usbimg
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -d ./mic-output && sudo rm -rf ./mic-output
-test -e mic.log && sudo rm mic.log
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_liveusb_release_record-pkgs_.case b/cases/create/mixed_cases/mic_cr_liveusb_release_record-pkgs_.case
deleted file mode 100644 (file)
index 596c199..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<testcase>
-  <summary>test 'mic cr liveusb ks --release=xx --record-pkgs=xx' for liveusb type</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  liveusb gnome-live.ks --runtime=native --release=tizen-pc_20121221.9 --record-pkgs=content --logfile=log.file
-grep "Finished" log.file
-test -f mic-output/tizen-pc_20121221.9/images/gnome-live/tizen-pc_20121221.9_gnome-live.img
-test -f mic-output/tizen-pc_20121221.9/images/gnome-live/tizen-pc_20121221.9_gnome-live.files
-test -f mic-output/tizen-pc_20121221.9/images/gnome-live/tizen-pc_20121221.9_gnome-live.packages
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -f log.file && sudo rm log.file
-test -d ./mic-output && sudo rm -rf ./mic-output
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_liveusb_with_partition_label.case b/cases/create/mixed_cases/mic_cr_liveusb_with_partition_label.case
deleted file mode 100644 (file)
index d18ba4b..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<testcase>
-  <summary>test 'mic cr liveusb ks' for liveusb type, and '--label platform' added for partition in ks</summary>
-  <tracking>
-    <ticket>221</ticket>
-  </tracking>
-  <fixtures>
-    <copy src="ks_files/gnome-live-label.ks" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  liveusb gnome-live-label.ks --runtime=native --logfile=log.file
-grep "Finished" log.file
-ls mic-output/ | grep 'gnome-live-label-.*.usbimg'
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -f log.file && sudo rm log.file
-test -d ./mic-output && sudo rm -rf ./mic-output
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_liveusb_without_conf_bootstrap_ia32.case b/cases/create/mixed_cases/mic_cr_liveusb_without_conf_bootstrap_ia32.case
deleted file mode 100644 (file)
index f699213..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<testcase>
-  <summary>Without /etc/mic/mic.conf, liveusb image cannot be created in bootstrap mode</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-test -e /etc/mic/mic.conf
-sudo mv /etc/mic/mic.conf /etc/mic/mic.conf.bak
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-! (sudo mic cr -d -v  liveusb gnome-live.ks --logfile=gnome.log --runtime=bootstrap) 2>&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
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -e ./mic-output && sudo rm -rf ./mic-output
-test -e gnome.log && sudo rm gnome.log
-test -e mic.log && sudo rm mic.log
-test -e /etc/mic/mic.conf.bak && sudo mv /etc/mic/mic.conf.bak /etc/mic/mic.conf
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_liveusb_without_conf_native_ia32.case b/cases/create/mixed_cases/mic_cr_liveusb_without_conf_native_ia32.case
deleted file mode 100644 (file)
index ae29ed8..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<testcase>
-  <summary>Without /etc/mic/mic.conf, liveusb image can be created in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-test -e /etc/mic/mic.conf
-sudo mv /etc/mic/mic.conf /etc/mic/mic.conf.bak
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  liveusb gnome-live.ks --logfile=gnome.log --runtime=native
-test -f gnome.log
-grep 'Finished' gnome.log
-test -e ./mic-output/gnome-live*.usbimg
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -e ./mic-output && sudo rm -rf ./mic-output
-test -e gnome.log && sudo rm gnome.log
-test -e /etc/mic/mic.conf.bak && sudo mv /etc/mic/mic.conf.bak /etc/mic/mic.conf
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_loop_bootstrap_issue_1093.case b/cases/create/mixed_cases/mic_cr_loop_bootstrap_issue_1093.case
deleted file mode 100644 (file)
index da90ebb..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<testcase>
-  <summary></summary>
-  <tracking>
-    <ticket>1093</ticket>
-  </tracking>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-    <copy src="conf/mic_proxy.conf" />
-    <copy src="conf/sysconfig_proxy" />
-  </fixtures>
-  <steps><![CDATA[
-distro=$(python -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
-if [[ "$distro" == "opensuse" ]]
-then
-    test -e /etc/sysconfig/proxy && sudo mv /etc/sysconfig/proxy /etc/sysconfig/proxy.bak
-else
-    sudo mkdir -p /etc/sysconfig/
-fi
-sudo cp sysconfig_proxy /etc/sysconfig/proxy
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks --runtime=bootstrap -c mic_proxy.conf --logfile=mic.log
-test -e ./mic-output/platform.img
-test -e mic.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-test -e ./mic-output && sudo rm -rf ./mic-output
-test -e mic.log && sudo rm mic.log
-distro=$(python -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
-if [[ "$distro" == "opensuse" ]]
-then
-    test -e /etc/sysconfig/proxy.bak
-    sudo mv /etc/sysconfig/proxy.bak /etc/sysconfig/proxy
-else
-    test -e /etc/sysconfig/proxy
-    sudo rm -rf /etc/sysconfig/proxy
-fi
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_loop_check_md5sum.case b/cases/create/mixed_cases/mic_cr_loop_check_md5sum.case
deleted file mode 100644 (file)
index 0dc28f5..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<testcase>
-  <summary>Test 'md5sum -c ' </summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr loop handset_blackbay.ks --release=tizen-2.2_20130719.3 --logfile=mic.log
-grep "Finished" mic.log
-sudo test -f ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*/platform.img
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo test -f ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*/MD5SUMS
-sudo test -f ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*/tizen-2.2_20130719.3_handset_blackbay.packages
-sudo test -f ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*/tizen-2.2_20130719.3_handset_blackbay.ks
-sudo test -f ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*/tizen-2.2_20130719.3_handset_blackbay.xml
-pushd $(pwd)
-cd ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*
-sudo md5sum -c ./MD5SUMS
-sudo sha1sum -c ./SHA1SUMS
-sudo sha256sum -c ./SHA256SUMS
-popd
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_loop_conf_difference.case b/cases/create/mixed_cases/mic_cr_loop_conf_difference.case
deleted file mode 100644 (file)
index 1cb046f..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<testcase>
-  <summary>This test case is used to test the option "--config",
-the configue file is with different 'outdir', mic should create image in right directory.</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-    <copy src="conf/mic.conf" />
-    <copy src="conf/mic_proxy.conf" />
-  </fixtures>
-  <steps><![CDATA[
-sed -i 's/outdir= .\/mic-output/outdir=new_mic_output/' mic_proxy.conf
-grep 'new_mic_output' mic_proxy.conf
-if [ -f /etc/mic/mic.conf ]; then
-    sudo mv /etc/mic/mic.conf /etc/mic/mic.conf.bak
-    sudo cp mic.conf /etc/mic/
-else
-    sudo cp mic.conf /etc/mic/
-fi
-# test bootstrap mode
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks -c mic_proxy.conf  --logfile=log.file
-grep "Finished" log.file
-test -f ./new_mic_output/platform.img
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-# test native mode
-sudo mic cr -d -v  loop handset_blackbay.ks \
-  --config=mic_proxy.conf \
-  --runtime=native \
-  --logfile=log.file
-grep "Finished" log.file
-test -f ./new_mic_output/platform.img
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-if [ -f /etc/mic/mic.conf.bak ];then
-    sudo mv /etc/mic/mic.conf.bak /etc/mic/mic.conf
-else
-    sudo rm -f /etc/mic/mic.conf
-fi
-test -f log.file && sudo rm log.file
-test -d new_mic_output && sudo rm -rf ./new_mic_output
-echo 'finish cleaning...'
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_loop_duplicate_log_native.case b/cases/create/mixed_cases/mic_cr_loop_duplicate_log_native.case
deleted file mode 100644 (file)
index 26b320f..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<testcase>
-  <summary>check whether the log generated by "--logfile" have duplicated package number</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr loop handset_blackbay.ks --logfile=loop.log --runtime=native
-test -e loop.log
-grep -ao "Installing.*" loop.log > tmp1.log
-awk -F '  ' '{print $NF}' tmp1.log > tmp2.log
-grep -ao "\[.*\]" tmp2.log > tmp3.log
-#check whether it has duplicated adjacent lines
-if $(uniq -d tmp3.log | grep '.*')
-then
-    echo "Have duplicated adjacent lines"
-    exit 1
-fi
-Total_Pac=$(grep -ao "Packages: [0-9]* Total" loop.log | grep -ao "[0-9]*")
-#check whether it starts from [ 1/*]
-head -1 tmp3.log | grep "\[[[:space:]]*1\/$Total_Pac\]"
-#check whether it ends with "eg. [46/46]"
-tail -1 tmp3.log | grep "\[[[:space:]]*\($Total_Pac\)\/\1\]"
-#check whether the package number is sequential
-grep -ao "[0-9]*\/" tmp3.log > tmp4.log
-sed -i 's/\///' tmp4.log
-awk 'BEGIN{a=0} {if($1-a==1){a=$1}else{print"Not sequential";exit 1}}END{print "last number is:",a}' tmp4.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -e mic-output && sudo rm -rf mic-output
-test -e tmp1.log && sudo rm tmp1.log
-test -e tmp2.log && sudo rm tmp2.log
-test -e tmp3.log && sudo rm tmp3.log
-test -e tmp4.log && sudo rm tmp4.log
-test -e loop.log && sudo rm loop.log
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_loop_issue_794.case b/cases/create/mixed_cases/mic_cr_loop_issue_794.case
deleted file mode 100644 (file)
index 0737866..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<testcase>
-  <summary>when modify /etc/mic/mic.conf, change "plugin_dir" to a different existing one, mic failed to find the specified plugin dir.</summary>
-  <tracking>
-    <ticket>794</ticket>
-  </tracking>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo cp -r /usr/lib/mic/plugins /
-sudo sed -i '/plugin_dir/s/\/usr\/lib\/mic\/plugins/\/\/plugins/' /etc/mic/mic.conf
-sudo mic cr -d -v  loop handset_blackbay.ks --logfile=mic.log --runtime=bootstrap
-grep "Finished" mic.log
-ls mic-output | grep "platform.img"
-sudo mic cr -d -v  loop handset_blackbay.ks --logfile=mic.log --runtime=native
-grep "Finished" mic.log
-ls mic-output | grep "platform.img"
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -e /home/test/plugins && sudo rm -rf /home/test/plugins
-sudo sed -i '/plugin_dir/s/\/\/plugins/\/usr\/lib\/mic\/plugins/' /etc/mic/mic.conf
-test -e ./mic-output && sudo rm -rf ./mic-output
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_loop_native_check_chroot.case b/cases/create/mixed_cases/mic_cr_loop_native_check_chroot.case
deleted file mode 100644 (file)
index c579375..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<testcase>
-  <summary>Test whether it is ok to chroot into the image</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks --logfile=./log/handset.log --runtime=native
-test -f ./log/handset.log
-grep 'Finished' ./log/handset.log
-test -f ./mic-output/platform.img
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-bash -c "sudo mic chroot ./mic-output/platform.img" << EOF
-echo "Checking chroot"
-ls
-pwd
-echo "It's ok to chroot,jump out"
-EOF
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -e ./mic-output && sudo rm -rf ./mic-output
-test -e ./log/handset.log && sudo rm ./log/handset.log
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_loop_native_issue_1093.case b/cases/create/mixed_cases/mic_cr_loop_native_issue_1093.case
deleted file mode 100644 (file)
index 325647b..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<testcase>
-  <summary></summary>
-  <tracking>
-    <ticket>1093</ticket>
-  </tracking>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-    <copy src="conf/mic_proxy.conf" />
-    <copy src="conf/sysconfig_proxy" />
-  </fixtures>
-  <steps><![CDATA[
-distro=$(python -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
-bit=$(python -c 'import platform;print platform.linux_distribution()[1].rstrip()')
-if [[ "$distro" == "opensuse" ]]; then
-    [[ "$bit" == "12.1" ]] && exit 0
-    test -e /etc/sysconfig/proxy && sudo mv /etc/sysconfig/proxy /etc/sysconfig/proxy.bak
-    sudo cp sysconfig_proxy /etc/sysconfig/proxy
-fi
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks \
-  --runtime=native \
-  -c mic_proxy.conf \
-  --logfile=mic.log
-test -e ./mic-output/platform.img
-test -e mic.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-sudo rm -rf mic.log ./mic-output
-distro=$(python -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
-if [[ "$distro" == "opensuse" ]]; then
-    test -e /etc/sysconfig/proxy.bak
-    sudo mv /etc/sysconfig/proxy.bak /etc/sysconfig/proxy
-else
-    test -e /etc/sysconfig/proxy
-    sudo rm -rf /etc/sysconfig/proxy
-fi
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_loop_prefix-conf_ia32.case b/cases/create/mixed_cases/mic_cr_loop_prefix-conf_ia32.case
deleted file mode 100644 (file)
index a3f514f..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<testcase>
-  <summary>Test "name_prefix = prefix" in mic.conf</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-    <copy src="conf/mic_prefix.conf" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks --logfile=mic.log -c mic_prefix.conf
-test -f mic.log
-grep 'Finished' mic.log
-egrep 'mic [0-9]{1,2}\.[0-9]+' mic.log
-test -e ./mic-output/platform.img
-test -e ./mic-output/prefix-handset_blackbay*.xml
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -d ./mic-output && sudo rm -rf ./mic-output
-test -e mic.log && sudo rm mic.log
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_loop_without_conf_native_ia32.case b/cases/create/mixed_cases/mic_cr_loop_without_conf_native_ia32.case
deleted file mode 100644 (file)
index a0e2d75..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<testcase>
-  <summary>Without /etc/mic/mic.conf, loop image can be created in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-test -e /etc/mic/mic.conf
-sudo mv /etc/mic/mic.conf /etc/mic/mic.conf.bak
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks --logfile=handset.log --runtime=native
-test -f handset.log
-grep 'Finished' handset.log
-test -e ./mic-output/platform.img
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -e ./mic-output && sudo rm -rf ./mic-output
-test -e handset.log && sudo rm handset.log
-test -e /etc/mic/mic.conf.bak && sudo mv /etc/mic/mic.conf.bak /etc/mic/mic.conf
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_raw_check-bootflag_gpt.case b/cases/create/mixed_cases/mic_cr_raw_check-bootflag_gpt.case
deleted file mode 100644 (file)
index bab6752..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<testcase>
-  <summary></summary>
-  <fixtures>
-    <copy src="ks_files/ivi_with_active_partition_gpt.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr raw ivi_with_active_partition_gpt.ks -d -v --runtime=native --logfile=handset.log
-test -f handset.log
-test -e ./mic-output/ivi_with_active_partition_gpt*.raw
-grep 'Finished' handset.log
-grep "Set 'legacy_boot' flag" handset.log
-Parted_path=$(sudo which parted)
-if man parted | grep "legacy_boot"
-then
-    sudo $Parted_path ./mic-output/ivi_with_active_partition_gpt*.raw print | grep "legacy_boot"
-fi
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -d ./mic-output && sudo rm -rf ./mic-output
-test -e handset.log && sudo rm handset.log
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_raw_check-bootflag_mbr.case b/cases/create/mixed_cases/mic_cr_raw_check-bootflag_mbr.case
deleted file mode 100644 (file)
index 8a510ea..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<testcase>
-  <summary></summary>
-  <fixtures>
-    <copy src="ks_files/ivi_with_active_partition.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr raw ivi_with_active_partition.ks --runtime=native --logfile=handset.log -d -v
-test -f handset.log
-grep 'Finished' handset.log
-test -e ./mic-output/ivi_with_active_partition*.raw
-grep "Set 'boot' flag" handset.log
-Parted_path=$(sudo which parted)
-if man parted | grep "boot"
-then
-    sudo $Parted_path ./mic-output/ivi_with_active_partition*.raw print | grep "boot"
-fi
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -d ./mic-output && sudo rm -rf ./mic-output
-test -e handset.log && sudo rm handset.log
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_raw_duplicate_log_native.case b/cases/create/mixed_cases/mic_cr_raw_duplicate_log_native.case
deleted file mode 100644 (file)
index 9dbf939..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<testcase>
-  <summary>check whether the log generated by "--logfile" have duplicated package number</summary>
-  <fixtures>
-    <copy src="ks_files/ivi.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  raw ivi.ks --logfile=raw.log --runtime=native
-test -e raw.log
-grep -ao "Installing.*" raw.log > tmp1.log
-awk -F '  ' '{print $NF}' tmp1.log > tmp2.log
-grep -ao "\[.*\]" tmp2.log > tmp3.log
-#check whether it has duplicated adjacent lines
-if $(uniq -d tmp3.log | grep '.*')
-then
-    echo "Have duplicated adjacent lines"
-    exit 1
-fi
-Total_Pac=$(grep -ao "Packages: [0-9]* Total" raw.log | grep -ao "[0-9]*")
-#check whether it starts from "[1/*]"
-head -1 tmp3.log | grep "\[[[:space:]]*1\/$Total_Pac\]"
-#check whether it ends with "eg. [46/46]"
-tail -1 tmp3.log | grep "\[[[:space:]]*\($Total_Pac\)\/\1\]"
-#check whether the package number is sequential
-grep -ao "[0-9]*\/" tmp3.log > tmp4.log
-sed -i 's/\///' tmp4.log
-awk 'BEGIN{a=0} {if($1-a==1){a=$1}else{print"Not sequential";exit 1}}END{print "last number is:",a}' tmp4.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -e mic-output && sudo rm -rf mic-output
-test -e tmp1.log && sudo rm tmp1.log
-test -e tmp2.log && sudo rm tmp2.log
-test -e tmp3.log && sudo rm tmp3.log
-test -e tmp4.log && sudo rm tmp4.log
-test -e raw.log && sudo rm raw.log
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_raw_installerfw_fstab.case b/cases/create/mixed_cases/mic_cr_raw_installerfw_fstab.case
deleted file mode 100644 (file)
index f02abd2..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-<testcase>
-  <summary>This case is used to test if 'installerfw "fatab"' command in ks</summary>
-  <fixtures>
-    <copy src="ks_files/ivi_with_installerfw.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sed -i 's/installerfw_plugins "bootloader"/installerfw_plugins "fstab"/' ivi_with_installerfw.ks
-sudo mic cr -d -v  raw ivi_with_installerfw.ks --logfile=mic1.log --runtime=native
-grep 'Finished' mic1.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-test -f ./mic-output/ivi_with_installerfw-*-sdb.raw
-raw_image=$(ls mic-output/ivi_with_installerfw-*-sdb.raw)
-sudo mkdir -p mic-output/ivi_dir/boot
-kpartx_path=$(sudo which kpartx)
-for i in {1..5}
-do
-    kpartx_output=$(sudo $kpartx_path -avs $raw_image)
-    if [ -n "$kpartx_output" ]; then
-        first_part=$(echo "$kpartx_output" | awk '{print $3}' | sed -n '1p')
-        second_part=$(echo "$kpartx_output" | awk '{print $3}' | sed -n '2p')
-        ls /dev/mapper/
-        if [ -n "$first_part" ] && [ -e "/dev/mapper/$first_part" ];then
-            sudo mount /dev/mapper/$first_part  mic-output/ivi_dir/boot/ -t ext3
-            sudo mount /dev/mapper/$second_part  mic-output/ivi_dir/ -t ext4
-            sudo chroot mic-output/ivi_dir/ echo 'chroot successfully'
-            ! (sudo chroot mic-output/ivi_dir/ test -f /etc/fstab)
-            exit 0
-        fi
-    fi
-    sleep 3
-done
-echo "can not get kpartx output: $kpartx_path -av $raw_image"
-exit 1
-]]></steps>
-  <teardown><![CDATA[
-echo "clean space...."
-test -f mic1.log && sudo rm -f mic1.log
-raw_image=$(ls mic-output/ivi_with_installerfw-*-sdb.raw)
-if [ -f $raw_image ];then
-    for i in {1..5}
-    do
-    test -d mic-output/ivi_dir && sudo umount -l mic-output/ivi_dir
-    test -d mic-output/ivi_dir/boot && sudo umount -l mic-output/ivi_dir/boot
-    kpartx_path=$(sudo which kpartx)
-    sudo $kpartx_path -d $raw_image
-    if sudo losetup -a | grep "ivi_with_installerfw"; then
-        sleep 2
-    else
-        test -d mic-output && sudo rm -rf ./mic-output
-        break
-    fi
-    done
-fi
-sed -i 's/installerfw_plugins "fstab"/installerfw_plugins "bootloader"/' ./ks_files/ivi_with_installerfw.ks
-echo 'clean space finished...'
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_raw_prefix-conf_ia32.case b/cases/create/mixed_cases/mic_cr_raw_prefix-conf_ia32.case
deleted file mode 100644 (file)
index 7637b50..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<testcase>
-  <summary>Test "name_prefix = prefix" in mic.conf</summary>
-  <fixtures>
-    <copy src="ks_files/ivi.ks" />
-    <copy src="conf/mic_prefix.conf" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr raw ivi.ks --logfile=mic.log -c mic_prefix.conf -d -v
-test -f mic.log
-grep 'Finished' mic.log
-egrep 'mic [0-9]{1,2}\.[0-9]+' mic.log
-test -e ./mic-output/prefix-ivi*.raw
-test -e ./mic-output/prefix-ivi*.xml
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -d ./mic-output && sudo rm -rf ./mic-output
-test -e mic.log && sudo rm mic.log
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_raw_proxy_in_ks_native.case b/cases/create/mixed_cases/mic_cr_raw_proxy_in_ks_native.case
deleted file mode 100644 (file)
index d26894d..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<testcase>
-  <version>1.0</version>
-  <summary>This case is used to test if mic can create image successfully  with no proxy set in current shell, howerver it is set in ks file with '--proxy' for repo.</summary>
-  <fixtures>
-    <copy src="ks_files/ivi-mbr-i586-with-proxy.ks" />
-  </fixtures>
-  <tracking>
-    <ticket>66</ticket>
-  </tracking>
-  <steps><![CDATA[
-unset http_proxy || true
-unset https_proxy || true
-unset no_proxy || true
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr raw ivi-mbr-i586-with-proxy.ks --logfile=log.file --runtime=native -d -v
-grep "Finished" log.file
-ls mic-output/ | grep 'ivi-mbr-i586-with-proxy-.*-sdb.raw'
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -f log.file && sudo rm log.file
-test -d mic-output && sudo rm -rf ./mic-output
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_raw_release_record-pkgs_yum.case b/cases/create/mixed_cases/mic_cr_raw_release_record-pkgs_yum.case
deleted file mode 100644 (file)
index 5296465..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<testcase>
-  <summary>test 'mic cr liveusb ks --release=xx --record-pkgs=xx' for liveusb type</summary>
-  <tracking>
-    <ticket>2081</ticket>
-  </tracking>
-  <fixtures>
-    <copy src="ks_files/ivi.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  raw ivi.ks  --release=latest --record-pkgs=name --pkgmgr=yum
-grep "Finished" mic-output/latest/images/ivi/latest_ivi.log
-test -f mic-output/latest/images/ivi/latest_ivi*.raw
-test -f mic-output/latest/images/ivi/latest_ivi.log
-test -f mic-output/latest/images/ivi/latest_ivi.packages
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -d ./mic-output && sudo rm -rf ./mic-output
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_raw_without_conf_native_ia32.case b/cases/create/mixed_cases/mic_cr_raw_without_conf_native_ia32.case
deleted file mode 100644 (file)
index fe235cc..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<testcase>
-  <summary>Without /etc/mic/mic.conf, raw image can be created in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/ivi.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-test -e /etc/mic/mic.conf
-sudo mv /etc/mic/mic.conf /etc/mic/mic.conf.bak
-sudo mic cr raw ivi.ks --logfile=ivi.log --runtime=native -d -v
-test -f ivi.log
-grep 'Finished' ivi.log
-test -e ./mic-output/ivi*.raw
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -e ./mic-output && sudo rm -rf ./mic-output
-test -e ivi.log && sudo rm ivi.log
-test -e /etc/mic/mic.conf.bak && sudo mv /etc/mic/mic.conf.bak /etc/mic/mic.conf
-]]></teardown>
-</testcase>
diff --git a/cases/create/mixed_cases/mic_cr_strict_mode_image.case b/cases/create/mixed_cases/mic_cr_strict_mode_image.case
deleted file mode 100644 (file)
index b68a760..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<testcase>
-    <summary>Test option "--strict-mode", it this given, mic will abort creating image, if some rpm pagages fail to install</summary>
-    <fixtures>
-        <copy src="ks_files/strict_mode.ks" />
-        <copydir src="rpm/strict_mode_rpm" />
-    </fixtures>
-    <steps>
-        <![CDATA[
-#create local repo
-mkdir -p /home/build/strict_mode/
-cp  ./strict_mode_rpm/*  /home/build/strict_mode/
-createrepo /home/build/strict_mode
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-#zypp pkg manager
-sudo mic cr -d -v loop strict_mode.ks --logfile=./log/handset.log
-grep 'Finished' ./log/handset.log
-#zypp pkg manager strict mode
-(! sudo mic cr -d -v loop strict_mode.ks --logfile=./log/handset.log --strict-mode)
-grep 'mic failes to install some packages' ./log/handset.log
-#yum pkg manager
-sudo mic cr -d -v loop strict_mode.ks --logfile=./log/handset.log --pkgmgr=yum --runtime=native
-grep 'Finished' ./log/handset.log
-#yum pkg magager strict mode
-(! sudo mic cr -d -v loop strict_mode.ks --logfile=./log/handset.log --strict-mode --pkgmgr=yum --runtime=native)
-grep 'mic failes to install some packages' ./log/handset.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-    ]]>
- </steps>
- <teardown>
-        <![CDATA[
-echo "cleaning..."
-sudo test -e ./mic-output && sudo rm -rf ./mic-output
-test -e ./log/handset.log && sudo rm ./log/handset.log
-test -e /home/build/strict_mode && sudo rm -rf /home/build/strict_mode
-        ]]>
-    </teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_auto_liveusb.case b/cases/create/opt_cases/mic_cr_auto_liveusb.case
deleted file mode 100644 (file)
index 8f404ed..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<testcase>
-  <summary>test 'mic cr auto ks' for liveusb 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 liveusb --copy-kernel --pack-to=@NAME@-rs.zip -*-mic2-options-*-</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-    <content target="parse_manifest.py">
-import sys
-import json
-img_file = sys.argv[1]
-mic_version = sys.argv[2]
-manifest_file=open('mic-output/manifest.json')
-manifest=json.load(manifest_file)
-assert manifest['format'] == 'liveusb'
-assert manifest['version'] == mic_version
-assert manifest['liveusb']['pack'] == '.zip'
-assert img_file in manifest['liveusb']['image_files']
-    </content>
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  auto gnome-live.ks --logfile=log.file --runtime=native
-grep "Finished" log.file
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-liveusb_img=$(ls mic-output/ | grep 'gnome-live-.*-rs.zip')
-ls mic-output/ | grep 'gnome-live-.*-vmlinuz-.*'
-mic_version=$(mic --version | awk '{print $2}')
-python parse_manifest.py $liveusb_img $mic_version
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -d ./mic-output && sudo rm -rf mic-output
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_fs_include-src_native_ia32.case b/cases/create/opt_cases/mic_cr_fs_include-src_native_ia32.case
deleted file mode 100644 (file)
index 3593ad1..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<testcase>
-  <summary>create fs image with ia32 arch and --include-src option</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  fs handset_blackbay.ks --include-src --runtime=native --logfile=mic1.log
-grep 'Finished' mic1.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-test -d ./mic-output/handset_blackbay*
-sudo chroot ./mic-output/handset_blackbay* ls /usr/src/SRPMS/ | grep ".*\.rpm"
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm mic1.log
-sudo rm -rf ./mic-output
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_fs_pack-to-tar-bz2_native_ia32.case b/cases/create/opt_cases/mic_cr_fs_pack-to-tar-bz2_native_ia32.case
deleted file mode 100644 (file)
index 1988585..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<testcase>
-  <summary>create fs image with arch ia32 and --pack-to is .tar.bz2 in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  fs handset_blackbay.ks --pack-to=@NAME@.tar.bz2 --runtime=native --logfile=mic.log
-(! grep -i 'Start mic in bootstrap' mic.log)
-grep 'Finished' mic.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-tar_name=$(ls mic-output/handset_blackbay-*.tar.bz2)
-test -f $tar_name
-sudo tar -xvf $tar_name -C mic-output/
-test -d mic-output/bin
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm mic.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_fs_pack-to-tar-gz_native_ia32.case b/cases/create/opt_cases/mic_cr_fs_pack-to-tar-gz_native_ia32.case
deleted file mode 100644 (file)
index 9678b69..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<testcase>
-  <summary>create fs image with arch ia32 and --pack-to is .tar.gz in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  fs handset_blackbay.ks --pack-to=@NAME@.tar.gz --runtime=native --logfile=mic.log
-(! grep -i 'Start mic in bootstrap' mic.log)
-grep 'Finished' mic.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-tar_name=$(ls mic-output/handset_blackbay-*.tar.gz)
-test -f $tar_name
-sudo tar -zxf $tar_name -C mic-output/
-test -d mic-output/bin
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm mic.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_fs_pack-to-tar_native_ia32.case b/cases/create/opt_cases/mic_cr_fs_pack-to-tar_native_ia32.case
deleted file mode 100644 (file)
index d4f5045..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<testcase>
-  <summary>create fs image with arch ia32 and --pack-to is .tar in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  fs handset_blackbay.ks --pack-to=@NAME@.tar --runtime=native --logfile=mic.log
-(! grep -i 'Start mic in bootstrap' mic.log)
-grep 'Finished' mic.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-tar_name=$(ls mic-output/handset_blackbay-*.tar)
-test -f $tar_name
-sudo tar -xvf $tar_name -C mic-output/
-test -d mic-output/bin
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm mic.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_fs_pack-to-tbz_native_ia32.case b/cases/create/opt_cases/mic_cr_fs_pack-to-tbz_native_ia32.case
deleted file mode 100644 (file)
index 2696ff0..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<testcase>
-  <summary>create fs image with arch ia32 and --pack-to is .tbz in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  fs handset_blackbay.ks --pack-to=@NAME@.tbz --runtime=native --logfile=mic.log
-(! grep -i 'Start mic in bootstrap' mic.log)
-grep 'Finished' mic.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-tar_name=$(ls mic-output/handset_blackbay-*.tbz)
-test -f $tar_name
-sudo tar -xvf $tar_name -C mic-output/
-test -d mic-output/bin
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm mic.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_fs_pack-to-tgz_native_ia32.case b/cases/create/opt_cases/mic_cr_fs_pack-to-tgz_native_ia32.case
deleted file mode 100644 (file)
index 27eefe9..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<testcase>
-  <summary>create fs image with arch ia32 and --pack-to is .tgz in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  fs handset_blackbay.ks --pack-to=@NAME@.tgz --runtime=native --logfile=mic.log
-(! grep -i 'Start mic in bootstrap' mic.log)
-grep 'Finished' mic.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-tar_name=$(ls mic-output/handset_blackbay-*.tgz)
-test -f $tar_name
-sudo tar -xvf $tar_name -C mic-output/
-test -d mic-output/bin
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm mic.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_fs_record-pkgs-name-content-license-vcs_native_ia32.case b/cases/create/opt_cases/mic_cr_fs_record-pkgs-name-content-license-vcs_native_ia32.case
deleted file mode 100644 (file)
index 034b503..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<testcase>
-  <summary>create loop image with ia32 arch and --record-pkgs is name, content, license, vcs</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  fs handset_blackbay.ks \
-  --record-pkgs=name,content,license,vcs \
-  --runtime=native \
-  --logfile=mic.log
-grep 'Finished' mic.log
-test -d ./mic-output/handset_blackbay*[0-9]
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-cat ./mic-output/handset_blackbay*.packages | grep bash
-cat ./mic-output/handset_blackbay*.license | grep bash
-cat ./mic-output/handset_blackbay*.files | grep bash
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning...."
-sudo rm -rf ./mic-output
-sudo rm mic.log
-echo "finish cleaning...."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_fs_runtime-native_ia32.case b/cases/create/opt_cases/mic_cr_fs_runtime-native_ia32.case
deleted file mode 100644 (file)
index 9f0755f..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<testcase>
-  <summary>create fs image with ia32 arch and --runtime is native</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  fs handset_blackbay.ks --runtime=native --logfile=mic.log
-(! grep -i 'Start mic in bootstrap' mic.log)
-grep 'Finished' mic.log
-image_name=`ls ./mic-output | grep 'handset_blackbay'`
-test -d ./mic-output/$image_name
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm mic.log
-sudo rm -rf ./mic-output
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_livecd.case b/cases/create/opt_cases/mic_cr_livecd.case
deleted file mode 100644 (file)
index 5e703e6..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<testcase>
-  <summary>create livecd  image with ia32 arch</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-    <content target="parse_manifest.py">
-import sys
-import json
-img_file = sys.argv[1]
-mic_version = sys.argv[2]
-manifest_file=open('mic-output/manifest.json')
-manifest=json.load(manifest_file)
-assert manifest['format'] == 'livecd'
-assert manifest['version'] == mic_version
-assert img_file in manifest['livecd']['image_files']
-    </content>
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  livecd gnome-live.ks --runtime=native 2>&1 | tee mic1.log
-grep 'Finished' mic1.log
-test -f ./mic-output/gnome-live-*.iso
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-img_file=$(ls mic-output | grep gnome-live-.*.iso)
-mic_version=$(mic --version | awk '{print $2}')
-python parse_manifest.py $img_file $mic_version
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf mic-output/
-sudo rm mic1.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_liveusb.case b/cases/create/opt_cases/mic_cr_liveusb.case
deleted file mode 100644 (file)
index f4f7a06..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<testcase>
-  <summary>create liveusb  image with ia32 arch</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  liveusb gnome-live.ks --runtime=native 2>&1 | tee mic1.log
-grep 'Finished' mic1.log
-test -f ./mic-output/gnome-live-*.usbimg
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf mic-output/
-sudo rm mic1.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_liveusb_copy-kernel_native_ia32.case b/cases/create/opt_cases/mic_cr_liveusb_copy-kernel_native_ia32.case
deleted file mode 100644 (file)
index a22448a..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<testcase>
-  <summary>mic create liveusb image with ia32 arch and --copy-kernel in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  liveusb gnome-live.ks --copy-kernel --logfile=mic.log --runtime=native
-grep 'Finished' mic.log
-test -f ./mic-output/gnome-live-*.usbimg
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-ls -l ./mic-output | grep -E 'gnome-live-.*-vmlinuz.*'
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm -rf mic.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_liveusb_pack-to-tar-gz_native.case b/cases/create/opt_cases/mic_cr_liveusb_pack-to-tar-gz_native.case
deleted file mode 100644 (file)
index d644ba4..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<testcase>
-  <summary>create live image and --pack-to is .tar.gz in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/gnome-live.ks" />
-  </fixtures>
-  <conditions>
-   <blacklist>
-    <platform>ubuntu14.10</platform>
-   </blacklist>
-  </conditions>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  liveusb gnome-live.ks --pack-to=@NAME@.tar.gz --runtime=native --logfile=mic.log
-(! grep -i 'Start mic in bootstrap' mic.log)
-grep 'Finished' mic.log
-gnome_name=$(ls ./mic-output/gnome-live-*.tar.gz)
-test -f $gnome_name
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo tar -xf $gnome_name -C mic-output
-test -e mic-output/gnome-live-*.usbimg
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm mic.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_cache-current-dir_native_ia32.case b/cases/create/opt_cases/mic_cr_loop_cache-current-dir_native_ia32.case
deleted file mode 100644 (file)
index d5759e1..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<testcase>
-  <summary>This test case is used to test the option "-k", which should be set to a directory, and  when run the same command more then one times, it should use the cached download packages instead of downloading again unless you specified '--nocache' for repos in kickstart files. In this case we tested the case when cache directory is in the current direcroty, 'yum' as backend, and native mode.
-
-And if run the same ks with the same cache, it shouldn't download packages again</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks \
-  --cachedir=./cache/mic_cache \
-  --runtime=native \
-  --logfile=file.log
-grep 'Finished' file.log
-grep "43 Total, 0 Cached, 43 Missed" file.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-test -d ./cache/mic_cache
-test -f ./mic-output/platform.img
-sudo rm -rf mic-output
-sudo rm -f file.log
-sudo mic cr -d -v  loop handset_blackbay.ks \
-  --cachedir=./cache/mic_cache \
-  --runtime=native \
-  --pkgmgr=yum \
-  --logfile=file.log
-grep 'Finished' file.log
-test -f ./mic-output/platform.img
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-grep "43 Total, 43 Cached, 0 Missed" file.log
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm file.log
-sudo rm -rf mic-output ./cache/mic_cache
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_cache-root-dir_native_ia32.case b/cases/create/opt_cases/mic_cr_loop_cache-root-dir_native_ia32.case
deleted file mode 100644 (file)
index 2b09f63..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<testcase>
-  <summary>
-  This test case is used to test the option "-k", which should be set to a
-  directory, and  when run the same command more then one times, it should
-  use the cached download packages instead of downloading again unless you
-  specified '--nocache' for repos in kickstart files. In this case we tested
-  the case when cache directory  is specified to root direcroty(because mic
-  forgot to mount cache directory in bootstrap mode before), 'zypp' as
-  backend, and native mode
-  </summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks -k /root/cache/mic_cache \
-  --runtime=native \
-  --logfile=file.log
-grep 'Finished' file.log
-grep "43 Total, 0 Cached, 43 Missed" file.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo test -d /root/cache/mic_cache
-test -f ./mic-output/platform.img
-sudo rm -rf file.log
-sudo rm -rf mic-output
-sudo mic cr -d -v  loop handset_blackbay.ks \
-  -k /root/cache/mic_cache \
-  --runtime=native \
-  --pkgmgr=zypp \
-  --logfile=file.log
-grep 'Finished' file.log
-test -f ./mic-output/platform.img
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-grep "43 Total, 43 Cached, 0 Missed" file.log
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm file.log
-sudo rm -rf mic-output  /root/cache/mic_cache
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_compress-image-lzo_native_ia32.case b/cases/create/opt_cases/mic_cr_loop_compress-image-lzo_native_ia32.case
deleted file mode 100644 (file)
index eb3b5d5..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<testcase>
-  <summary>create loop image with ia32 arch and compress-image option with lzo</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-    <copy src="scripts/compute_volume.sh" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-if ! which lzop; then
-    sudo spm install lzop
-fi
-sudo mic cr -d -v  loop handset_blackbay.ks -o out1 --logfile=mic1.log --runtime=native
-grep 'Finished' mic1.log
-test -e ./out1/platform.img
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks --compress-image=lzo -o out2 --logfile=mic2.log --runtime=native
-grep 'Finished' mic2.log
-test -e ./out2/platform.img.lzo
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-source compute_volume.sh
-p1=`compute_volume ./out1/platform.img`
-p2=`compute_volume ./out2/platform.img.lzo`
-result=`awk -v before_volume=$p1 -v compress_volume=$p2 'BEGIN {print(before_volume>compress_volume)?"yes":"no"}'`
-test $result = 'yes'
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./out1/ ./out2/
-sudo rm mic1.log mic2.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_conf_native_ia32.case b/cases/create/opt_cases/mic_cr_loop_conf_native_ia32.case
deleted file mode 100644 (file)
index 6a47e30..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<testcase>
-  <summary>This test case is used to test the option "--config",
- a mic config file name is given to this option,the image will created according to the configurations that is set in the file mic.conf.
- In this test case, the 'mic.conf' is copied from the default mic.conf which locates at "/etc/mic/" with modifying the "runtime=native".</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-    <copy src="conf/mic_native.conf" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks -c mic_native.conf --logfile=log.file
-grep "Finished" log.file
-(! grep -i 'start mic in bootstrap' log.file)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-test -f ./mic-output/platform.img
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -f log.file && sudo rm log.file
-test -d ./mic-output && sudo rm -rf ./mic-output
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_local-pkg-path_native_ia32.case b/cases/create/opt_cases/mic_cr_loop_local-pkg-path_native_ia32.case
deleted file mode 100644 (file)
index 0c0e80a..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<testcase>
-  <summary>Test "--local-pkg-path".</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-    <copydir src="rpm" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  fs handset_blackbay.ks --local-pkgs-path=./rpm --runtime=native --logfile=./log/handset.log
-test -f ./log/handset.log
-grep 'Finished' ./log/handset.log
-test -e ./mic-output/handset_blackbay*[0-9]
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo chroot ./mic-output/handset_blackbay*[0-9] rpm -qa | grep "sed"
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm ./log/handset.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_logfile-current-file_native_ia32.case b/cases/create/opt_cases/mic_cr_loop_logfile-current-file_native_ia32.case
deleted file mode 100644 (file)
index 3f43127..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<testcase>
-  <summary>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.</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-hostname=$(hostname)
-sudo mic cr -d -v  loop handset_blackbay.ks --runtime=native --logfile=./log/handset.log
-test -f ./log/handset.log
-grep 'Finished' ./log/handset.log
-grep "$(hostname)" ./log/handset.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-egrep 'mic [0-9]{1,2}\.[0-9]+' ./log/handset.log
-test -f ./mic-output/platform.img
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm ./log/handset.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_outdir-current-dir_native_ia32.case b/cases/create/opt_cases/mic_cr_loop_outdir-current-dir_native_ia32.case
deleted file mode 100644 (file)
index 79da8b2..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<testcase>
-  <summary>This test case is used to test the option "--outdir",
-it can be set to an existed directory and also can be set to an unexisted directory which will be generated in the command execution process.</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks -o my_mic_out --runtime=native --logfile=log.file
-grep "Finished" log.file
-if [ -e my_mic_out/platform.img ]; then echo " Image found. " ; else echo "Image not found." && exit 1 ; fi
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm log.file
-sudo rm -rf ./my_mic_out
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_outdir-root-dir_native_ia32.case b/cases/create/opt_cases/mic_cr_loop_outdir-root-dir_native_ia32.case
deleted file mode 100644 (file)
index b127fe2..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<testcase>
-  <summary>This test case is used to test the option "--outdir",in this case,
-a subdirectory under /root is given to it, related images should can be found under the given directory.</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks \
-  --outdir=/root/my_mic_out \
-  --runtime=native \
-  --logfile=log.file
-grep "Finished" log.file
-sudo test -f /root/my_mic_out/platform.img
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf /root/my_mic_out log.file
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_pack-to-tar-bz2_native_ia32.case b/cases/create/opt_cases/mic_cr_loop_pack-to-tar-bz2_native_ia32.case
deleted file mode 100644 (file)
index b762894..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<testcase>
-  <summary>create loop image with arch ia32 and --pack-to is .tar.bz2 in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks \
-  --pack-to=@NAME@.tar.bz2 \
-  --runtime=native \
-  --logfile=mic.log
-(! grep -i 'start mic in bootstrap' mic.log)
-grep 'Finished' mic.log
-test -f ./mic-output/handset_blackbay*.tar.bz2
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo bunzip2 -d ./mic-output/handset_blackbay*.tar.bz2
-sudo tar -xvf ./mic-output/handset_blackbay*.tar -C ./mic-output
-sudo test -e ./mic-output/platform.img
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm mic.log
-sudo rm -rf ./mic-output
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_pack-to-tar-gz_native_ia32.case b/cases/create/opt_cases/mic_cr_loop_pack-to-tar-gz_native_ia32.case
deleted file mode 100644 (file)
index e650624..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<testcase>
-  <summary>create loop image with arch ia32 and --pack-to is .tar.gz in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks \
-  --pack-to=@NAME@.tar.gz  \
-  --runtime=native \
-  --logfile=mic.log
-(! grep -i 'start mic in bootstrap' mic.log)
-grep 'Finished' mic.log
-test -f ./mic-output/handset_blackbay*.tar.gz
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo gunzip  ./mic-output/handset_blackbay*.tar.gz
-sudo tar -xvf ./mic-output/handset_blackbay*.tar -C ./mic-output
-sudo test -e ./mic-output/platform.img
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm mic.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_pack-to-tar-lzo_native.case b/cases/create/opt_cases/mic_cr_loop_pack-to-tar-lzo_native.case
deleted file mode 100644 (file)
index b5287fe..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<testcase>
-  <summary>create loop image with arch ia32 and --pack-to is .tar.lzo,
-  for now, only support lzop format in native mode
- </summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-if ! which lzop; then
-    sudo spm install lzop
-fi
-sudo mic cr -d -v  loop handset_blackbay.ks --runtime=native\
-  --pack-to=@NAME@.tar.lzo \
-  --logfile=mic.log
-grep 'Finished' mic.log
-test -f ./mic-output/handset_blackbay*.tar.lzo
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo lzop -d  mic-output/handset_blackbay*.tar.lzo
-sudo tar -xvf ./mic-output/handset_blackbay*.tar -C ./mic-output
-sudo test -e ./mic-output/platform.img
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm mic.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_pack-to-tar_native_ia32.case b/cases/create/opt_cases/mic_cr_loop_pack-to-tar_native_ia32.case
deleted file mode 100644 (file)
index 6377871..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<testcase>
-  <summary>create loop image with arch ia32 and --pack-to is @NAME@ in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks \
-  --pack-to=@NAME@ \
-  --runtime=native \
-  --logfile=mic.log
-(! grep -i 'start mic in bootstrap' mic.log)
-grep 'Finished' mic.log
-test -f ./mic-output/handset_blackbay*.tar
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo tar -xvf ./mic-output/handset_blackbay*.tar -C ./mic-output
-sudo test -f ./mic-output/platform.img
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm mic.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_pack-to-tzo_native.case b/cases/create/opt_cases/mic_cr_loop_pack-to-tzo_native.case
deleted file mode 100644 (file)
index 181dbd5..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<testcase>
-  <summary>create loop image with arch ia32 and --pack-to is .tzo</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-if ! which lzop; then
-    sudo spm install lzop
-fi
-sudo mic cr -d -v  loop handset_blackbay.ks --runtime=native\
-  --pack-to=@NAME@.tzo \
-  --logfile=mic.log
-grep 'Finished' mic.log
-test -f ./mic-output/handset_blackbay*.tzo
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo lzop -d  mic-output/handset_blackbay*.tzo
-sudo tar -xvf ./mic-output/handset_blackbay*.tar -C ./mic-output
-sudo test -e ./mic-output/platform.img
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm mic.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_pack-to-zip_native_ia32.case b/cases/create/opt_cases/mic_cr_loop_pack-to-zip_native_ia32.case
deleted file mode 100644 (file)
index d3b3bff..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<testcase>
-  <summary>create loop image with arch ia32 and --pack-to is .zip in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks \
-  --pack-to=@NAME@.zip \
-  --logfile=mic.log \
-  --runtime=native
-(! grep -i 'start mic in bootstrap' mic.log)
-grep 'Finished' mic.log
-test -f ./mic-output/handset_blackbay*.zip
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo unzip  ./mic-output/handset_blackbay*.zip -d ./mic-output
-test -e ./mic-output/platform.img
-sudo mic chroot ./mic-output/platform.img ls
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm mic.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_pkgmgr-zypp_native_ia32.case b/cases/create/opt_cases/mic_cr_loop_pkgmgr-zypp_native_ia32.case
deleted file mode 100644 (file)
index 79148b9..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<testcase>
-  <summary>create loop image with ia32 arch and zypp pkgmgr</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks \
-  --pkgmgr=zypp \
-  --runtime=native \
-  --logfile=mic.log
-grep 'Finished' mic.log
-test -f ./mic-output/platform.img
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm mic.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_record-pkgs-name-content-license-vcs_native_ia32.case b/cases/create/opt_cases/mic_cr_loop_record-pkgs-name-content-license-vcs_native_ia32.case
deleted file mode 100644 (file)
index 0ba103a..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<testcase>
-  <summary>create loop image with ia32 arch and --record-pkgs is name, content, license, vcs</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks \
-  --record-pkgs=name,content,license,vcs \
-  --runtime=native \
-  --logfile=mic.log
-grep 'Finished' mic.log
-test -f ./mic-output/platform.img
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-cat ./mic-output/handset_blackbay*.packages | grep bash
-cat ./mic-output/handset_blackbay*.license | grep bash
-cat ./mic-output/handset_blackbay*.files | grep bash
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning...."
-sudo rm -rf ./mic-output
-sudo rm mic.log
-echo "finish cleaning...."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_release_native_ia32.case b/cases/create/opt_cases/mic_cr_loop_release_native_ia32.case
deleted file mode 100644 (file)
index 6e90315..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<testcase>
-  <summary>This test case is used to test the option "--release",
-find a version number which contains existed images in the repo specified in handset_blackbay.ks,
-then test whether image will generate correspondently.</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic --non-interactive cr loop handset_blackbay.ks \
-  --release=tizen-2.2_20130719.3 \
-  --runtime=native
-grep "Finished" ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*/tizen-2.2_20130719.3_handset_blackbay.log
-sudo test -f ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*/platform.img
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo test -f ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*/MD5SUMS
-sudo test -f ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*/tizen-2.2_20130719.3_handset_blackbay.packages
-sudo test -f ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*/tizen-2.2_20130719.3_handset_blackbay.ks
-sudo test -f ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay/tizen-2.2_20130719.3_handset_blackbay.xml
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_loop_runtime-native_ia32.case b/cases/create/opt_cases/mic_cr_loop_runtime-native_ia32.case
deleted file mode 100644 (file)
index 3bed58b..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<testcase>
-  <summary>create loop image with ia32 arch and native mode</summary>
-  <fixtures>
-    <copy src="ks_files/handset_blackbay.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  loop handset_blackbay.ks --runtime=native --logfile=mic.log
-(! grep -i 'start mic in bootstrap' mic.log)
-grep 'Finished' mic.log
-test -f ./mic-output/platform.img
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf /mic-output
-sudo rm mic.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_proxy_in_custom_conf.case b/cases/create/opt_cases/mic_cr_proxy_in_custom_conf.case
deleted file mode 100644 (file)
index 0e43782..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<testcase>
-  <version>1.0</version>
-  <summary>test proxy in custom config file</summary>
-  <fixtures>
-    <copy src="ks_files/ivi-mbr-i586.ks" />
-    <copy src="conf/mic_proxy.conf" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-# make sure the proxy is off in /etc/sysconfig/proxy
-if [ -f /etc/sysconfig/proxy ];then
-    sudo sed -i 's/PROXY_ENABLED\s*=\s*".*"/PROXY_ENABLED="no"/' /etc/sysconfig/proxy
-fi
-if [ -f /etc/mic/mic.conf ];then
-    sudo mv /etc/mic/mic.conf /etc/mic/mic.conf.bak
-    sudo cp mic_proxy.conf /etc/mic/mic.conf
-else
-    sudo cp mic_proxy.conf /etc/mic/mic.conf
-fi
-# make sure proxy is off in terminal
-unset http_proxy
-unset https_proxy
-unset no_proxy
-sudo  mic cr raw ivi-mbr-i586.ks --logfile=log.file -d -v --runtime=native
-grep "Finished" log.file
-sudo test -e ./mic-output/ivi-mbr-i586*.raw
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-if [ -f /etc/mic/mic.conf.bak ];then
-    sudo mv /etc/mic/mic.conf.bak /etc/mic/mic.conf
-else
-    sudo rm -f /etc/mic/mic.conf
-fi
-test -d ./mic-output && sudo rm -rf ./mic-output/
-test -f log.file && sudo rm log.file
-echo 'finish cleaning...'
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_proxy_in_terminal.case b/cases/create/opt_cases/mic_cr_proxy_in_terminal.case
deleted file mode 100755 (executable)
index 1dd1b95..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<testcase>
-  <version>1.0</version>
-  <summary>test proxy in terminal</summary>
-  <fixtures>
-    <copy src="ks_files/ivi-mbr-i586.ks" />
-    <copy src="conf/mic.conf" />
-  </fixtures>  
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-# make sure the proxy is off in /etc/sysconfig/proxy
-if [ -f /etc/sysconfig/proxy ];then
-    sudo sed -i 's/PROXY_ENABLED\s*=\s*".*"/PROXY_ENABLED="no"/' /etc/sysconfig/proxy
-fi
-# make sure proxy in /etc/mic/mic.conf is off
-if [ -f /etc/mic/mic.conf ];then
-    sudo mv /etc/mic/mic.conf /etc/mic/mic.conf.bak
-    sudo cp mic.conf /etc/mic/
-else
-    sudo cp mic.conf /etc/mic/
-fi
-export http_proxy=http://109.123.121.142:80
-export https_proxy=http://109.123.121.142:80
-export no_proxy=.intel.com
-sudo mic cr raw ivi-mbr-i586.ks --logfile=mic1.log -d -v --runtime=native
-grep 'Finished' mic1.log
-test -f ./my_mic-output/ivi-mbr-i586*.raw
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-if [ -f /etc/mic/mic.conf.bak ];then
-    sudo mv /etc/mic/mic.conf.bak /etc/mic/mic.conf
-else
-    sudo rm -f /etc/mic/mic.conf
-fi
-test -d ./my_mic-output && sudo rm -rf ./my_mic-output/
-test -f mic1.log && sudo rm mic1.log
-echo 'finish cleaning...'
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_qcow_logfile-current-file_ia32.case b/cases/create/opt_cases/mic_cr_qcow_logfile-current-file_ia32.case
deleted file mode 100644 (file)
index 3d13ff4..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<testcase>
-  <summary>Test '--logfile' option of 'qcow' format image</summary>
-  <fixtures>
-    <copy src="ks_files/qcow_image.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-hostname=$(hostname)
-sudo mic cr -d -v qcow qcow_image.ks --logfile=./log/qcow.log -k /home/build/mic-tmp-cache
-# use '-k /home/build/mic-tmp-cache', because directory '/home/build/' has larger space, if
-# use default cache dir, mic will throw error 'Failed to umount /var/***/install_root' on
-# Ubuntu_12.04_64bit qemu-kvm
-test -f ./log/qcow.log
-test -e ./mic-output/emulimg-3.0.img
-file ./mic-output/emulimg-3.0.img | grep -i 'QCOW'
-grep 'Finished' ./log/qcow.log
-grep "$hostname" ./log/qcow.log
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-egrep 'mic [0-9]{1,2}\.[0-9]+' ./log/qcow.log
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm ./log/qcow.log
-test -d /home/build/mic-tmp-cache && sudo rm -rf /home/build/mic-tmp-cache
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_raw_compress-image-lzo_native_ia32.case b/cases/create/opt_cases/mic_cr_raw_compress-image-lzo_native_ia32.case
deleted file mode 100644 (file)
index 294d439..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<testcase>
-  <summary>create raw image with ia32 arch and compress-image option with lzo</summary>
-  <fixtures>
-    <copy src="ks_files/ivi.ks" />
-    <copy src="scripts/compute_volume.sh" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-if ! which lzop; then
-    sudo spm install lzop
-fi
-sudo mic cr raw ivi.ks -o out1 -d -v --logfile=mic1.log --runtime=native
-grep 'Finished' mic1.log
-test -f ./out1/ivi*.raw
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr raw ivi.ks --compress-image=lzo -o out2 -d -v --logfile=mic2.log --runtime=native
-grep 'Finished' mic2.log
-test -e ./out2/ivi*.raw.lzo
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-source compute_volume.sh
-cd out1
-name1=`ls ivi*.raw`
-p1=`compute_volume $name1`
-cd ../out2
-name2=`ls ivi*.raw.lzo`
-p2=`compute_volume $name2`
-result=`awk -v before_volume=$p1 -v compress_volume=$p2 'BEGIN {print(before_volume>compress_volume)?"yes":"no"}'`
-test $result = 'yes'
-sudo lzop -x $name2
-raw_name=`ls ivi*.raw`
-test -e $name
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./out1/ ./out2/
-sudo rm mic1.log mic2.log
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_raw_fstab-name_gpt_native_ia32.case b/cases/create/opt_cases/mic_cr_raw_fstab-name_gpt_native_ia32.case
deleted file mode 100644 (file)
index f6ee435..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<testcase>
-  <summary>create raw image with ia32 arch and --fstab-entry=name  option in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/ivi_four_partition_gpt.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  raw ivi_four_partition_gpt.ks \
-  --runtime=native \
-  --fstab-entry=name \
-  --logfile=mic1.log
-grep 'Finished' mic1.log
-test -f ./mic-output/ivi_four_partition_gpt-*.raw
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -d ./mic-output && sudo rm -rf ./mic-output/
-test -f 'mic1.log' && sudo rm mic1.log
-echo 'finish cleaning'
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_raw_fstab-name_native.case b/cases/create/opt_cases/mic_cr_raw_fstab-name_native.case
deleted file mode 100644 (file)
index e9b065d..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<testcase>
-  <summary>create raw image with x86_64 arch and --fstab-entry=name  option in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/ivi.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  raw ivi.ks \
-  --runtime=native \
-  --fstab-entry=name \
-  --logfile=mic1.log
-grep 'Finished' mic1.log
-test -f ./mic-output/ivi*.raw
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -d ./mic-output && sudo rm -rf ./mic-output/
-test -f 'mic1.log' && sudo rm mic1.log
-echo 'finish cleaning'
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_raw_fstab-uuid_gpt_native_ia32.case b/cases/create/opt_cases/mic_cr_raw_fstab-uuid_gpt_native_ia32.case
deleted file mode 100644 (file)
index c5fc22a..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<testcase>
-  <summary>create raw image with ia32 arch and --fstab=uuid  option in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/ivi_four_partition_gpt.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  raw ivi_four_partition_gpt.ks \
-  --runtime=native \
-  --fstab=uuid \
-  --logfile=mic1.log
-grep 'Finished' mic1.log
-test -f ./mic-output/ivi_four_partition_gpt-*.raw
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -d ./mic-output && sudo rm -rf ./mic-output/
-test -f 'mic1.log' && sudo rm mic1.log
-echo 'finish cleaning'
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_raw_fstab-uuid_native.case b/cases/create/opt_cases/mic_cr_raw_fstab-uuid_native.case
deleted file mode 100644 (file)
index 3fd911e..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<testcase>
-  <summary>create raw image with x86_64 arch and --fstab=uuid  option in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/ivi.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  raw ivi.ks \
-  --runtime=native \
-  --fstab=uuid \
-  --logfile=mic1.log
-grep 'Finished' mic1.log
-test -f ./mic-output/ivi*.raw
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -d ./mic-output && sudo rm -rf ./mic-output/
-test -f 'mic1.log' && sudo rm mic1.log
-echo 'finish cleaning'
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_raw_generate-bmap_ia32_native.case b/cases/create/opt_cases/mic_cr_raw_generate-bmap_ia32_native.case
deleted file mode 100644 (file)
index 4a53cd3..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<testcase>
-  <summary>create raw image with ia32 arch and '--generate-bmap' option in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/ivi.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  raw ivi.ks --generate-bmap --runtime=native --logfile=mic1.log
-grep 'Finished' mic1.log
-test -f ./mic-output/ivi*.raw
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-test -f ./mic-output/ivi*.bmap
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output/
-sudo rm mic1.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_raw_install-pkgs_native_ia32.case b/cases/create/opt_cases/mic_cr_raw_install-pkgs_native_ia32.case
deleted file mode 100644 (file)
index e588dcd..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<testcase>
-  <summary>create raw image with ia32 arch and "--install-pkgs" '--runtime=native' option</summary>
-  <fixtures>
-    <copy src="ks_files/ivi-2.0-alpha-debuginfo.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  raw ivi-2.0-alpha-debuginfo.ks \
-  --install-pkgs=debuginfo \
-  --runtime=native \
-  --logfile=mic1.log
-grep 'Finished' mic1.log
-raw_image=$(ls ./mic-output/ivi-2.0-alpha-debuginfo-*-sdb.raw)
-test -f $raw_image
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mkdir -p mic-output/ivi_dir/boot
-kpartx_path=$(sudo which kpartx)
-loop_device=$(sudo $losetup_path -f)
-sudo $losetup_path $loop_device $raw_image
-for i in {1..5}
-do
-    kpartx_output=$(sudo $kpartx_path -av $loop_device)
-    if [ -n "$kpartx_output" ]; then
-        first_part=$(echo "$kpartx_output" | awk '{print $3}' | sed -n '1p')
-        second_part=$(echo "$kpartx_output" | awk '{print $3}' | sed -n '2p')
-        if [ -n "$first_part" ] && [ -n "$second_part" ];then
-            for j in {1..5}
-            do
-                ls /dev/mapper/
-                if [ -e "/dev/mapper/$first_part" ] && [ -e "/dev/mapper/$second_part" ];then
-                    sudo mount /dev/mapper/$first_part  mic-output/ivi_dir/boot/ -t ext4
-                    sudo mount /dev/mapper/$second_part  mic-output/ivi_dir/ -t ext4
-                    sudo chroot mic-output/ivi_dir/ rpm -qa | grep 'debuginfo'
-                    exit 0
-                else
-                    sleep 2
-                fi
-            done
-        fi
-    fi
-    sleep 3
-done
-echo "can not get kpartx output: $kpartx_path -av $raw_image"
-exit 1
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -f mic1.log && sudo rm -f mic1.log
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-loop_devices=$(sudo $losetup_path -a | awk -F ":" '{print $1}')
-for i in {1..5}
-do
-    for loop_device in $loop_devices
-    do
-        test -d mic-output/ivi_dir && sudo umount -l mic-output/ivi_dir
-        test -d mic-output/ivi_dir/boot && sudo umount -l mic-output/ivi_dir/boot
-        kpartx_path=$(sudo which kpartx)
-        sudo $kpartx_path -d $loop_device
-        sudo $losetup_path -d $loop_device
-    done
-    if sudo $losetup_path -a | grep 'ivi-2.0-alpha-debuginfo'; then
-        sleep 2
-    else
-        test -d mic-output && sudo rm -rf ./mic-output
-        break
-    fi
-done
-
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_raw_native_conf_proxy.case b/cases/create/opt_cases/mic_cr_raw_native_conf_proxy.case
deleted file mode 100644 (file)
index 55036cc..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<testcase>
-  <version>1.0</version>
-  <summary>This test case is used to test the option "--config",a mic config file name is given to this option,the image will created according to the configurations that is set in the file mic.conf.In this test case, the 'mic.conf' is copied from the default mic.conf which locates at "/etc/mic/" with modifying the "proxy".</summary>
-  <fixtures>
-    <copy src="ks_files/ivi-mbr-i586.ks" />
-    <copy src="conf/mic_proxy.conf" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-unset http_proxy || true
-unset https_proxy || true
-unset no_proxy || true
-sudo mic cr raw ivi-mbr-i586.ks --config=mic_proxy.conf  --logfile=log.file --runtime=native -d -v
-grep "Finished" log.file
-ls mic-output/ | grep 'ivi-mbr-i586-.*-sdb.raw'
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-test -f log.file && sudo rm log.file
-test -d mic-output && sudo rm -rf ./mic-output
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_raw_pack-to-tar-gz_native_ia32.case b/cases/create/opt_cases/mic_cr_raw_pack-to-tar-gz_native_ia32.case
deleted file mode 100644 (file)
index 1dfbb5e..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<testcase>
-  <summary>create raw image with arch ia32 and --pack-to is .tar.gz in native mode</summary>
-  <fixtures>
-    <copy src="ks_files/ivi.ks" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo mic cr -d -v  raw ivi.ks \
-  --pack-to=@NAME@.tar.gz \
-  --runtime=native \
-  --logfile=mic.log
-(! grep -i 'Start mic in bootstrap' mic.log)
-grep 'Finished' mic.log
-raw_name=$(ls mic-output/ivi-*.tar.gz)
-test -f $raw_name
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-sudo tar -zxvf $raw_name -C mic-output
-sudo ls mic-output | grep 'ivi-.*-sdb.raw'
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-sudo rm -rf ./mic-output
-sudo rm mic.log
-echo "finish cleaning..."
-]]></teardown>
-</testcase>
diff --git a/cases/create/opt_cases/mic_cr_raw_proxy_with_authentication.case b/cases/create/opt_cases/mic_cr_raw_proxy_with_authentication.case
deleted file mode 100644 (file)
index 8a49722..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<testcase>
-  <version>1.0</version>
-  <summary>test proxy in custom config file</summary>
-  <fixtures>
-    <copy src="ks_files/ivi-mbr-i586.ks" />
-    <copy src="conf/mic_proxy_with_authentication.conf" />
-  </fixtures>
-  <steps><![CDATA[
-losetup_path=$(sudo which losetup)
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-# make sure the proxy is off in /etc/sysconfig/proxy
-if [ -f /etc/sysconfig/proxy ];then
-    sudo sed -i 's/PROXY_ENABLED\s*=\s*".*"/PROXY_ENABLED="no"/' /etc/sysconfig/proxy
-fi
-if [ -f /etc/mic/mic.conf ];then
-    sudo mv /etc/mic/mic.conf /etc/mic/mic.conf.bak
-    sudo cp mic_proxy_with_authentication.conf /etc/mic/mic.conf
-else
-    sudo cp mic_proxy_with_authentication.conf /etc/mic/mic.conf
-fi
-# make sure proxy is off in terminal
-unset http_proxy
-unset https_proxy
-unset no_proxy
-sudo mic cr raw ivi-mbr-i586.ks --logfile=mic.log -d -v --runtime=native
-grep 'Finished' mic.log
-test -e ./mic-output/ivi-mbr-i586*.raw
-sudo $losetup_path -a
-sudo $losetup_path -a | wc -l | xargs test 0 -eq
-]]></steps>
-  <teardown><![CDATA[
-echo "cleaning..."
-if [ -f /etc/mic/mic.conf.bak ];then
-    sudo mv /etc/mic/mic.conf.bak /etc/mic/mic.conf
-else
-    sudo rm -f /etc/mic/mic.conf
-fi
-test -d ./mic-output && sudo rm -rf ./mic-output/
-test -f mic.log && sudo rm mic.log
-echo 'finish cleaning...'
-]]></teardown>
-</testcase>