Skip to contentSkip to conversation

automation: improve tests

PATCH In review Roger Pau Monne 4 participants 7 messages Dec 3, 2019

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 5fa3a63dbd..f38eacfd9f 100755
@@ -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
Acked-by on v1 1/2
#2 lore raw

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.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw

PATCH 2/2 automation: increase tests maximum time from 10s to 30s

In reply to 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

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
index f38eacfd9f..09152e3e9c 100755
@@ -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
Acked-by on v1 2/2
#4 lore raw

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.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Acked-by on the v1 series
#5 lore raw
In reply to Roger Pau Monne
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

#6 lore raw
In reply to Roger Pau Monne
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 30s

  automation/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