Don't check the files by using mic chroot method
[tools/itest-cases-mic.git] / cases / create / opt_cases / mic_cr_loop_release_native_ia32.case
1 <testcase>
2   <summary>This test case is used to test the option "--release",
3 find a version number which contains existed images in the repo specified in handset_blackbay.ks,
4 then test whether image will generate correspondently.</summary>
5   <fixtures>
6     <copy src="ks_files/handset_blackbay.ks" />
7   </fixtures>
8   <steps><![CDATA[
9 losetup_path=$(sudo which losetup)
10 sudo $losetup_path -a
11 sudo $losetup_path -a | wc -l | xargs test 0 -eq
12 sudo mic --non-interactive cr loop handset_blackbay.ks \
13   --release=tizen-2.2_20130719.3 \
14   --runtime=native
15 grep "Finished" ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*/tizen-2.2_20130719.3_handset_blackbay.log
16 sudo test -f ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*/platform.img
17 sudo $losetup_path -a
18 sudo $losetup_path -a | wc -l | xargs test 0 -eq
19 sudo test -f ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*/MD5SUMS
20 sudo test -f ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*/tizen-2.2_20130719.3_handset_blackbay.packages
21 sudo test -f ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay*/tizen-2.2_20130719.3_handset_blackbay.ks
22 sudo test -f ./mic-output/tizen-2.2_20130719.3/images/handset_blackbay/tizen-2.2_20130719.3_handset_blackbay.xml
23 ]]></steps>
24   <teardown><![CDATA[
25 echo "cleaning..."
26 sudo rm -rf ./mic-output
27 echo "finish cleaning..."
28 ]]></teardown>
29 </testcase>