Don't check the files by using mic chroot method
[tools/itest-cases-mic.git] / cases / create / opt_cases / mic_cr_fs_pack-to-tbz_native_ia32.case
1 <testcase>
2   <summary>create fs image with arch ia32 and --pack-to is .tbz in native mode</summary>
3   <fixtures>
4     <copy src="ks_files/handset_blackbay.ks" />
5   </fixtures>
6   <steps><![CDATA[
7 losetup_path=$(sudo which losetup)
8 sudo $losetup_path -a
9 sudo $losetup_path -a | wc -l | xargs test 0 -eq
10 sudo mic cr -d -v  fs handset_blackbay.ks --pack-to=@NAME@.tbz --runtime=native --logfile=mic.log
11 (! grep -i 'Start mic in bootstrap' mic.log)
12 grep 'Finished' mic.log
13 sudo $losetup_path -a
14 sudo $losetup_path -a | wc -l | xargs test 0 -eq
15 tar_name=$(ls mic-output/handset_blackbay-*.tbz)
16 test -f $tar_name
17 sudo tar -xvf $tar_name -C mic-output/
18 test -d mic-output/bin
19 ]]></steps>
20   <teardown><![CDATA[
21 echo "cleaning..."
22 sudo rm -rf ./mic-output
23 sudo rm mic.log
24 echo "finish cleaning..."
25 ]]></teardown>
26 </testcase>