2010-07-07 18:06:58 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Boot Test Case for Sanity Test
|
2011-04-20 15:44:10 +00:00
|
|
|
# The case boot up the Qemu target with `runqemu qemuxxx`.
|
2010-07-07 18:06:58 +00:00
|
|
|
# Then check if qemu and qemu network is up.
|
|
|
|
#
|
|
|
|
# Author: Jiajun Xu <jiajun.xu@intel.com>
|
|
|
|
#
|
|
|
|
# This file is licensed under the GNU General Public License,
|
|
|
|
# Version 2.
|
|
|
|
#
|
2011-04-20 15:56:03 +00:00
|
|
|
. $COREBASE/scripts/qemuimage-testlib
|
2010-07-07 18:06:58 +00:00
|
|
|
|
|
|
|
TIMEOUT=120
|
|
|
|
|
|
|
|
# Start qemu and check its network
|
2010-10-29 17:03:22 +00:00
|
|
|
Test_Create_Qemu ${TIMEOUT}
|
2010-07-07 18:06:58 +00:00
|
|
|
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
Test_Info "Boot Test PASS"
|
|
|
|
Test_Kill_Qemu
|
|
|
|
Test_Print_Result "Boot" 0
|
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
Test_Info "Boot Test FAIL"
|
|
|
|
Test_Kill_Qemu
|
|
|
|
Test_Print_Result "Boot" 1
|
|
|
|
exit 1
|
|
|
|
fi
|