automation: introduce a QEMU smoke test for PVH Dom0
PATCH 1/1 automation: introduce a QEMU smoke test for PVH Dom0
Make qemu-smoke-x86-64.sh take a variant argument. Make two new tests in test.yaml.
---
Since the new option is going to be release in 4.12, I think it would be beneficial to have this patch in 4.12 as well. The risk is zero to end users.
--- automation/gitlab-ci/test.yaml | 48 +++++++++++++++++++++++++++++++-- automation/scripts/qemu-smoke-x86-64.sh | 12 +++++++-- 2 files changed, 56 insertions(+), 4 deletions(-)
automation/gitlab-ci/test.yaml +46 -2
@@ -5,7 +5,7 @@ qemu-smoke-x86-64-gcc: variables: CONTAINER: debian:stretch script: - - ./automation/scripts/qemu-smoke-x86-64.sh 2>&1 | tee qemu-smoke-x86-64.log + - ./automation/scripts/qemu-smoke-x86-64.sh pv 2>&1 | tee qemu-smoke-x86-64.log artifacts: paths: - smoke.serial
@@ -27,7 +27,7 @@ qemu-smoke-x86-64-clang: variables: CONTAINER: debian:stretch script: - - ./automation/scripts/qemu-smoke-x86-64.sh 2>&1 | tee qemu-smoke-x86-64.log + - ./automation/scripts/qemu-smoke-x86-64.sh pv 2>&1 | tee qemu-smoke-x86-64.log artifacts: paths: - smoke.serial
@@ -41,4 +41,48 @@ qemu-smoke-x86-64-clang: - master - smoke - /^coverity-tested\/.*/ + +qemu-smoke-x86-64-gcc-pvh: + stage: test + image: registry.gitlab.com/xen-project/xen/${CONTAINER} + variables: + CONTAINER: debian:stretch + script: + - ./automation/scripts/qemu-smoke-x86-64.sh pvh 2>&1 | tee qemu-smoke-x86-64.log + artifacts: + paths: + - smoke.serial + - '*.log' + when: always + dependencies: + - debian-stretch-gcc-debug + tags: + - x86_64 + except: + - master + - smoke + - /^coverity-tested\/.*/ + - /^stable-.*/ + +qemu-smoke-x86-64-clang-pvh: + stage: test + image: registry.gitlab.com/xen-project/xen/${CONTAINER} + variables: + CONTAINER: debian:stretch + script: + - ./automation/scripts/qemu-smoke-x86-64.sh pvh 2>&1 | tee qemu-smoke-x86-64.log + artifacts: + paths: + - smoke.serial + - '*.log' + when: always + dependencies: + - debian-unstable-clang-debug + tags: + - x86_64 + except: + - master + - smoke + - /^coverity-tested\/.*/ + - /^stable-.*/ - /^stable-.*/
automation/scripts/qemu-smoke-x86-64.sh +10 -2
@@ -2,6 +2,9 @@ set -ex +# variant should be either pv or pvh +variant=$1 + # Install QEMU export DEBIAN_FRONTENT=noninteractive apt-get -qy update
@@ -11,12 +14,17 @@ apt-get -qy install qemu-system-x86 git clone https://xenbits.xen.org/git-http/xtf.git cd xtf && make -j$(nproc) && cd - +case $variant in + pvh) k=test-hvm32pae-example extra="dom0-iommu=none dom0=pvh" ;; + *) k=test-pv32pae-example extra= ;; +esac + rm -f smoke.serial set +e timeout -k 1 10 \ qemu-system-x86_64 -nographic -kernel binaries/xen \ - -initrd xtf/tests/example/test-pv32pae-example \ - -append 'loglvl=all com1=115200,,8n1 console=com1 noreboot' \ + -initrd xtf/tests/example/$k \ + -append "loglvl=all com1=115200,,8n1 console=com1 noreboot $extra" \ -m 512 -monitor none -serial file:smoke.serial set -e grep -q 'Test result: SUCCESS' smoke.serial || exit 1
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 8 lines · Wei Liu
Make
qemu-smoke-x86-64.shtake a variant argument. Make two new tests intest.yaml.Signed-off-by Wei Liu <[email protected]>---
Since the new option is going to be release in 4.12, I think it would be beneficial to have this patch in 4.12 as well. The risk is zero to end users.
---
[...]
automation/gitlab-ci/test.yaml qemu-smoke-x86-64-clang: · line 88
Quoted 3 lines
automation/gitlab-ci/test.yaml +2
-0+ - /^coverity-tested\/.*/ + - /^stable-.*/ - /^stable-.*/
Gah, this is an old version. The up to date version has moved this line back to where it's supposed to be. I won't bother posting a new version.
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Wei Liu
Make
qemu-smoke-x86-64.shtake a variant argument. Make two new tests intest.yaml.Signed-off-by Wei Liu <[email protected]>
This is a good improvement to increase our test coverage. Thanks for doing this Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 10 lines · Doug Goldstein
Quoted 4 lines · Wei Liu
Make
qemu-smoke-x86-64.shtake a variant argument. Make two new tests intest.yaml.Signed-off-by Wei Liu <[email protected]>Acked-by Doug Goldstein <[email protected]>This is a good improvement to increase our test coverage. Thanks for doing this Wei.
I'm quite hesitant to accept that in the RC-phase of 4.12. Could you do some test rounds to ensure this test won't be blocking due to intermittent failures?
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 7 lines · Juergen Gross
Quoted 6 lines · Doug Goldstein
Quoted 4 lines · Wei Liu
Make
qemu-smoke-x86-64.shtake a variant argument. Make two new tests intest.yaml.Signed-off-by Wei Liu <[email protected]>
Quoted 8 lines
Quoted 4 lines
Acked-by Doug Goldstein <[email protected]>This is a good improvement to increase our test coverage. Thanks for doing this Wei.
I'm quite hesitant to accept that in the RC-phase of 4.12. Could you do some test rounds to ensure this test won't be blocking due to intermittent failures?
This isn't a patch to osstest. It is a patch to Gitlab CI, which doesn't block osstest in any way.
I also ran an adhoc pipeline to make sure it worked.
Wei.
Quoted 3 lines
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 13 lines · Wei Liu
Quoted 12 lines · Juergen Gross
Quoted 10 lines · Doug Goldstein
Quoted 4 lines · Wei Liu
Make
qemu-smoke-x86-64.shtake a variant argument. Make two new tests intest.yaml.Signed-off-by Wei Liu <[email protected]>Acked-by Doug Goldstein <[email protected]>This is a good improvement to increase our test coverage. Thanks for doing this Wei.
Quoted 8 lines
Quoted 3 lines
I'm quite hesitant to accept that in the RC-phase of 4.12. Could you do some test rounds to ensure this test won't be blocking due to intermittent failures?
This isn't a patch to osstest. It is a patch to Gitlab CI, which doesn't block osstest in any way.
I also ran an adhoc pipeline to make sure it worked.
Ah, okay. Then you can have my:
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 18 lines · Juergen Gross
Quoted 17 lines · Wei Liu
Quoted 15 lines · Juergen Gross
Quoted 10 lines · Doug Goldstein
Quoted 4 lines · Wei Liu
Make
qemu-smoke-x86-64.shtake a variant argument. Make two new tests intest.yaml.Signed-off-by Wei Liu <[email protected]>Acked-by Doug Goldstein <[email protected]>This is a good improvement to increase our test coverage. Thanks for doing this Wei.
I'm quite hesitant to accept that in the RC-phase of 4.12. Could you do some test rounds to ensure this test won't be blocking due to intermittent failures?
Quoted 8 lines
Quoted 4 lines
This isn't a patch to osstest. It is a patch to Gitlab CI, which doesn't block osstest in any way.
I also ran an adhoc pipeline to make sure it worked.
Ah, okay. Then you can have my:
Release-acked-by Juergen Gross <[email protected]>
Thank you.
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel