diff options
-rw-r--r-- | meta/classes/imagetest-qemu.bbclass | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/meta/classes/imagetest-qemu.bbclass b/meta/classes/imagetest-qemu.bbclass index 07bdf01340..4b3ddfc362 100644 --- a/meta/classes/imagetest-qemu.bbclass +++ b/meta/classes/imagetest-qemu.bbclass | |||
@@ -1,8 +1,3 @@ | |||
1 | addtask qemuimagetest before do_build | ||
2 | # after do_rootfs | ||
3 | do_qemuimagetest[nostamp] = "1" | ||
4 | do_qemuimagetest[depends] += "qemu-native:do_populate_sysroot" | ||
5 | |||
6 | # Test related variables | 1 | # Test related variables |
7 | # By default, TEST_DIR is created under WORKDIR | 2 | # By default, TEST_DIR is created under WORKDIR |
8 | TEST_DIR ?= "${WORKDIR}/qemuimagetest" | 3 | TEST_DIR ?= "${WORKDIR}/qemuimagetest" |
@@ -12,6 +7,20 @@ TEST_TMP ?= "${TEST_DIR}/tmp" | |||
12 | TEST_SCEN ?= "sanity" | 7 | TEST_SCEN ?= "sanity" |
13 | 8 | ||
14 | python do_qemuimagetest() { | 9 | python do_qemuimagetest() { |
10 | qemuimagetest_main(d) | ||
11 | } | ||
12 | addtask qemuimagetest before do_build after do_rootfs | ||
13 | do_qemuimagetest[nostamp] = "1" | ||
14 | do_qemuimagetest[depends] += "qemu-native:do_populate_sysroot" | ||
15 | |||
16 | python do_qemuimagetest_standalone() { | ||
17 | qemuimagetest_main(d) | ||
18 | } | ||
19 | addtask qemuimagetest_standalone | ||
20 | do_qemuimagetest_standalone[nostamp] = "1" | ||
21 | do_qemuimagetest_standalone[depends] += "qemu-native:do_populate_sysroot" | ||
22 | |||
23 | def qemuimagetest_main(d): | ||
15 | import sys | 24 | import sys |
16 | import re | 25 | import re |
17 | import os | 26 | import os |
@@ -142,4 +151,4 @@ python do_qemuimagetest() { | |||
142 | 151 | ||
143 | if ret != 0: | 152 | if ret != 0: |
144 | raise bb.build.FuncFailed("Some testcases fail, pls. check test result and test log!!!") | 153 | raise bb.build.FuncFailed("Some testcases fail, pls. check test result and test log!!!") |
145 | } | 154 | |