Don't check the files by using mic chroot method
[tools/itest-cases-mic.git] / cases / create / mixed_cases / mic_cr_loop_native_check_chroot.case
1 <testcase>
2   <summary>Test whether it is ok to chroot into the image</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  loop handset_blackbay.ks --logfile=./log/handset.log --runtime=native
11 test -f ./log/handset.log
12 grep 'Finished' ./log/handset.log
13 test -f ./mic-output/platform.img
14 sudo $losetup_path -a
15 sudo $losetup_path -a | wc -l | xargs test 0 -eq
16 bash -c "sudo mic chroot ./mic-output/platform.img" << EOF
17 echo "Checking chroot"
18 ls
19 pwd
20 echo "It's ok to chroot,jump out"
21 EOF
22 ]]></steps>
23   <teardown><![CDATA[
24 echo "cleaning..."
25 test -e ./mic-output && sudo rm -rf ./mic-output
26 test -e ./log/handset.log && sudo rm ./log/handset.log
27 ]]></teardown>
28 </testcase>