automation: improve tests
cover automation: improve tests
Hello,
Small series to improve the automated tests, first patch enables Xen console timestamps and the second one increases the test timeout to 30s since the clang PVH tests already takes ~10s without taking into account the time to initialize QEMU.
Thanks, Roger.
Roger Pau Monne (2):
automation: add timestamps to Xen tests
automation: increase tests maximum time from 10s to 30s
automation/scripts/qemu-smoke-x86-64.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Signature · 7 lines
2.24.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 1/2 automation: add timestamps to Xen tests
Enable Xen timestamps in the automated Xen tests, this is helpful in order to figure out if Xen is stuck or just slow in the automated tests.
--- automation/scripts/qemu-smoke-x86-64.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
automation/scripts/qemu-smoke-x86-64.sh +2 -1
@@ -24,7 +24,8 @@ set +e timeout -k 1 10 \ qemu-system-x86_64 -nographic -kernel binaries/xen \ -initrd xtf/tests/example/$k \ - -append "loglvl=all com1=115200,,8n1 console=com1 noreboot $extra" \ + -append "loglvl=all com1=115200,,8n1 console=com1 noreboot \ + console_timestamps=boot $extra" \ -m 512 -monitor none -serial file:smoke.serial set -e grep -q 'Test result: SUCCESS' smoke.serial || exit 1
Signature · 7 lines
2.24.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [Xen-devel] [PATCH 1/2] automation: add timestamps to Xen tests
Quoted 6 lines · Roger Pau Monne
Enable Xen timestamps in the automated Xen tests, this is helpful in order to figure out if Xen is stuck or just slow in the automated tests.
Signed-off-by Roger Pau Monné <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 2/2 automation: increase tests maximum time from 10s to 30s
In reply to Roger Pau Monne10s is too low for the clang tests, this is the output from a clang test:
(XEN) [ 6.512748] *************************************************** (XEN) [ 6.513323] SELFTEST FAILURE: CORRECT BEHAVIOR CANNOT BE GUARANTEED (XEN) [ 6.513891] *************************************************** (XEN) [ 6.514469] 3... 2... 1... (XEN) [ 9.520011] *** Serial input to DOM0 (type 'CTRL-a' three times to switch input) (XEN) [ 9.544319] Freed 488kB init memory
--- Xen Test Framework ---
Environment: HVM 32bit (PAE 3 levels)
Hello World
Test result: SUCCESS
(XEN) [ 9.610977] Hardware Dom0 halted: halting machine
As can be seen from the output above booting Xen and the XTF test takes ~10s, without accounting for the time it takes for QEMU to initialize.
Increase the timeout to 30s to be on the safe side.
--- automation/scripts/qemu-smoke-x86-64.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
automation/scripts/qemu-smoke-x86-64.sh +1 -1
@@ -21,7 +21,7 @@ esac rm -f smoke.serial set +e -timeout -k 1 10 \ +timeout -k 1 30 \ qemu-system-x86_64 -nographic -kernel binaries/xen \ -initrd xtf/tests/example/$k \ -append "loglvl=all com1=115200,,8n1 console=com1 noreboot \
Signature · 7 lines
2.24.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [Xen-devel] [PATCH 2/2] automation: increase tests maximum time from 10s to 30s
Quoted 16 lines · Roger Pau Monne
10s is too low for the clang tests, this is the output from a clang test:
(XEN) [ 6.512748] *************************************************** (XEN) [ 6.513323] SELFTEST FAILURE: CORRECT BEHAVIOR CANNOT BE GUARANTEED (XEN) [ 6.513891] *************************************************** (XEN) [ 6.514469] 3... 2... 1... (XEN) [ 9.520011] *** Serial input to DOM0 (type 'CTRL-a' three times to switch input) (XEN) [ 9.544319] Freed 488kB init memory--- Xen Test Framework ---
Environment: HVM 32bit (PAE 3 levels)
Hello World
Test result: SUCCESS
(XEN) [ 9.610977] Hardware Dom0 halted: halting machine
Quoted 7 lines
As can be seen from the output above booting Xen and the XTF test takes ~10s, without accounting for the time it takes for QEMU to initialize.
Increase the timeout to 30s to be on the safe side.
Signed-off-by Roger Pau Monné <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 7 lines · Roger Pau Monne
Hello,
Small series to improve the automated tests, first patch enables Xen console timestamps and the second one increases the test timeout to 30s since the clang PVH tests already takes ~10s without taking into account the time to initialize QEMU.
Quoted 5 lines
Thanks, Roger.
Roger Pau Monne (2):
automation: add timestamps to Xen tests
automation: increase tests maximum time from 10s to 30s
CC Juergen for a view towards 4.13
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 7 lines · Roger Pau Monne
Hello,
Small series to improve the automated tests, first patch enables Xen console timestamps and the second one increases the test timeout to 30s since the clang PVH tests already takes ~10s without taking into account the time to initialize QEMU.
Quoted 9 lines
Thanks, Roger.
Roger Pau Monne (2):
automation: add timestamps to Xen tests
automation: increase tests maximum time from 10s to 30sautomation/scripts/qemu-smoke-x86-64.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
For the series:
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel