Don't check the files by using mic chroot method
[tools/itest-cases-mic.git] / cases / create / opt_cases / mic_cr_loop_outdir-current-dir_native_ia32.case
1 <testcase>
2   <summary>This test case is used to test the option "--outdir",
3 it can be set to an existed directory and also can be set to an unexisted directory which will be generated in the command execution process.</summary>
4   <fixtures>
5     <copy src="ks_files/handset_blackbay.ks" />
6   </fixtures>
7   <steps><![CDATA[
8 losetup_path=$(sudo which losetup)
9 sudo $losetup_path -a
10 sudo $losetup_path -a | wc -l | xargs test 0 -eq
11 sudo mic cr -d -v  loop handset_blackbay.ks -o my_mic_out --runtime=native --logfile=log.file
12 grep "Finished" log.file
13 if [ -e my_mic_out/platform.img ]; then echo " Image found. " ; else echo "Image not found." && exit 1 ; fi
14 sudo $losetup_path -a
15 sudo $losetup_path -a | wc -l | xargs test 0 -eq
16 ]]></steps>
17   <teardown><![CDATA[
18 echo "cleaning..."
19 sudo rm log.file
20 sudo rm -rf ./my_mic_out
21 echo "finish cleaning..."
22 ]]></teardown>
23 </testcase>