xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Oleksii Kurochko <oleksii.kurochko@gmail.com>
To: xen-devel@lists.xenproject.org
Cc: Jan Beulich <jbeulich@suse.com>, Julien Grall <julien@xen.org>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Gianluca Guida <gianluca@rivosinc.com>,
	Oleksii Kurochko <oleksii.kurochko@gmail.com>,
	Doug Goldstein <cardoe@cardoe.com>
Subject: [PATCH v4 4/4] automation: add RISC-V smoke test
Date: Thu, 19 Jan 2023 14:45:17 +0200	[thread overview]
Message-ID: <216c21039a5552a329178b4376ff53ba16cf6104.1673877778.git.oleksii.kurochko@gmail.com> (raw)
Message-ID: <20230119124517.YqVH7zTqg3omhyp1QmJ04F26prlQIx-77UfegFtze1M@z> (raw)
In-Reply-To: <cover.1673877778.git.oleksii.kurochko@gmail.com>

Add check if there is a message 'Hello from C env' presents
in log file to be sure that stack is set and C part of early printk
is working.

Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
---
Changes in V4:
    - Nothing changed
---
Changes in V3:
    - Nothing changed
    - All mentioned comments by Stefano in Xen mailing list will be
      fixed as a separate patch out of this patch series.
---
 automation/gitlab-ci/test.yaml           | 20 ++++++++++++++++++++
 automation/scripts/qemu-smoke-riscv64.sh | 20 ++++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100755 automation/scripts/qemu-smoke-riscv64.sh

diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
index afd80adfe1..64f47a0ab9 100644
--- a/automation/gitlab-ci/test.yaml
+++ b/automation/gitlab-ci/test.yaml
@@ -54,6 +54,19 @@
   tags:
     - x86_64
 
+.qemu-riscv64:
+  extends: .test-jobs-common
+  variables:
+    CONTAINER: archlinux:riscv64
+    LOGFILE: qemu-smoke-riscv64.log
+  artifacts:
+    paths:
+      - smoke.serial
+      - '*.log'
+    when: always
+  tags:
+    - x86_64
+
 .yocto-test:
   extends: .test-jobs-common
   script:
@@ -234,6 +247,13 @@ qemu-smoke-x86-64-clang-pvh:
   needs:
     - debian-unstable-clang-debug
 
+qemu-smoke-riscv64-gcc:
+  extends: .qemu-riscv64
+  script:
+    - ./automation/scripts/qemu-smoke-riscv64.sh 2>&1 | tee ${LOGFILE}
+  needs:
+    - riscv64-cross-gcc
+
 # Yocto test jobs
 yocto-qemuarm64:
   extends: .yocto-test-arm64
diff --git a/automation/scripts/qemu-smoke-riscv64.sh b/automation/scripts/qemu-smoke-riscv64.sh
new file mode 100755
index 0000000000..e0f06360bc
--- /dev/null
+++ b/automation/scripts/qemu-smoke-riscv64.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+set -ex
+
+# Run the test
+rm -f smoke.serial
+set +e
+
+timeout -k 1 2 \
+qemu-system-riscv64 \
+    -M virt \
+    -smp 1 \
+    -nographic \
+    -m 2g \
+    -kernel binaries/xen \
+    |& tee smoke.serial
+
+set -e
+(grep -q "Hello from C env" smoke.serial) || exit 1
+exit 0
-- 
2.39.0



  parent reply	other threads:[~2023-01-19 12:45 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-16 14:39 [PATCH v4 0/4] The patch series introduces the following: Oleksii Kurochko
2023-01-16 14:39 ` [PATCH v4 1/4] xen/riscv: introduce asm/types.h header file Oleksii Kurochko
2023-01-16 14:59   ` Jan Beulich
2023-01-17  9:29     ` Oleksii
2023-01-17 10:04       ` Jan Beulich
2023-01-18 11:23         ` Oleksii
2023-01-18 13:03           ` Jan Beulich
2023-01-19 12:45   ` Oleksii Kurochko
2023-01-16 14:39 ` [PATCH v4 2/4] xen/riscv: introduce sbi call to putchar to console Oleksii Kurochko
2023-01-17 23:19   ` Bobby Eshleman
2023-01-17 23:32   ` Andrew Cooper
2023-01-18  7:38     ` Jan Beulich
2023-01-18 11:29       ` Oleksii
2023-01-18  1:10   ` Alistair Francis
2023-01-19 12:45   ` Oleksii Kurochko
2023-01-16 14:39 ` [PATCH v4 3/4] xen/riscv: introduce early_printk basic stuff Oleksii Kurochko
2023-01-17 23:22   ` Bobby Eshleman
2023-01-17 23:57   ` Andrew Cooper
2023-01-18  0:33     ` Julien Grall
2023-01-18 11:07     ` Oleksii
2023-01-19 12:45   ` Oleksii Kurochko
2023-01-16 14:39 ` Oleksii Kurochko [this message]
2023-01-18  1:14   ` [PATCH v4 4/4] automation: add RISC-V smoke test Alistair Francis
2023-01-19 12:45   ` Oleksii Kurochko
2023-01-16 14:44 ` [PATCH v4 0/4] The patch series introduces the following: Oleksii
2023-01-19 12:45 ` [PATCH v4 0/4] Basic early_printk and smoke test implementation Oleksii Kurochko
2023-01-19 13:23 ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=216c21039a5552a329178b4376ff53ba16cf6104.1673877778.git.oleksii.kurochko@gmail.com \
    --to=oleksii.kurochko@gmail.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=cardoe@cardoe.com \
    --cc=gianluca@rivosinc.com \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).