History log of /openbmc/openbmc-build-scripts/run-qemu-robot-test.sh (Results 1 – 23 of 23)
Revision Date Author Comments
# 476a7e99 06-Dec-2022 Patrick Williams <patrick@stwcx.xyz>

format shell scripts with beautysh

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ie72911e0f57a1f69b0bf317de8c52947886e1303


# e4146670 28-Jan-2022 Nan Zhou <nanzhoumails@gmail.com>

qemu robot test: allow specifying IMAGE_LOC

The existing script assumes qemuarm and the MACHINE under test are
in the same folder. This change adds an option to specify a
different location for the

qemu robot test: allow specifying IMAGE_LOC

The existing script assumes qemuarm and the MACHINE under test are
in the same folder. This change adds an option to specify a
different location for the MACHINE image.

Tested:
UPSTREAM_WORKSPACE=/home/nanzhou_google_com/openbmc
DEFAULT_IMAGE_LOC=./build/romulus/tmp/deploy/images
QEMU_BIN=./qemuarm/tmp/sysroots/x86_64/usr/bin/qemu-system-arm
MACHINE=romulus ./openbmc-build-scripts/run-qemu-robot
-test.sh

I cloned the openbmc distro in my home dir. Then source setup
qemuarm and romulus separately, and finished the builds.

Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: I37800de63fe9d64dd28ffc6c5a4d3c0ea181a597

show more ...


# e080fe8b 28-Jan-2022 Nan Zhou <nanzhoumails@gmail.com>

qemu robot: fix comments

Target should be qemuarm, and added a comment about building sysroots.

Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: I5737c61b51ba38d7db96f18d2f400c43e2ef911d


# 051b05b7 10-Dec-2021 Thang Q. Nguyen <thang@os.amperecomputing.com>

Add support aarch64 architecture

Support to run scripts in aarch64 Host Linux.

Tested: execute the scripts changed in this commit in Aarch64 Host
Ubuntu OS and check they can ex

Add support aarch64 architecture

Support to run scripts in aarch64 Host Linux.

Tested: execute the scripts changed in this commit in Aarch64 Host
Ubuntu OS and check they can execute successfully

Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Change-Id: Idde23fbd09c5000c710f4f6d88793fefbb0cb04c

show more ...


# a8c839d6 12-Apr-2021 Patrick Williams <patrick@stwcx.xyz>

run-qemu-robot-test: fix shellcheck error

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I1614370835908b4537caed70907d90a8affefed1


# 147776e6 26-Mar-2021 Andrew Geissler <geissonator@yahoo.com>

run qemu container with root permission

