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>
6 <copy src="ks_files/handset_blackbay.ks" />
7 <copy src="conf/mic_native.conf" />
10 losetup_path=$(sudo which losetup)
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)
17 sudo $losetup_path -a | wc -l | xargs test 0 -eq
18 test -f ./mic-output/platform.img
22 test -f log.file && sudo rm log.file
23 test -d ./mic-output && sudo rm -rf ./mic-output