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>
5 <copy src="ks_files/handset_blackbay.ks" />
8 losetup_path=$(sudo which losetup)
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
15 sudo $losetup_path -a | wc -l | xargs test 0 -eq
20 sudo rm -rf ./my_mic_out
21 echo "finish cleaning..."