diff options
27 files changed, 138 insertions, 87 deletions
diff --git a/meta/classes/imagetest-qemu.bbclass b/meta/classes/imagetest-qemu.bbclass index 28bb218272..8301df8452 100644 --- a/meta/classes/imagetest-qemu.bbclass +++ b/meta/classes/imagetest-qemu.bbclass | |||
| @@ -5,7 +5,9 @@ TEST_LOG ?= "${LOG_DIR}/qemuimagetests" | |||
| 5 | TEST_RESULT ?= "${TEST_DIR}/result" | 5 | TEST_RESULT ?= "${TEST_DIR}/result" |
| 6 | TEST_TMP ?= "${TEST_DIR}/tmp" | 6 | TEST_TMP ?= "${TEST_DIR}/tmp" |
| 7 | TEST_SCEN ?= "sanity" | 7 | TEST_SCEN ?= "sanity" |
| 8 | SHARE_IMAGE ?= "1" | 8 | TEST_STATUS ?= "${TEST_TMP}/status" |
| 9 | TARGET_IPSAVE ?= "${TEST_TMP}/target_ip" | ||
| 10 | TEST_SERIALIZE ?= "1" | ||
| 9 | 11 | ||
| 10 | python do_qemuimagetest() { | 12 | python do_qemuimagetest() { |
| 11 | qemuimagetest_main(d) | 13 | qemuimagetest_main(d) |
| @@ -35,6 +37,17 @@ def qemuimagetest_main(d): | |||
| 35 | machine = bb.data.getVar('MACHINE', d, 1) | 37 | machine = bb.data.getVar('MACHINE', d, 1) |
| 36 | pname = bb.data.getVar('PN', d, 1) | 38 | pname = bb.data.getVar('PN', d, 1) |
| 37 | 39 | ||
| 40 | """function to save test cases running status""" | ||
| 41 | def teststatus(test, status, index, length): | ||
| 42 | test_status = bb.data.getVar('TEST_STATUS', d, 1) | ||
| 43 | if not os.path.exists(test_status): | ||
| 44 | raise bb.build.FuncFailed("No test status file existing under TEST_TMP") | ||
| 45 | |||
| 46 | f = open(test_status, "w") | ||
| 47 | f.write("\t%-15s%-15s%-15s%-15s\n" % ("Case", "Status", "Number", "Total")) | ||
| 48 | f.write("\t%-15s%-15s%-15s%-15s\n" % (case, status, index, length)) | ||
| 49 | f.close() | ||
| 50 | |||
| 38 | """funtion to run each case under scenario""" | 51 | """funtion to run each case under scenario""" |
| 39 | def runtest(scen, case, fulltestpath): | 52 | def runtest(scen, case, fulltestpath): |
| 40 | resultpath = bb.data.getVar('TEST_RESULT', d, 1) | 53 | resultpath = bb.data.getVar('TEST_RESULT', d, 1) |
| @@ -56,11 +69,13 @@ def qemuimagetest_main(d): | |||
| 56 | os.environ["DISPLAY"] = bb.data.getVar("DISPLAY", d, True) | 69 | os.environ["DISPLAY"] = bb.data.getVar("DISPLAY", d, True) |
| 57 | os.environ["POKYBASE"] = bb.data.getVar("POKYBASE", d, True) | 70 | os.environ["POKYBASE"] = bb.data.getVar("POKYBASE", d, True) |
| 58 | os.environ["TOPDIR"] = bb.data.getVar("TOPDIR", d, True) | 71 | os.environ["TOPDIR"] = bb.data.getVar("TOPDIR", d, True) |
| 59 | os.environ["SHARE_IMAGE"] = bb.data.getVar("SHARE_IMAGE", d, True) | 72 | os.environ["TEST_STATUS"] = bb.data.getVar("TEST_STATUS", d, True) |
| 73 | os.environ["TARGET_IPSAVE"] = bb.data.getVar("TARGET_IPSAVE", d, True) | ||
| 74 | os.environ["TEST_SERIALIZE"] = bb.data.getVar("TEST_SERIALIZE", d, True) | ||
| 60 | 75 | ||
| 61 | """run Test Case""" | 76 | """run Test Case""" |
| 62 | bb.note("Run %s test in scenario %s" % (case, scen)) | 77 | bb.note("Run %s test in scenario %s" % (case, scen)) |
| 63 | os.system("%s | tee -a %s" % (fulltestpath, caselog)) | 78 | os.system("%s" % fulltestpath) |
| 64 | 79 | ||
| 65 | """Generate testcase list in runtime""" | 80 | """Generate testcase list in runtime""" |
| 66 | def generate_list(testlist): | 81 | def generate_list(testlist): |
| @@ -119,7 +134,13 @@ def qemuimagetest_main(d): | |||
| 119 | 134 | ||
| 120 | tmppath = bb.data.getVar('TEST_TMP', d, 1) | 135 | tmppath = bb.data.getVar('TEST_TMP', d, 1) |
| 121 | bb.utils.mkdirhier(tmppath) | 136 | bb.utils.mkdirhier(tmppath) |
| 122 | 137 | ||
| 138 | """initialize test status file""" | ||
| 139 | test_status = bb.data.getVar('TEST_STATUS', d, 1) | ||
| 140 | if os.path.exists(test_status): | ||
| 141 | os.remove(test_status) | ||
| 142 | os.system("touch %s" % test_status) | ||
| 143 | |||
| 123 | """initialize result file""" | 144 | """initialize result file""" |
| 124 | resultpath = bb.data.getVar('TEST_RESULT', d, 1) | 145 | resultpath = bb.data.getVar('TEST_RESULT', d, 1) |
| 125 | bb.utils.mkdirhier(resultpath) | 146 | bb.utils.mkdirhier(resultpath) |
| @@ -142,9 +163,11 @@ def qemuimagetest_main(d): | |||
| 142 | fulllist = generate_list(testlist) | 163 | fulllist = generate_list(testlist) |
| 143 | 164 | ||
| 144 | """Begin testing""" | 165 | """Begin testing""" |
| 145 | for test in fulllist: | 166 | for index,test in enumerate(fulllist): |
| 146 | (scen, case, fullpath) = test | 167 | (scen, case, fullpath) = test |
| 168 | teststatus(case, "running", index, (len(fulllist) - 1)) | ||
| 147 | runtest(scen, case, fullpath) | 169 | runtest(scen, case, fullpath) |
| 170 | teststatus(case, "finished", index, (len(fulllist) - 1)) | ||
| 148 | 171 | ||
| 149 | """Print Test Result""" | 172 | """Print Test Result""" |
| 150 | ret = 0 | 173 | ret = 0 |
diff --git a/meta/conf/local.conf.sample b/meta/conf/local.conf.sample index cb0e54887f..4567a828ff 100644 --- a/meta/conf/local.conf.sample +++ b/meta/conf/local.conf.sample | |||
| @@ -158,11 +158,11 @@ ENABLE_BINARY_LOCALE_GENERATION = "1" | |||
| 158 | 158 | ||
| 159 | #Because of the QEMU booting slowness issue(see bug #646 and #618), autobuilder | 159 | #Because of the QEMU booting slowness issue(see bug #646 and #618), autobuilder |
| 160 | #may suffer a timeout issue when running sanity test. We introduce variable | 160 | #may suffer a timeout issue when running sanity test. We introduce variable |
| 161 | #SHARE_IMAGE here to fix the issue. It is by default set to 1. Poky will copy | 161 | #TEST_SERIALIZE here to reduce the time on sanity test. It is by default set |
| 162 | #latest built-out image and keep using it in sanity testing. If it is set to 0, | 162 | #to 1. Poky will start image and run cases in the same image without reboot |
| 163 | #latest built-out image will be copied and tested for each case, which will take | 163 | #or kill. If it is set to 0, the image will be copied and tested for each |
| 164 | #much time. | 164 | #case, which will take much time. |
| 165 | #SHARE_IMAGE = "1" | 165 | #TEST_SERIALIZE = "1" |
| 166 | 166 | ||
| 167 | # Set GLIBC_GENERATE_LOCALES to the locales you wish to generate should you not | 167 | # Set GLIBC_GENERATE_LOCALES to the locales you wish to generate should you not |
| 168 | # wish to perform the time-consuming step of generating all LIBC locales. | 168 | # wish to perform the time-consuming step of generating all LIBC locales. |
diff --git a/scripts/qemuimage-testlib b/scripts/qemuimage-testlib index b9afcf5bb6..823cbfa18b 100644 --- a/scripts/qemuimage-testlib +++ b/scripts/qemuimage-testlib | |||
| @@ -39,6 +39,19 @@ Test_Info() | |||
| 39 | echo -e "\tTest_Info: $*" | 39 | echo -e "\tTest_Info: $*" |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | # function to update target ip address | ||
| 43 | # $1 is the process id of the process, which starts the qemu target | ||
| 44 | # $2 is the ip address of the target | ||
| 45 | Test_Update_IPSAVE() | ||
| 46 | { | ||
| 47 | local pid=$1 | ||
| 48 | local ip_addr=$2 | ||
| 49 | |||
| 50 | if [ "$TEST_SERIALIZE" -eq 1 ]; then | ||
| 51 | echo "$pid $ip_addr" > $TARGET_IPSAVE | ||
| 52 | fi | ||
| 53 | } | ||
| 54 | |||
| 42 | # function to copy files from host into target | 55 | # function to copy files from host into target |
| 43 | # $1 is the ip address of target | 56 | # $1 is the ip address of target |
| 44 | # $2 is the files, which need to be copied into target | 57 | # $2 is the files, which need to be copied into target |
| @@ -99,6 +112,11 @@ Test_SSH_UP() | |||
| 99 | local timeout=$2 | 112 | local timeout=$2 |
| 100 | local interval=0 | 113 | local interval=0 |
| 101 | 114 | ||
| 115 | # If TEST_SERIALIZE is set, use existing running qemu for testing | ||
| 116 | if [ ${TEST_SERIALIZE} -eq 1 -a -e ${TARGET_IPSAVE} ]; then | ||
| 117 | timeout=50 | ||
| 118 | fi | ||
| 119 | |||
| 102 | while [ ${interval} -lt ${timeout} ] | 120 | while [ ${interval} -lt ${timeout} ] |
| 103 | do | 121 | do |
| 104 | Test_SSH ${ip_addr} "hostname" | 122 | Test_SSH ${ip_addr} "hostname" |
| @@ -106,13 +124,13 @@ Test_SSH_UP() | |||
| 106 | interval=`expr $interval + 10` | 124 | interval=`expr $interval + 10` |
| 107 | sleep 10 | 125 | sleep 10 |
| 108 | else | 126 | else |
| 109 | Test_Info "We can ssh on ${ip_addr} now" | 127 | Test_Info "We can ssh on ${ip_addr} within ${interval} seconds" |
| 110 | return 0 | 128 | return 0 |
| 111 | fi | 129 | fi |
| 112 | 130 | ||
| 113 | done | 131 | done |
| 114 | 132 | ||
| 115 | Test_Info "We can not ssh on ${ip_addr} in ${timeout}" | 133 | Test_Info "We can not ssh on ${ip_addr} in ${timeout} seconds" |
| 116 | return 1 | 134 | return 1 |
| 117 | } | 135 | } |
| 118 | 136 | ||
| @@ -162,6 +180,8 @@ Test_Kill_Qemu() | |||
| 162 | local ret=0 | 180 | local ret=0 |
| 163 | local ppid=0 | 181 | local ppid=0 |
| 164 | local i=0 | 182 | local i=0 |
| 183 | local index=0 | ||
| 184 | local total=0 | ||
| 165 | declare local pid | 185 | declare local pid |
| 166 | 186 | ||
| 167 | # Check if $1 pid exists and is a qemu process | 187 | # Check if $1 pid exists and is a qemu process |
| @@ -186,16 +206,39 @@ Test_Kill_Qemu() | |||
| 186 | ret=$? | 206 | ret=$? |
| 187 | done | 207 | done |
| 188 | 208 | ||
| 189 | # Kill these children pids from the last one | 209 | # When TEST_SERIALIZE is set, qemu process will not be |
| 190 | while [ $i -ne 0 ] | 210 | # killed until all the cases are finished |
| 191 | do | 211 | if [ ${TEST_SERIALIZE} -eq 1 -a -e ${TEST_STATUS} ]; then |
| 192 | i=$((i-1)) | 212 | index=`sed -n 2p ${TEST_STATUS} | awk '{print $3}'` |
| 193 | kill ${pid[$i]} | 213 | total=`sed -n 2p ${TEST_STATUS} | awk '{print $4}'` |
| 194 | sleep 2 | 214 | if [ ${index} != ${total} ]; then |
| 195 | done | 215 | Test_Info "Do not kill the qemu process and use it for later testing" |
| 216 | Test_Update_IPSAVE $PID $TARGET_IPADDR | ||
| 217 | else | ||
| 218 | # If it is the last case, let's kill it | ||
| 219 | while [ $i -ne 0 ] | ||
| 220 | do | ||
| 221 | i=$((i-1)) | ||
| 222 | kill ${pid[$i]} | ||
| 223 | sleep 2 | ||
| 224 | done | ||
| 225 | |||
| 226 | # Kill the parent id | ||
| 227 | kill $PID | ||
| 228 | fi | ||
| 196 | 229 | ||
| 197 | # Kill the parent id | 230 | else |
| 198 | kill $PID | 231 | # Kill these children pids from the last one |
| 232 | while [ $i -ne 0 ] | ||
| 233 | do | ||
| 234 | i=$((i-1)) | ||
| 235 | kill ${pid[$i]} | ||
| 236 | sleep 2 | ||
| 237 | done | ||
| 238 | |||
| 239 | # Kill the parent id | ||
| 240 | kill $PID | ||
| 241 | fi | ||
| 199 | fi | 242 | fi |
| 200 | 243 | ||
| 201 | return | 244 | return |
| @@ -209,7 +252,7 @@ Test_Check_Qemu_UP() | |||
| 209 | Test_Info "There is no Qemu process" | 252 | Test_Info "There is no Qemu process" |
| 210 | return 1 | 253 | return 1 |
| 211 | else | 254 | else |
| 212 | Test_Info "There is at least Qemu process running" | 255 | Test_Info "There is at least one Qemu process running" |
| 213 | return 0 | 256 | return 0 |
| 214 | fi | 257 | fi |
| 215 | } | 258 | } |
| @@ -384,31 +427,29 @@ Test_Create_Qemu() | |||
| 384 | 427 | ||
| 385 | CP=`which cp` | 428 | CP=`which cp` |
| 386 | 429 | ||
| 387 | # When SHARE_IMAGE is set, we use the existing image under tmp folder | 430 | # When TEST_SERIALIZE is set, we use the existing image under tmp folder |
| 388 | if [ -e "$TEST_ROOTFS_IMAGE" ]; then | 431 | if [ ${TEST_SERIALIZE} -eq 1 -a -e "$TARGET_IPSAVE" ]; then |
| 389 | if [ ${SHARE_IMAGE} -eq 1 ]; then | 432 | # If TARGET_IPSAVE exists, check PID of the qemu process from it |
| 390 | ROOTFS_IMAGE="$TEST_ROOTFS_IMAGE" | 433 | PID=`awk '{print $1}' $TARGET_IPSAVE` |
| 391 | TEST_ROOTFS_IMAGE="${TEST_TMP}/${QEMUTARGET}-${QEMUARCH}-shared-test.ext3" | 434 | timeout=50 |
| 392 | fi | 435 | else |
| 393 | rm -rf $TEST_ROOTFS_IMAGE | 436 | rm -rf $TEST_ROOTFS_IMAGE |
| 394 | fi | 437 | $CP $ROOTFS_IMAGE $TEST_ROOTFS_IMAGE |
| 438 | if [ $? -ne 0 ]; then | ||
| 439 | Test_Info "Image ${ROOTFS_IMAGE} copy to ${TEST_ROOTFS_IMAGE} failed, return fail" | ||
| 440 | return $ret | ||
| 441 | fi | ||
| 395 | 442 | ||
| 396 | $CP $ROOTFS_IMAGE $TEST_ROOTFS_IMAGE | 443 | export MACHINE=$QEMUARCH |
| 397 | 444 | ||
| 398 | if [ $? -ne 0 ]; then | 445 | # Create Qemu in localhost VNC Port 1 |
| 399 | Test_Info "Image ${ROOTFS_IMAGE} copy to ${TEST_ROOTFS_IMAGE} failed, return fail" | 446 | echo "Running xterm -display ${DISPLAY} -e 'BUILDDIR=${TOPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE}' &" |
| 400 | return $ret | 447 | xterm -display ${DISPLAY} -e "BUILDDIR=${TOPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE}" & |
| 448 | |||
| 449 | # Get the pid of the xterm processor, which will be used in Test_Kill_Qemu | ||
| 450 | PID=$! | ||
| 401 | fi | 451 | fi |
| 402 | 452 | ||
| 403 | export MACHINE=$QEMUARCH | ||
| 404 | |||
| 405 | # Create Qemu in localhost VNC Port 1 | ||
| 406 | echo "Running xterm -display ${DISPLAY} -e 'BUILDDIR=${TOPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE}' &" | ||
| 407 | xterm -display ${DISPLAY} -e "BUILDDIR=${TOPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE}" & | ||
| 408 | |||
| 409 | # Get the pid of the xterm processor, which will be used in Test_Kill_Qemu | ||
| 410 | PID=$! | ||
| 411 | |||
| 412 | while [ ${up_time} -lt 10 ] | 453 | while [ ${up_time} -lt 10 ] |
| 413 | do | 454 | do |
| 414 | Test_Check_Qemu_UP | 455 | Test_Check_Qemu_UP |
| @@ -437,7 +478,7 @@ Test_Create_Qemu() | |||
| 437 | do | 478 | do |
| 438 | Test_Check_IP_UP ${TARGET_IPADDR} | 479 | Test_Check_IP_UP ${TARGET_IPADDR} |
| 439 | if [ $? -eq 0 ]; then | 480 | if [ $? -eq 0 ]; then |
| 440 | Test_Info "Qemu Network is up, ping with ${TARGET_IPADDR} is OK" | 481 | Test_Info "Qemu Network is up, ping with ${TARGET_IPADDR} is OK within ${up_time} seconds" |
| 441 | ret=0 | 482 | ret=0 |
| 442 | break | 483 | break |
| 443 | else | 484 | else |
| @@ -451,7 +492,8 @@ Test_Create_Qemu() | |||
| 451 | Test_Info "Qemu and its network is up" | 492 | Test_Info "Qemu and its network is up" |
| 452 | return $ret | 493 | return $ret |
| 453 | else | 494 | else |
| 454 | Test_Info "Qemu or its network is not up in ${timeout}" | 495 | Test_Info "Qemu or its network is not up in ${timeout} seconds" |
| 496 | Test_Update_IPSAVE $PID $TARGET_IPADDR | ||
| 455 | return $ret | 497 | return $ret |
| 456 | fi | 498 | fi |
| 457 | } | 499 | } |
diff --git a/scripts/qemuimage-tests/sanity/compiler b/scripts/qemuimage-tests/sanity/compiler index d3168a973c..29dbfd9bb9 100755 --- a/scripts/qemuimage-tests/sanity/compiler +++ b/scripts/qemuimage-tests/sanity/compiler | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | . $POKYBASE/scripts/qemuimage-testlib | 12 | . $POKYBASE/scripts/qemuimage-testlib |
| 13 | 13 | ||
| 14 | TIMEOUT=200 | 14 | TIMEOUT=400 |
| 15 | RET=1 | 15 | RET=1 |
| 16 | 16 | ||
| 17 | # Start qemu and check its network | 17 | # Start qemu and check its network |
diff --git a/scripts/qemuimage-tests/sanity/connman b/scripts/qemuimage-tests/sanity/connman index 6e19b81b16..fca6a27845 100755 --- a/scripts/qemuimage-tests/sanity/connman +++ b/scripts/qemuimage-tests/sanity/connman | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | . $POKYBASE/scripts/qemuimage-testlib | 12 | . $POKYBASE/scripts/qemuimage-testlib |
| 13 | 13 | ||
| 14 | TIMEOUT=200 | 14 | TIMEOUT=400 |
| 15 | RET=1 | 15 | RET=1 |
| 16 | 16 | ||
| 17 | # Start qemu and check its network | 17 | # Start qemu and check its network |
diff --git a/scripts/qemuimage-tests/sanity/dmesg b/scripts/qemuimage-tests/sanity/dmesg index d98d7aff84..5ed31b735f 100755 --- a/scripts/qemuimage-tests/sanity/dmesg +++ b/scripts/qemuimage-tests/sanity/dmesg | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | . $POKYBASE/scripts/qemuimage-testlib | 12 | . $POKYBASE/scripts/qemuimage-testlib |
| 13 | 13 | ||
| 14 | TIMEOUT=200 | 14 | TIMEOUT=400 |
| 15 | RET=1 | 15 | RET=1 |
| 16 | 16 | ||
| 17 | # Start qemu and check its network | 17 | # Start qemu and check its network |
diff --git a/scripts/qemuimage-tests/sanity/rpm_query b/scripts/qemuimage-tests/sanity/rpm_query index 7663901962..08017ffbe6 100755 --- a/scripts/qemuimage-tests/sanity/rpm_query +++ b/scripts/qemuimage-tests/sanity/rpm_query | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | . $POKYBASE/scripts/qemuimage-testlib | 12 | . $POKYBASE/scripts/qemuimage-testlib |
| 13 | 13 | ||
| 14 | TIMEOUT=200 | 14 | TIMEOUT=400 |
| 15 | RET=1 | 15 | RET=1 |
| 16 | 16 | ||
| 17 | # Start qemu and check its network | 17 | # Start qemu and check its network |
diff --git a/scripts/qemuimage-tests/sanity/scp b/scripts/qemuimage-tests/sanity/scp index ca19857928..c72cdc9d65 100755 --- a/scripts/qemuimage-tests/sanity/scp +++ b/scripts/qemuimage-tests/sanity/scp | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | . $POKYBASE/scripts/qemuimage-testlib | 12 | . $POKYBASE/scripts/qemuimage-testlib |
| 13 | 13 | ||
| 14 | TIMEOUT=200 | 14 | TIMEOUT=400 |
| 15 | RET=1 | 15 | RET=1 |
| 16 | SPID=0 | 16 | SPID=0 |
| 17 | i=0 | 17 | i=0 |
diff --git a/scripts/qemuimage-tests/sanity/shutdown b/scripts/qemuimage-tests/sanity/shutdown index dde03c9a10..bc08cf0fdc 100755 --- a/scripts/qemuimage-tests/sanity/shutdown +++ b/scripts/qemuimage-tests/sanity/shutdown | |||
| @@ -13,11 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | . $POKYBASE/scripts/qemuimage-testlib | 14 | . $POKYBASE/scripts/qemuimage-testlib |
| 15 | 15 | ||
| 16 | if [ $SHARE_IMAGE -eq 0 ]; then | 16 | TIMEOUT=400 |
| 17 | TIMEOUT=200 | ||
| 18 | elif [ $SHARE_IMAGE -eq 1 ]; then | ||
| 19 | TIMEOUT=500 | ||
| 20 | fi | ||
| 21 | 17 | ||
| 22 | RET=1 | 18 | RET=1 |
| 23 | i=0 | 19 | i=0 |
| @@ -66,6 +62,11 @@ fi | |||
| 66 | if [ ${RET} -eq 0 ]; then | 62 | if [ ${RET} -eq 0 ]; then |
| 67 | Test_Info "Shutdown Test PASS" | 63 | Test_Info "Shutdown Test PASS" |
| 68 | Test_Print_Result "shutdown" 0 | 64 | Test_Print_Result "shutdown" 0 |
| 65 | |||
| 66 | # Remove TARGET_IPSAVE since no existing qemu running now | ||
| 67 | if [ -e ${TARGET_IPSAVE} ]; then | ||
| 68 | rm -rf ${TARGET_IPSAVE} | ||
| 69 | fi | ||
| 69 | exit 0 | 70 | exit 0 |
| 70 | else | 71 | else |
| 71 | Test_Info "Shutdown Test FAIL" | 72 | Test_Info "Shutdown Test FAIL" |
diff --git a/scripts/qemuimage-tests/sanity/ssh b/scripts/qemuimage-tests/sanity/ssh index e0ade72ca3..2a0e934392 100755 --- a/scripts/qemuimage-tests/sanity/ssh +++ b/scripts/qemuimage-tests/sanity/ssh | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | . $POKYBASE/scripts/qemuimage-testlib | 12 | . $POKYBASE/scripts/qemuimage-testlib |
| 13 | 13 | ||
| 14 | TIMEOUT=200 | 14 | TIMEOUT=400 |
| 15 | RET=1 | 15 | RET=1 |
| 16 | 16 | ||
| 17 | # Start qemu and check its network | 17 | # Start qemu and check its network |
diff --git a/scripts/qemuimage-tests/sanity/zypper_help b/scripts/qemuimage-tests/sanity/zypper_help index 48e121c9e1..1ab6d2407f 100755 --- a/scripts/qemuimage-tests/sanity/zypper_help +++ b/scripts/qemuimage-tests/sanity/zypper_help | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | . $POKYBASE/scripts/qemuimage-testlib | 12 | . $POKYBASE/scripts/qemuimage-testlib |
| 13 | 13 | ||
| 14 | TIMEOUT=200 | 14 | TIMEOUT=400 |
| 15 | RET=1 | 15 | RET=1 |
| 16 | 16 | ||
| 17 | # Start qemu and check its network | 17 | # Start qemu and check its network |
diff --git a/scripts/qemuimage-tests/sanity/zypper_search b/scripts/qemuimage-tests/sanity/zypper_search index 9ae69ebf1f..d6bcd27a34 100755 --- a/scripts/qemuimage-tests/sanity/zypper_search +++ b/scripts/qemuimage-tests/sanity/zypper_search | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | . $POKYBASE/scripts/qemuimage-testlib | 12 | . $POKYBASE/scripts/qemuimage-testlib |
| 13 | 13 | ||
| 14 | TIMEOUT=200 | 14 | TIMEOUT=400 |
| 15 | RET=1 | 15 | RET=1 |
| 16 | 16 | ||
| 17 | # Start qemu and check its network | 17 | # Start qemu and check its network |
diff --git a/scripts/qemuimage-tests/scenario/qemuarm/poky-image-lsb b/scripts/qemuimage-tests/scenario/qemuarm/poky-image-lsb index 0eb1926cfd..4fa6068768 100644 --- a/scripts/qemuimage-tests/scenario/qemuarm/poky-image-lsb +++ b/scripts/qemuimage-tests/scenario/qemuarm/poky-image-lsb | |||
| @@ -1,8 +1,7 @@ | |||
| 1 | sanity shutdown | ||
| 2 | sanity boot | ||
| 3 | sanity ssh | 1 | sanity ssh |
| 4 | sanity scp | 2 | sanity scp |
| 5 | sanity dmesg | 3 | sanity dmesg |
| 6 | sanity zypper_help | 4 | sanity zypper_help |
| 7 | sanity zypper_search | 5 | sanity zypper_search |
| 8 | sanity rpm_query | 6 | sanity rpm_query |
| 7 | sanity shutdown | ||
diff --git a/scripts/qemuimage-tests/scenario/qemuarm/poky-image-sato b/scripts/qemuimage-tests/scenario/qemuarm/poky-image-sato index b60a89af51..7a6353e1af 100644 --- a/scripts/qemuimage-tests/scenario/qemuarm/poky-image-sato +++ b/scripts/qemuimage-tests/scenario/qemuarm/poky-image-sato | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | sanity shutdown | ||
| 2 | sanity boot | ||
| 3 | sanity ssh | 1 | sanity ssh |
| 4 | sanity scp | 2 | sanity scp |
| 5 | sanity dmesg | 3 | sanity dmesg |
| @@ -7,3 +5,4 @@ sanity zypper_help | |||
| 7 | sanity zypper_search | 5 | sanity zypper_search |
| 8 | sanity rpm_query | 6 | sanity rpm_query |
| 9 | sanity connman | 7 | sanity connman |
| 8 | sanity shutdown | ||
diff --git a/scripts/qemuimage-tests/scenario/qemuarm/poky-image-sdk b/scripts/qemuimage-tests/scenario/qemuarm/poky-image-sdk index 53c9ad591e..42b8e19026 100644 --- a/scripts/qemuimage-tests/scenario/qemuarm/poky-image-sdk +++ b/scripts/qemuimage-tests/scenario/qemuarm/poky-image-sdk | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | sanity shutdown | ||
| 2 | sanity boot | ||
| 3 | sanity ssh | 1 | sanity ssh |
| 4 | sanity scp | 2 | sanity scp |
| 5 | sanity dmesg | 3 | sanity dmesg |
| @@ -8,3 +6,4 @@ sanity zypper_search | |||
| 8 | sanity rpm_query | 6 | sanity rpm_query |
| 9 | sanity compiler | 7 | sanity compiler |
| 10 | sanity connman | 8 | sanity connman |
| 9 | sanity shutdown | ||
diff --git a/scripts/qemuimage-tests/scenario/qemumips/poky-image-lsb b/scripts/qemuimage-tests/scenario/qemumips/poky-image-lsb index 0eb1926cfd..4fa6068768 100644 --- a/scripts/qemuimage-tests/scenario/qemumips/poky-image-lsb +++ b/scripts/qemuimage-tests/scenario/qemumips/poky-image-lsb | |||
| @@ -1,8 +1,7 @@ | |||
| 1 | sanity shutdown | ||
| 2 | sanity boot | ||
| 3 | sanity ssh | 1 | sanity ssh |
| 4 | sanity scp | 2 | sanity scp |
| 5 | sanity dmesg | 3 | sanity dmesg |
| 6 | sanity zypper_help | 4 | sanity zypper_help |
| 7 | sanity zypper_search | 5 | sanity zypper_search |
| 8 | sanity rpm_query | 6 | sanity rpm_query |
| 7 | sanity shutdown | ||
diff --git a/scripts/qemuimage-tests/scenario/qemumips/poky-image-sato b/scripts/qemuimage-tests/scenario/qemumips/poky-image-sato index b60a89af51..7a6353e1af 100644 --- a/scripts/qemuimage-tests/scenario/qemumips/poky-image-sato +++ b/scripts/qemuimage-tests/scenario/qemumips/poky-image-sato | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | sanity shutdown | ||
| 2 | sanity boot | ||
| 3 | sanity ssh | 1 | sanity ssh |
| 4 | sanity scp | 2 | sanity scp |
| 5 | sanity dmesg | 3 | sanity dmesg |
| @@ -7,3 +5,4 @@ sanity zypper_help | |||
| 7 | sanity zypper_search | 5 | sanity zypper_search |
| 8 | sanity rpm_query | 6 | sanity rpm_query |
| 9 | sanity connman | 7 | sanity connman |
| 8 | sanity shutdown | ||
diff --git a/scripts/qemuimage-tests/scenario/qemumips/poky-image-sdk b/scripts/qemuimage-tests/scenario/qemumips/poky-image-sdk index 53c9ad591e..42b8e19026 100644 --- a/scripts/qemuimage-tests/scenario/qemumips/poky-image-sdk +++ b/scripts/qemuimage-tests/scenario/qemumips/poky-image-sdk | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | sanity shutdown | ||
| 2 | sanity boot | ||
| 3 | sanity ssh | 1 | sanity ssh |
| 4 | sanity scp | 2 | sanity scp |
| 5 | sanity dmesg | 3 | sanity dmesg |
| @@ -8,3 +6,4 @@ sanity zypper_search | |||
| 8 | sanity rpm_query | 6 | sanity rpm_query |
| 9 | sanity compiler | 7 | sanity compiler |
| 10 | sanity connman | 8 | sanity connman |
| 9 | sanity shutdown | ||
diff --git a/scripts/qemuimage-tests/scenario/qemuppc/poky-image-lsb b/scripts/qemuimage-tests/scenario/qemuppc/poky-image-lsb index 0eb1926cfd..4fa6068768 100644 --- a/scripts/qemuimage-tests/scenario/qemuppc/poky-image-lsb +++ b/scripts/qemuimage-tests/scenario/qemuppc/poky-image-lsb | |||
| @@ -1,8 +1,7 @@ | |||
| 1 | sanity shutdown | ||
| 2 | sanity boot | ||
| 3 | sanity ssh | 1 | sanity ssh |
| 4 | sanity scp | 2 | sanity scp |
| 5 | sanity dmesg | 3 | sanity dmesg |
| 6 | sanity zypper_help | 4 | sanity zypper_help |
| 7 | sanity zypper_search | 5 | sanity zypper_search |
| 8 | sanity rpm_query | 6 | sanity rpm_query |
| 7 | sanity shutdown | ||
diff --git a/scripts/qemuimage-tests/scenario/qemuppc/poky-image-sato b/scripts/qemuimage-tests/scenario/qemuppc/poky-image-sato index b60a89af51..7a6353e1af 100644 --- a/scripts/qemuimage-tests/scenario/qemuppc/poky-image-sato +++ b/scripts/qemuimage-tests/scenario/qemuppc/poky-image-sato | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | sanity shutdown | ||
| 2 | sanity boot | ||
| 3 | sanity ssh | 1 | sanity ssh |
| 4 | sanity scp | 2 | sanity scp |
| 5 | sanity dmesg | 3 | sanity dmesg |
| @@ -7,3 +5,4 @@ sanity zypper_help | |||
| 7 | sanity zypper_search | 5 | sanity zypper_search |
| 8 | sanity rpm_query | 6 | sanity rpm_query |
| 9 | sanity connman | 7 | sanity connman |
| 8 | sanity shutdown | ||
diff --git a/scripts/qemuimage-tests/scenario/qemuppc/poky-image-sdk b/scripts/qemuimage-tests/scenario/qemuppc/poky-image-sdk index 53c9ad591e..42b8e19026 100644 --- a/scripts/qemuimage-tests/scenario/qemuppc/poky-image-sdk +++ b/scripts/qemuimage-tests/scenario/qemuppc/poky-image-sdk | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | sanity shutdown | ||
| 2 | sanity boot | ||
| 3 | sanity ssh | 1 | sanity ssh |
| 4 | sanity scp | 2 | sanity scp |
| 5 | sanity dmesg | 3 | sanity dmesg |
| @@ -8,3 +6,4 @@ sanity zypper_search | |||
| 8 | sanity rpm_query | 6 | sanity rpm_query |
| 9 | sanity compiler | 7 | sanity compiler |
| 10 | sanity connman | 8 | sanity connman |
| 9 | sanity shutdown | ||
diff --git a/scripts/qemuimage-tests/scenario/qemux86-64/poky-image-lsb b/scripts/qemuimage-tests/scenario/qemux86-64/poky-image-lsb index 0eb1926cfd..4fa6068768 100644 --- a/scripts/qemuimage-tests/scenario/qemux86-64/poky-image-lsb +++ b/scripts/qemuimage-tests/scenario/qemux86-64/poky-image-lsb | |||
| @@ -1,8 +1,7 @@ | |||
| 1 | sanity shutdown | ||
| 2 | sanity boot | ||
| 3 | sanity ssh | 1 | sanity ssh |
| 4 | sanity scp | 2 | sanity scp |
| 5 | sanity dmesg | 3 | sanity dmesg |
| 6 | sanity zypper_help | 4 | sanity zypper_help |
| 7 | sanity zypper_search | 5 | sanity zypper_search |
| 8 | sanity rpm_query | 6 | sanity rpm_query |
| 7 | sanity shutdown | ||
diff --git a/scripts/qemuimage-tests/scenario/qemux86-64/poky-image-sato b/scripts/qemuimage-tests/scenario/qemux86-64/poky-image-sato index b60a89af51..7a6353e1af 100644 --- a/scripts/qemuimage-tests/scenario/qemux86-64/poky-image-sato +++ b/scripts/qemuimage-tests/scenario/qemux86-64/poky-image-sato | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | sanity shutdown | ||
| 2 | sanity boot | ||
| 3 | sanity ssh | 1 | sanity ssh |
| 4 | sanity scp | 2 | sanity scp |
| 5 | sanity dmesg | 3 | sanity dmesg |
| @@ -7,3 +5,4 @@ sanity zypper_help | |||
| 7 | sanity zypper_search | 5 | sanity zypper_search |
| 8 | sanity rpm_query | 6 | sanity rpm_query |
| 9 | sanity connman | 7 | sanity connman |
| 8 | sanity shutdown | ||
diff --git a/scripts/qemuimage-tests/scenario/qemux86-64/poky-image-sdk b/scripts/qemuimage-tests/scenario/qemux86-64/poky-image-sdk index 53c9ad591e..42b8e19026 100644 --- a/scripts/qemuimage-tests/scenario/qemux86-64/poky-image-sdk +++ b/scripts/qemuimage-tests/scenario/qemux86-64/poky-image-sdk | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | sanity shutdown | ||
| 2 | sanity boot | ||
| 3 | sanity ssh | 1 | sanity ssh |
| 4 | sanity scp | 2 | sanity scp |
| 5 | sanity dmesg | 3 | sanity dmesg |
| @@ -8,3 +6,4 @@ sanity zypper_search | |||
| 8 | sanity rpm_query | 6 | sanity rpm_query |
| 9 | sanity compiler | 7 | sanity compiler |
| 10 | sanity connman | 8 | sanity connman |
| 9 | sanity shutdown | ||
diff --git a/scripts/qemuimage-tests/scenario/qemux86/poky-image-lsb b/scripts/qemuimage-tests/scenario/qemux86/poky-image-lsb index 0eb1926cfd..4fa6068768 100644 --- a/scripts/qemuimage-tests/scenario/qemux86/poky-image-lsb +++ b/scripts/qemuimage-tests/scenario/qemux86/poky-image-lsb | |||
| @@ -1,8 +1,7 @@ | |||
| 1 | sanity shutdown | ||
| 2 | sanity boot | ||
| 3 | sanity ssh | 1 | sanity ssh |
| 4 | sanity scp | 2 | sanity scp |
| 5 | sanity dmesg | 3 | sanity dmesg |
| 6 | sanity zypper_help | 4 | sanity zypper_help |
| 7 | sanity zypper_search | 5 | sanity zypper_search |
| 8 | sanity rpm_query | 6 | sanity rpm_query |
| 7 | sanity shutdown | ||
diff --git a/scripts/qemuimage-tests/scenario/qemux86/poky-image-sato b/scripts/qemuimage-tests/scenario/qemux86/poky-image-sato index b60a89af51..7a6353e1af 100644 --- a/scripts/qemuimage-tests/scenario/qemux86/poky-image-sato +++ b/scripts/qemuimage-tests/scenario/qemux86/poky-image-sato | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | sanity shutdown | ||
| 2 | sanity boot | ||
| 3 | sanity ssh | 1 | sanity ssh |
| 4 | sanity scp | 2 | sanity scp |
| 5 | sanity dmesg | 3 | sanity dmesg |
| @@ -7,3 +5,4 @@ sanity zypper_help | |||
| 7 | sanity zypper_search | 5 | sanity zypper_search |
| 8 | sanity rpm_query | 6 | sanity rpm_query |
| 9 | sanity connman | 7 | sanity connman |
| 8 | sanity shutdown | ||
diff --git a/scripts/qemuimage-tests/scenario/qemux86/poky-image-sdk b/scripts/qemuimage-tests/scenario/qemux86/poky-image-sdk index 53c9ad591e..42b8e19026 100644 --- a/scripts/qemuimage-tests/scenario/qemux86/poky-image-sdk +++ b/scripts/qemuimage-tests/scenario/qemux86/poky-image-sdk | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | sanity shutdown | ||
| 2 | sanity boot | ||
| 3 | sanity ssh | 1 | sanity ssh |
| 4 | sanity scp | 2 | sanity scp |
| 5 | sanity dmesg | 3 | sanity dmesg |
| @@ -8,3 +6,4 @@ sanity zypper_search | |||
| 8 | sanity rpm_query | 6 | sanity rpm_query |
| 9 | sanity compiler | 7 | sanity compiler |
| 10 | sanity connman | 8 | sanity connman |
| 9 | sanity shutdown | ||
