Don't check the files by using mic chroot method
[tools/itest-cases-mic.git] / cases / create / opt_cases / mic_cr_loop_pack-to-tzo_native.case
1 <testcase>
2   <summary>create loop image with arch ia32 and --pack-to is .tzo</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 if ! which lzop; then
11     sudo spm install lzop
12 fi
13 sudo mic cr -d -v  loop handset_blackbay.ks --runtime=native\
14   --pack-to=@NAME@.tzo \
15   --logfile=mic.log
16 grep 'Finished' mic.log
17 test -f ./mic-output/handset_blackbay*.tzo
18 sudo $losetup_path -a
19 sudo $losetup_path -a | wc -l | xargs test 0 -eq
20 sudo lzop -d  mic-output/handset_blackbay*.tzo
21 sudo tar -xvf ./mic-output/handset_blackbay*.tar -C ./mic-output
22 sudo test -e ./mic-output/platform.img
23 ]]></steps>
24   <teardown><![CDATA[
25 echo "cleaning..."
26 sudo rm -rf ./mic-output
27 sudo rm mic.log
28 echo "finish cleaning..."
29 ]]></teardown>
30 </testcase>