1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 17:39:31 +00:00

qemuimagetest: Use same image during sanity testing instead of copying a new image for each case

To reduce the time on sanity testing, we remove variable SHARE_IMAGE and use
a new variable TEST_SERIALIZE in local.conf. It is by default set to 1. Poky
will copy and boot the to-be tested image for only once. It will not remove
or kill the image and test cases will be serialized executed against the same
image. If it is set to 0, image is always be copied for each cases, which takes
much time. I had a experiment that latest qemuppc sato only takes 7 minutes to
finish 9 sanity test cases, which takes more than 20 minutes before.

I also removed sanity case "boot" from sato/sdk/lsb because the other cases for
these targets already cover the check point of "boot".

Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
This commit is contained in:
Jiajun Xu
2011-01-19 00:22:30 +08:00
committed by Richard Purdie
parent 50b2086129
commit 3e052919c9
27 changed files with 140 additions and 89 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
. $POKYBASE/scripts/qemuimage-testlib
TIMEOUT=200
TIMEOUT=400
RET=1
# Start qemu and check its network
+1 -1
View File
@@ -11,7 +11,7 @@
. $POKYBASE/scripts/qemuimage-testlib
TIMEOUT=200
TIMEOUT=400
RET=1
# Start qemu and check its network
+1 -1
View File
@@ -11,7 +11,7 @@
. $POKYBASE/scripts/qemuimage-testlib
TIMEOUT=200
TIMEOUT=400
RET=1
# Start qemu and check its network
+1 -1
View File
@@ -11,7 +11,7 @@
. $POKYBASE/scripts/qemuimage-testlib
TIMEOUT=200
TIMEOUT=400
RET=1
# Start qemu and check its network
+1 -1
View File
@@ -11,7 +11,7 @@
. $POKYBASE/scripts/qemuimage-testlib
TIMEOUT=200
TIMEOUT=400
RET=1
SPID=0
i=0
+6 -5
View File
@@ -13,11 +13,7 @@
. $POKYBASE/scripts/qemuimage-testlib
if [ $SHARE_IMAGE -eq 0 ]; then
TIMEOUT=200
elif [ $SHARE_IMAGE -eq 1 ]; then
TIMEOUT=500
fi
TIMEOUT=400
RET=1
i=0
@@ -66,6 +62,11 @@ fi
if [ ${RET} -eq 0 ]; then
Test_Info "Shutdown Test PASS"
Test_Print_Result "shutdown" 0
# Remove TARGET_IPSAVE since no existing qemu running now
if [ -e ${TARGET_IPSAVE} ]; then
rm -rf ${TARGET_IPSAVE}
fi
exit 0
else
Test_Info "Shutdown Test FAIL"
+1 -1
View File
@@ -11,7 +11,7 @@
. $POKYBASE/scripts/qemuimage-testlib
TIMEOUT=200
TIMEOUT=400
RET=1
# Start qemu and check its network
+1 -1
View File
@@ -11,7 +11,7 @@
. $POKYBASE/scripts/qemuimage-testlib
TIMEOUT=200
TIMEOUT=400
RET=1
# Start qemu and check its network
+1 -1
View File
@@ -11,7 +11,7 @@
. $POKYBASE/scripts/qemuimage-testlib
TIMEOUT=200
TIMEOUT=400
RET=1
# Start qemu and check its network
@@ -1,8 +1,7 @@
sanity shutdown
sanity boot
sanity ssh
sanity scp
sanity dmesg
sanity zypper_help
sanity zypper_search
sanity rpm_query
sanity shutdown
@@ -1,5 +1,3 @@
sanity shutdown
sanity boot
sanity ssh
sanity scp
sanity dmesg
@@ -7,3 +5,4 @@ sanity zypper_help
sanity zypper_search
sanity rpm_query
sanity connman
sanity shutdown
@@ -1,5 +1,3 @@
sanity shutdown
sanity boot
sanity ssh
sanity scp
sanity dmesg
@@ -8,3 +6,4 @@ sanity zypper_search
sanity rpm_query
sanity compiler
sanity connman
sanity shutdown
@@ -1,8 +1,7 @@
sanity shutdown
sanity boot
sanity ssh
sanity scp
sanity dmesg
sanity zypper_help
sanity zypper_search
sanity rpm_query
sanity shutdown
@@ -1,5 +1,3 @@
sanity shutdown
sanity boot
sanity ssh
sanity scp
sanity dmesg
@@ -7,3 +5,4 @@ sanity zypper_help
sanity zypper_search
sanity rpm_query
sanity connman
sanity shutdown
@@ -1,5 +1,3 @@
sanity shutdown
sanity boot
sanity ssh
sanity scp
sanity dmesg
@@ -8,3 +6,4 @@ sanity zypper_search
sanity rpm_query
sanity compiler
sanity connman
sanity shutdown
@@ -1,8 +1,7 @@
sanity shutdown
sanity boot
sanity ssh
sanity scp
sanity dmesg
sanity zypper_help
sanity zypper_search
sanity rpm_query
sanity shutdown
@@ -1,5 +1,3 @@
sanity shutdown
sanity boot
sanity ssh
sanity scp
sanity dmesg
@@ -7,3 +5,4 @@ sanity zypper_help
sanity zypper_search
sanity rpm_query
sanity connman
sanity shutdown
@@ -1,5 +1,3 @@
sanity shutdown
sanity boot
sanity ssh
sanity scp
sanity dmesg
@@ -8,3 +6,4 @@ sanity zypper_search
sanity rpm_query
sanity compiler
sanity connman
sanity shutdown
@@ -1,8 +1,7 @@
sanity shutdown
sanity boot
sanity ssh
sanity scp
sanity dmesg
sanity zypper_help
sanity zypper_search
sanity rpm_query
sanity shutdown
@@ -1,5 +1,3 @@
sanity shutdown
sanity boot
sanity ssh
sanity scp
sanity dmesg
@@ -7,3 +5,4 @@ sanity zypper_help
sanity zypper_search
sanity rpm_query
sanity connman
sanity shutdown
@@ -1,5 +1,3 @@
sanity shutdown
sanity boot
sanity ssh
sanity scp
sanity dmesg
@@ -8,3 +6,4 @@ sanity zypper_search
sanity rpm_query
sanity compiler
sanity connman
sanity shutdown
@@ -1,8 +1,7 @@
sanity shutdown
sanity boot
sanity ssh
sanity scp
sanity dmesg
sanity zypper_help
sanity zypper_search
sanity rpm_query
sanity shutdown
@@ -1,5 +1,3 @@
sanity shutdown
sanity boot
sanity ssh
sanity scp
sanity dmesg
@@ -7,3 +5,4 @@ sanity zypper_help
sanity zypper_search
sanity rpm_query
sanity connman
sanity shutdown
@@ -1,5 +1,3 @@
sanity shutdown
sanity boot
sanity ssh
sanity scp
sanity dmesg
@@ -8,3 +6,4 @@ sanity zypper_search
sanity rpm_query
sanity compiler
sanity connman
sanity shutdown