Don't check the files by using mic chroot method
[tools/itest-cases-mic.git] / cases / create / opt_cases / mic_cr_loop_conf_native_ia32.case
1 <testcase>
2   <summary>This test case is used to test the option "--config",
3  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.
4  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>
5   <fixtures>
6     <copy src="ks_files/handset_blackbay.ks" />
7     <copy src="conf/mic_native.conf" />
8   </fixtures>
9   <steps><![CDATA[
10 losetup_path=$(sudo which losetup)
11 sudo $losetup_path -a
12 sudo $losetup_path -a | wc -l | xargs test 0 -eq
13 sudo mic cr -d -v  loop handset_blackbay.ks -c mic_native.conf --logfile=log.file
14 grep "Finished" log.file
15 (! grep -i 'start mic in bootstrap' log.file)
16 sudo $losetup_path -a
17 sudo $losetup_path -a | wc -l | xargs test 0 -eq
18 test -f ./mic-output/platform.img
19 ]]></steps>
20   <teardown><![CDATA[
21 echo "cleaning..."
22 test -f log.file && sudo rm log.file
23 test -d ./mic-output && sudo rm -rf ./mic-output
24 ]]></teardown>
25 </testcase>