All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Hongzhan Chen <hongzhan.chen@intel.com>, xenomai@xenomai.org
Subject: Re: [Xenomai-images][PATCH] tests: restrict realtime cpu for x86 and qemu type of devices
Date: Mon, 28 Jun 2021 08:28:45 +0200	[thread overview]
Message-ID: <3ca6e2a0-3ee3-017f-1da7-930a2f4e35ae@siemens.com> (raw)
In-Reply-To: <20210628044326.1220-1-hongzhan.chen@intel.com>

On 28.06.21 06:43, Hongzhan Chen wrote:
> 1. If there is no CPU restriction on the bootargs, smokey cpu_affinity
> test would be skipped reporting with "no kernel support" for those
> without non-RT cpu.
> 
> 2. delete unused test job.
> 

2 items, 2 patches, please.

> Signed-off-by: Hongzhan Chen <hongzhan.chen@intel.com>
> 
> diff --git a/tests/jobs/xenomai-ipc227e.yml b/tests/jobs/xenomai-ipc227e.yml
> index a5a181c..209c5d4 100644
> --- a/tests/jobs/xenomai-ipc227e.yml
> +++ b/tests/jobs/xenomai-ipc227e.yml
> @@ -72,3 +72,5 @@ actions:
>        from: inline
>        path: inline/xenomai-test-suite.yaml
>        name: xenomai-test-suite
> +context:
> +  extra_kernel_args: xenomai.supported_cpus=7

Maybe format this as hex (0x7) to remind people that this is a mask.

> diff --git a/tests/jobs/xenomai-minnow.yml b/tests/jobs/xenomai-minnow.yml
> deleted file mode 100644
> index d5292ff..0000000
> --- a/tests/jobs/xenomai-minnow.yml
> +++ /dev/null
> @@ -1,73 +0,0 @@
> -#
> -# Xenomai Real-Time System
> -#
> -# Copyright (c) Siemens AG, 2019
> -#
> -# Authors:
> -#  Quirin Gylstorff <quirin.gylstorff@siemens.com>
> -#
> -# SPDX-License-Identifier: MIT
> -#
> -job_name: xenomai-test-suite
> -device_type: minnowboard-max-E3825
> -timeouts:
> -  job:
> -    minutes: 90
> -  action:
> -    minutes: 65
> -  connection:
> -    minutes: 5
> -priority: medium
> -visibility: public
> -
> -metadata:
> -  # please change these fields when modifying this job for your own tests.
> -  docs-source: xenomai-cof
> -  docs-filename: pipeline-xenomai-cof
> -# ACTION_BLOCK
> -actions:
> -- deploy:
> -    timeout:
> -      minutes: 15
> -    to: tftp
> -    kernel:
> -      url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
> -      type: bzimage
> -    ramdisk:
> -      url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-initrd.img
> -      compression: gz
> -    nfsrootfs:
> -      url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}.tar.gz
> -      compression: gz
> -# BOOT_BLOCK
> -- boot:
> -    timeout:
> -      minutes: 5
> -    method: grub
> -    commands: nfs
> -    prompts: ["root@demo:"]
> -    auto_login:
> -      login_prompt: 'demo login:'
> -      username: root
> -      password_prompt: 'Password:'
> -      password: root
> -
> -- test:
> -    timeout:
> -      minutes: 30
> -    definitions:
> -    - repository: http://git.linaro.org/lava-team/lava-functional-tests.git
> -      from: git
> -      path: lava-test-shell/smoke-tests-basic.yaml
> -      name: smoke-tests
> -    - repository:
> -        metadata:
> -          format: Lava-Test Test Definition 1.0
> -          name: xenomai-test-suite
> -          description: "runs the xenomai test suite"
> -        run:
> -          steps:
> -            - lava-test-case xenomai-test --shell xeno-test -k -l \"dohell -m /tmp 300\" -p 1000
> -      from: inline
> -      path: inline/xenomai-test-suite.yaml
> -      name: xenomai-test-suite
> diff --git a/tests/jobs/xenomai-qemu-amd64.yml b/tests/jobs/xenomai-qemu-amd64.yml
> index c335292..e42f6ec 100644
> --- a/tests/jobs/xenomai-qemu-amd64.yml
> +++ b/tests/jobs/xenomai-qemu-amd64.yml
> @@ -46,7 +46,7 @@ actions:
>      to: tmpfs
>      images:
>        kernel:
> -        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0"
> +        image_arg: -kernel {kernel} -append "root=/dev/sdb console=ttyS0,115200 console=tty0 xenomai.supported_cpus=1"
>          url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
>        initrd:
>          image_arg: -initrd {initrd}
> diff --git a/tests/jobs/xenomai-qemu-arm64.yml b/tests/jobs/xenomai-qemu-arm64.yml
> index 88fb880..cc60564 100644
> --- a/tests/jobs/xenomai-qemu-arm64.yml
> +++ b/tests/jobs/xenomai-qemu-arm64.yml
> @@ -50,7 +50,7 @@ actions:
>      to: tmpfs
>      images:
>        kernel:
> -        image_arg: -kernel {kernel} -append "root=/dev/vda"
> +        image_arg: -kernel {kernel} -append "root=/dev/vda xenomai.supported_cpus=1"
>          url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
>        initrd:
>          image_arg: -initrd {initrd}
> diff --git a/tests/jobs/xenomai-qemu-armhf.yml b/tests/jobs/xenomai-qemu-armhf.yml
> index 3e3a8ab..2afe250 100644
> --- a/tests/jobs/xenomai-qemu-armhf.yml
> +++ b/tests/jobs/xenomai-qemu-armhf.yml
> @@ -46,7 +46,7 @@ actions:
>      to: tmpfs
>      images:
>        kernel:
> -        image_arg: -kernel {kernel} -append "root=/dev/vdb"
> +        image_arg: -kernel {kernel} -append "root=/dev/vdb xenomai.supported_cpus=1"
>          url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinuz
>        initrd:
>          image_arg: -initrd {initrd}
> diff --git a/tests/jobs/xenomai-x86-64-efi.yml b/tests/jobs/xenomai-x86-64-efi.yml
> index bc71b75..d1418c1 100644
> --- a/tests/jobs/xenomai-x86-64-efi.yml
> +++ b/tests/jobs/xenomai-x86-64-efi.yml
> @@ -72,3 +72,5 @@ actions:
>        from: inline
>        path: inline/xenomai-test-suite.yaml
>        name: xenomai-test-suite
> +context:
> +  extra_kernel_args: xenomai.supported_cpus=7
> 

Jan

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux


      reply	other threads:[~2021-06-28  6:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-28  4:43 [Xenomai-images][PATCH] tests: restrict realtime cpu for x86 and qemu type of devices Hongzhan Chen
2021-06-28  6:28 ` Jan Kiszka [this message]

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=3ca6e2a0-3ee3-017f-1da7-930a2f4e35ae@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=hongzhan.chen@intel.com \
    --cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.