The QEMU application requires root access to utilize the standard ports.
These ports are not open outside of the docker subsystem (i.e. no
com

run qemu container with root permission

The QEMU application requires root access to utilize the standard ports.
These ports are not open outside of the docker subsystem (i.e. no
command line -p option) so the impact should be minimal.

Tested:
- Verified with this change that the run-qemu-robot-test.sh could
complete successfully on CI infrastructure

Change-Id: I0e73c416af3bbdf6cfb17607097f974f5236d87e
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...


# b96a8c3a 15-Mar-2021 Patrick Williams <patrick@stwcx.xyz>

kubernetes: remove all support

These scripts have been untouched for 3 years and not known
to be used by anyone. The scripts are a mess w.r.t. shellcheck
warning and do not seem wor

kubernetes: remove all support

These scripts have been untouched for 3 years and not known
to be used by anyone. The scripts are a mess w.r.t. shellcheck
warning and do not seem worth fixing. Deleteing the entire
tree.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I0fbb1805e9da624bd35ef56aac80fdab68080088

show more ...


# fa7b894b 26-Feb-2021 Andrew Geissler <geissonator@yahoo.com>

run-qemu-robot-test: do not run robot tests as root

The root option for the docker containers is not required for this test
process to execute correctly.

Tested:
- Verified

run-qemu-robot-test: do not run robot tests as root

The root option for the docker containers is not required for this test
process to execute correctly.

Tested:
- Verified script ran successfully and log files were all now owned by
my userid and I could delete them

Change-Id: I790fcacf7d3552597e4e7a2bfd6d33d9c2ea9b6f
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...


# 384d741b 06-Nov-2020 Patrick Williams <patrick@stwcx.xyz>

shellcheck: clean up shellcheck warnings and enable

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ibc843b98c0fea97a31d3d15b556a32f091bf8e47


# f2e658bb 17-Jun-2020 Lei YU <yulei.sh@bytedance.com>

run-qemu-robot-test: Use --rm for docker run

When the test runs boot-qemu-test.exp with docker, it does not use --rm
so the container remains after the test exits.

Add --rm so t

run-qemu-robot-test: Use --rm for docker run

When the test runs boot-qemu-test.exp with docker, it does not use --rm
so the container remains after the test exits.

Add --rm so that the container is removed automatically.

Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: Ie9748bf5fe029c26cd4ec2ca931b44169906bef4

show more ...


# 11a6e9e8 22-Jul-2019 George Keishing <gkeishin@in.ibm.com>

Typo fixes in code documentation

Change-Id: Ia0fe1d6d2a12d3a3dc081d2587806e78dbc5b807
Signed-off-by: George Keishing <gkeishin@in.ibm.com>


# 5b4a0d27 03-Apr-2018 Andrew Geissler <geissonator@yahoo.com>

Avoid sigpipe by looking at last IPAddress

The docker command to inspect returns 2 "IPAdress:" items.
Both are the same, just different sections of the docker
output command. To avoi

Avoid sigpipe by looking at last IPAddress

The docker command to inspect returns 2 "IPAdress:" items.
Both are the same, just different sections of the docker
output command. To avoid getting a SIGPIPE from the grep
command, use the tail command line tool to just grab the
last IPAddress from the grep command.

Resolves openbmc/openbmc-build-scripts#16

Change-Id: I5560ba21f9ae60998f78db8e7478c655b65eca3e
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...


# 0c63ce1b 01-Mar-2018 Andrew Geissler <geissonator@yahoo.com>

Enable robot tests against QEMU

Change-Id: I38389b4ceb7ca8facf3c93345af0fa76c45a8b55
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>


# 9d913feb 21-Feb-2018 Andrew Geissler <geissonator@yahoo.com>

Ignore SIGPIPE when interacting with docker

There is this random failures (~10% of the time) where
this script suddenly exits with a 141 (SIGPIPE) after
its call using a docker inspe

Ignore SIGPIPE when interacting with docker

There is this random failures (~10% of the time) where
this script suddenly exits with a 141 (SIGPIPE) after
its call using a docker inspect. The data needed from
the command is always correctly found so just ignore
the SIGPIPE.

Change-Id: I2364ff551677a99bc1308a43971f9ab87086d31c
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...


# 27876c51 21-Feb-2018 Andrew Geissler <geissonator@yahoo.com>

Increase timeout for getting to login prompt in QEMU

Testing has shown that it can take a little more then
two minutes at times to get to the login prompt and
successfully login. Inc

Increase timeout for getting to login prompt in QEMU

Testing has shown that it can take a little more then
two minutes at times to get to the login prompt and
successfully login. Increase default timeout and make
it configurable.

Change-Id: Ibe86e2b214cdedf7378da8920e76526cf294127b
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...


# f9dbc8d9 05-Jan-2018 Andrew Geissler <geissonator@yahoo.com>

Look for the correct image to boot from dynamically

openbmc supports three different types of image to boot from
- UBI based image
- static MTD image
- rootfs.ext image

Look for the correct image to boot from dynamically

openbmc supports three different types of image to boot from
- UBI based image
- static MTD image
- rootfs.ext image

This commit enables boot-qemu.sh to dynamically discover the
appropriate one and use it.

Change-Id: I52d834f118d1e731740e9e3a1573cc6668f5cef0
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...


# 7a88f29e 04-Jan-2018 Andrew Geissler <geissonator@yahoo.com>

Allow a different qemu-system-arm to be passed to test scripts

The default qemu-system-arm used within the test automation pipeline
is currently hard coded to use the one within the bitb

Allow a different qemu-system-arm to be passed to test scripts

The default qemu-system-arm used within the test automation pipeline
is currently hard coded to use the one within the bitbake image
under test. This commit allows more flexibility with the qemu tool
used.

Future commits will build upon this to allow using a
qemu-system-arm version which supports witherspoon and therefore
will enable regression testing of the witherspoon and other openbmc
platforms within QEMU.

There's a long term goal to ensure the bitbake image builds the
appropriate qemu-system-arm into itself but there are some complexities
with that.

Change-Id: I93d39bf8482acb8adbc2b1da2d805448af2bcf75
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...


# 07b4d5b2 01-Aug-2017 Alanny Lopez <alanny.lopez@ibm.com>

Add Kubernetes Functionality to launch QEMU containers

Made modifications to the qemu launching script to allow for kubernetes
integration. Added the default variables for a launch to th

Add Kubernetes Functionality to launch QEMU containers

Made modifications to the qemu launching script to allow for kubernetes
integration. Added the default variables for a launch to the kubernetes
launch helper script. Generated the yaml file used to create the
deployment for QEMU. Commented out the testing portion of the
run-qemu-robot-test.sh script for now since the tests do not exist
anymore. This way script can still be used for launching QEMU instances.

Change-Id: I6ec5a33a0e6c84cd169894d931c5535a4e9329d7
Signed-off-by: Alanny Lopez <alanny.lopez@ibm.com>

show more ...


# 74d2aba9 27-Jul-2017 Alanny Lopez <alanny.lopez@ibm.com>

Update the default mount directory and header

Ran into issues that seemed to be related to file paths and location
changes. To resolve them changed the default directory where the
up

Update the default mount directory and header

Ran into issues that seemed to be related to file paths and location
changes. To resolve them changed the default directory where the
upstream directory is mounted so that it now mounts in the same
directory that is now used in the build-setup.sh container
/tmp/openbmc/build. Made it into a variable so that it can be changed as
is needed. Updated the architecture detection to use the nicer looking
version and updated the header and a few of the comments.

Change-Id: I802d6927f2e34ceaf92c4763b1ae6cf08b96cbbc
Signed-off-by: Alanny Lopez <alanny.lopez@ibm.com>

show more ...


# 10a193c9 10-Feb-2017 Leonel Gonzalez <lgonzalez@us.ibm.com>

Removed incompatible docker option --rm from robot qemu script

Change-Id: I80e2c80915be10705bb96616530a40e55f9847b7
Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>


# d008c543 02-Feb-2017 Andrew Geissler <andrewg@us.ibm.com>

Add --rm option to robot and qemu docker script

The --rm option prevents docker from leaving the
container instance from the run in the filesystem
when it finishes

Change-Id

Add --rm option to robot and qemu docker script

The --rm option prevents docker from leaving the
container instance from the run in the filesystem
when it finishes

Change-Id: Ie7b68d3362056fd03376593a0b7974ff624c7ff7
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>

show more ...


# 1df680a1 22-Aug-2016 Andrew Geissler <andrewg@us.ibm.com>

Don't adjust WORKSPACE env variable if already set by caller

The script incorrectly adjusts the WORKSPACE env variable. This change
fixes that.

Change-Id: I05cbcafb0d27090171fb

Don't adjust WORKSPACE env variable if already set by caller

The script incorrectly adjusts the WORKSPACE env variable. This change
fixes that.

Change-Id: I05cbcafb0d27090171fb01d3b2a7c1c15b9a5b1a
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>

show more ...


# 0205e8da 10-Aug-2016 Andrew Geissler <andrewg@us.ibm.com>

Script which launches QEMU and runs robot CI test against it

This script will be run within automation to do a basic QEMU
CI test against the input openbmc build.

Change-Id: I6f

Script which launches QEMU and runs robot CI test against it

This script will be run within automation to do a basic QEMU
CI test against the input openbmc build.

Change-Id: I6ffccd7f5767bec9bc673b1a41bd7bd1d960924c
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>

show more ...