diff options
author | Jiajun Xu <jiajun.xu@intel.com> | 2010-11-10 22:58:52 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2010-11-14 21:08:22 -0800 |
commit | d64c7ae88ca29def7dd2869acaa0e2ec047bd153 (patch) | |
tree | 21c2114e45481ef195b1c966a58612c5281a962b /scripts/qemuimage-testlib | |
parent | 2078af333d704fd894a2dedbc19cef5775cdadbb (diff) | |
download | poky-d64c7ae88ca29def7dd2869acaa0e2ec047bd153.tar.gz |
imagetest-qemu: Add sanity test cases for scp/shutdown in target
scp test is to check if file copying via network work or not in target.
shutdown test is to check if target can be poweroff with qemu process off.
Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
Diffstat (limited to 'scripts/qemuimage-testlib')
-rw-r--r-- | scripts/qemuimage-testlib | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/qemuimage-testlib b/scripts/qemuimage-testlib index 3ebf5ffd2a..c2c394d5ed 100644 --- a/scripts/qemuimage-testlib +++ b/scripts/qemuimage-testlib | |||
@@ -151,7 +151,8 @@ Test_Print_Result() | |||
151 | NORESULT=1 | 151 | NORESULT=1 |
152 | fi | 152 | fi |
153 | 153 | ||
154 | echo -e "\t$1\t\t$PASS\t$FAIL\t$NORESULT" >> $TEST_RESULT/testresult.log | 154 | # Format the output of the test result |
155 | echo -e "$1 $PASS $FAIL $NORESULT" | awk '{printf("\t"); for(i=1;i<=NF;i++) printf("%-15s",$i); printf("\n");}' >> $TEST_RESULT/testresult.log | ||
155 | } | 156 | } |
156 | 157 | ||
157 | # Test_Kill_Qemu to kill child pid with parent pid given | 158 | # Test_Kill_Qemu to kill child pid with parent pid given |
@@ -399,6 +400,7 @@ Test_Create_Qemu() | |||
399 | 400 | ||
400 | # Parse IP address of target from the qemu command line | 401 | # Parse IP address of target from the qemu command line |
401 | if [ ${up_time} -lt ${timeout} ]; then | 402 | if [ ${up_time} -lt ${timeout} ]; then |
403 | sleep 5 | ||
402 | TARGET_IPADDR=`Test_Fetch_Target_IP $PID` | 404 | TARGET_IPADDR=`Test_Fetch_Target_IP $PID` |
403 | fi | 405 | fi |
404 | 406 | ||