Skip to contentSkip to conversation

CI: Simplify RISCV smoke testing

PATCH In review Andrew Cooper 3 participants 3 messages Feb 24, 2023 – Feb 27, 2023 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CI: Simplify RISCV smoke testing

Use a single fairly generic string as the "all done" message to look for, which avoids the need to patch qemu-smoke-riscv64.sh each time a new feature is added.

---
CC: Oleksii Kurochko <[email protected]>
CC: Bob Eshleman <[email protected]>
CC: Alistair Francis <[email protected]>
CC: Connor Davis <[email protected]>
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

I considered "All set up and nowhere to go" but it's probably a little niche.

---
 automation/scripts/qemu-smoke-riscv64.sh | 2 +-
 xen/arch/riscv/setup.c                   | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
automation/scripts/qemu-smoke-riscv64.sh +1 -1
index e0f06360bc43..4008191302f9 100755
@@ -16,5 +16,5 @@ qemu-system-riscv64 \
     |& tee smoke.serial
 
 set -e
-(grep -q "Hello from C env" smoke.serial) || exit 1
+(grep -q "All set up" smoke.serial) || exit 1
 exit 0
xen/arch/riscv/setup.c +1 -0
index d09ffe1454a4..1c87899e8e90 100644
@@ -11,6 +11,7 @@ void __init noreturn start_xen(void)
 {
     early_printk("Hello from C env\n");
 
+    early_printk("All set up\n");
     for ( ;; )
         asm volatile ("wfi");
 
Signature · 1 line
2.30.2
Reviewed-by on v1 1/1
#1 lore raw

Looks good to me.

Thanks.

~ Oleksii

Quoted 48 lines · Andrew Cooper

Use a single fairly generic string as the "all done" message to look for,
which avoids the need to patch qemu-smoke-riscv64.sh each time a new feature
is added.

---
CC: Oleksii Kurochko <[email protected]>
CC: Bob Eshleman <[email protected]>
CC: Alistair Francis <[email protected]>
CC: Connor Davis <[email protected]>
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

I considered "All set up and nowhere to go" but it's probably a little niche.
---
 automation/scripts/qemu-smoke-riscv64.sh | 2 +- xen/arch/riscv/setup.c                   | 1 +

 2 files changed, 2 insertions(+), 1 deletion(-)
automation/scripts/qemu-smoke-riscv64.sh +0 -0
index e0f06360bc43..4008191302f9 100755
@@ -16,5 +16,5 @@ qemu-system-riscv64 \

     |& tee smoke.serial

 set -e

automation/scripts/qemu-smoke-riscv64.sh +1 -1
-(grep -q "Hello from C env" smoke.serial) || exit 1
+(grep -q "All set up" smoke.serial) || exit 1

 exit 0

xen/arch/riscv/setup.c +0 -0
index d09ffe1454a4..1c87899e8e90 100644
@@ -11,6 +11,7 @@ void __init noreturn start_xen(void)
  {
      early_printk("Hello from C env\n");


+    early_printk("All set up\n");
     for ( ;; )
         asm volatile ("wfi");

Acked-by on v1 1/1
#2 lore raw
In reply to Andrew Cooper
Quoted 5 lines · Andrew Cooper

Use a single fairly generic string as the "all done" message to look for, which avoids the need to patch qemu-smoke-riscv64.sh each time a new feature is added.

Quoted 42 lines

---
CC: Oleksii Kurochko <[email protected]>
CC: Bob Eshleman <[email protected]>
CC: Alistair Francis <[email protected]>
CC: Connor Davis <[email protected]>
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

I considered "All set up and nowhere to go" but it's probably a little niche.

---
 automation/scripts/qemu-smoke-riscv64.sh | 2 +-
 xen/arch/riscv/setup.c                   | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
automation/scripts/qemu-smoke-riscv64.sh +1 -1
index e0f06360bc43..4008191302f9 100755
@@ -16,5 +16,5 @@ qemu-system-riscv64 \
     |& tee smoke.serial
 
 set -e
-(grep -q "Hello from C env" smoke.serial) || exit 1
+(grep -q "All set up" smoke.serial) || exit 1
 exit 0
xen/arch/riscv/setup.c +1 -0
index d09ffe1454a4..1c87899e8e90 100644
@@ -11,6 +11,7 @@ void __init noreturn start_xen(void)
 {
     early_printk("Hello from C env\n");
 
+    early_printk("All set up\n");
     for ( ;; )
         asm volatile ("wfi");
 
Signature · 1 line
2.30.2