History log of /kvm-unit-tests/scripts/ (Results 126 – 150 of 184)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
0023f5e428-Jun-2017 Radim Krčmář <rkrcmar@redhat.com>

run_tests: add summary to powerpc and s390

Looking at the last line was not enough as these architectures have
information about the exit on the last two lines. See the last 3 lines.

Signed-off-by

run_tests: add summary to powerpc and s390

Looking at the last line was not enough as these architectures have
information about the exit on the last two lines. See the last 3 lines.

Signed-off-by: Radim KrÄmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

8b13a5b528-Jun-2017 Radim Krčmář <rkrcmar@redhat.com>

arch/run: simplify copy-paste of the command line

The major annoyance coming from errata was "-initrd `mktemp`" that had
to be removed before running the copy-pasted command line.
Move "-initrd ..."

arch/run: simplify copy-paste of the command line

The major annoyance coming from errata was "-initrd `mktemp`" that had
to be removed before running the copy-pasted command line.
Move "-initrd ..." part at the end of the line and hide it behind "#" if
the initird file is a temporary one.

This patch also brings s390 to use the same code as other architectures
and eliminates code duplication.

Signed-off-by: Radim KrÄmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

1ea4709c13-Jun-2017 Andrew Jones <drjones@redhat.com>

mkstandalone: provide errata to tests

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

70fcb64b13-Jun-2017 Andrew Jones <drjones@redhat.com>

arch-run: generate errata when no environ is provided

Provide a table mapping errata to minimum kernel versions and
a function that will use the host's kernel version to determine
the values for eac

arch-run: generate errata when no environ is provided

Provide a table mapping errata to minimum kernel versions and
a function that will use the host's kernel version to determine
the values for each errata variable. These errata variables, with
values based on the host kernel, are now provided to all unit
tests by default, if no environ is provided. Errata variables
passed from the run script environment still take precedence.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

show more ...

8ec9956913-Jun-2017 Andrew Jones <drjones@redhat.com>

arch-run: provide errata from run env

Allow the run script environment to provide ERRATA_* variables
to the unit tests. These variables will augment/override variables
in any provided unit test envi

arch-run: provide errata from run env

Allow the run script environment to provide ERRATA_* variables
to the unit tests. These variables will augment/override variables
in any provided unit test environ (the file specified with $ENV)
or trigger the creation of a temporary environ file, which contains
them.

Now something like

ERRATA_abcd01234567=y ./run_tests.sh

may be run in order to inform all unit tests that they may execute
all subtests guarded by ERRATA_abcd01234567.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

show more ...

4da0bc9a13-Jun-2017 Andrew Jones <drjones@redhat.com>

arch-run: introduce initrd_create

Encapsulate the preparation of the optional initrd command line
option.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redha

arch-run: introduce initrd_create

Encapsulate the preparation of the optional initrd command line
option.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

show more ...


/kvm-unit-tests/.gitignore
/kvm-unit-tests/.travis.yml
/kvm-unit-tests/MAINTAINERS
/kvm-unit-tests/README.md
/kvm-unit-tests/api/dirty-log.cc
/kvm-unit-tests/api/identity.cc
/kvm-unit-tests/arm/cstart.S
/kvm-unit-tests/arm/cstart64.S
/kvm-unit-tests/arm/gic.c
/kvm-unit-tests/arm/pmu.c
/kvm-unit-tests/arm/psci.c
/kvm-unit-tests/arm/run
/kvm-unit-tests/arm/selftest.c
/kvm-unit-tests/arm/spinlock-test.c
/kvm-unit-tests/configure
/kvm-unit-tests/lib/alloc.c
/kvm-unit-tests/lib/arm/asm-offsets.c
/kvm-unit-tests/lib/arm/asm/barrier.h
/kvm-unit-tests/lib/arm/asm/bitops.h
/kvm-unit-tests/lib/arm/asm/pgtable-hwdef.h
/kvm-unit-tests/lib/arm/asm/pgtable.h
/kvm-unit-tests/lib/arm/asm/psci.h
/kvm-unit-tests/lib/arm/asm/ptrace.h
/kvm-unit-tests/lib/arm/asm/smp.h
/kvm-unit-tests/lib/arm/asm/sysreg.h
/kvm-unit-tests/lib/arm/asm/thread_info.h
/kvm-unit-tests/lib/arm/bitops.c
/kvm-unit-tests/lib/arm/eabi_compat.c
/kvm-unit-tests/lib/arm/gic.c
/kvm-unit-tests/lib/arm/psci.c
/kvm-unit-tests/lib/arm/setup.c
/kvm-unit-tests/lib/arm/smp.c
/kvm-unit-tests/lib/arm64/asm-offsets.c
/kvm-unit-tests/lib/arm64/asm/barrier.h
/kvm-unit-tests/lib/arm64/asm/bitops.h
/kvm-unit-tests/lib/arm64/asm/esr.h
/kvm-unit-tests/lib/arm64/asm/io.h
/kvm-unit-tests/lib/arm64/asm/page.h
/kvm-unit-tests/lib/arm64/asm/pgtable-hwdef.h
/kvm-unit-tests/lib/arm64/asm/pgtable.h
/kvm-unit-tests/lib/arm64/asm/psci.h
/kvm-unit-tests/lib/arm64/asm/ptrace.h
/kvm-unit-tests/lib/arm64/processor.c
/kvm-unit-tests/lib/asm-generic/io.h
/kvm-unit-tests/lib/asm-generic/page.h
/kvm-unit-tests/lib/bitops.h
/kvm-unit-tests/lib/libcflat.h
/kvm-unit-tests/lib/pci-edu.c
/kvm-unit-tests/lib/pci.c
/kvm-unit-tests/lib/powerpc/asm/rtas.h
/kvm-unit-tests/lib/powerpc/processor.c
/kvm-unit-tests/lib/powerpc/rtas.c
/kvm-unit-tests/lib/powerpc/setup.c
/kvm-unit-tests/lib/powerpc/smp.c
/kvm-unit-tests/lib/printf.c
/kvm-unit-tests/lib/s390x/.gitignore
/kvm-unit-tests/lib/s390x/asm-offsets.c
/kvm-unit-tests/lib/s390x/asm/arch_def.h
/kvm-unit-tests/lib/s390x/asm/asm-offsets.h
/kvm-unit-tests/lib/s390x/asm/barrier.h
/kvm-unit-tests/lib/s390x/asm/interrupt.h
/kvm-unit-tests/lib/s390x/asm/io.h
/kvm-unit-tests/lib/s390x/asm/page.h
/kvm-unit-tests/lib/s390x/asm/spinlock.h
/kvm-unit-tests/lib/s390x/asm/stack.h
/kvm-unit-tests/lib/s390x/interrupt.c
/kvm-unit-tests/lib/s390x/io.c
/kvm-unit-tests/lib/s390x/sclp-ascii.c
/kvm-unit-tests/lib/s390x/sclp.h
/kvm-unit-tests/lib/s390x/stack.c
/kvm-unit-tests/lib/virtio-mmio.c
/kvm-unit-tests/lib/virtio-mmio.h
/kvm-unit-tests/lib/virtio.c
/kvm-unit-tests/lib/virtio.h
/kvm-unit-tests/lib/x86/desc.c
/kvm-unit-tests/lib/x86/desc.h
/kvm-unit-tests/lib/x86/intel-iommu.c
/kvm-unit-tests/lib/x86/vm.c
/kvm-unit-tests/powerpc/Makefile.common
/kvm-unit-tests/powerpc/Makefile.ppc64
/kvm-unit-tests/powerpc/emulator.c
/kvm-unit-tests/powerpc/rtas.c
/kvm-unit-tests/powerpc/run
/kvm-unit-tests/powerpc/selftest.c
/kvm-unit-tests/powerpc/spapr_hcall.c
/kvm-unit-tests/powerpc/sprs.c
/kvm-unit-tests/powerpc/unittests.cfg
/kvm-unit-tests/s390x/Makefile
/kvm-unit-tests/s390x/cstart64.S
/kvm-unit-tests/s390x/flat.lds
/kvm-unit-tests/s390x/intercept.c
/kvm-unit-tests/s390x/run
/kvm-unit-tests/s390x/selftest.c
/kvm-unit-tests/s390x/unittests.cfg
arch-run.bash
/kvm-unit-tests/x86/Makefile.common
/kvm-unit-tests/x86/asyncpf.c
/kvm-unit-tests/x86/cstart.S
/kvm-unit-tests/x86/cstart64.S
/kvm-unit-tests/x86/hyperv_synic.c
/kvm-unit-tests/x86/msr.c
/kvm-unit-tests/x86/run
/kvm-unit-tests/x86/tsc.c
/kvm-unit-tests/x86/vmexit.c
/kvm-unit-tests/x86/vmx.c
/kvm-unit-tests/x86/vmx.h
/kvm-unit-tests/x86/vmx_tests.c
/kvm-unit-tests/x86/xsave.c
4a18bde112-May-2017 Alex Bennée <alex.bennee@linaro.org>

Makefiles: fix up the arm build dirs and include/link paths

We still need to tell the compiler the correct search path for finding
headers and the like. This is slightly complicated by the "dynamic"

Makefiles: fix up the arm build dirs and include/link paths

We still need to tell the compiler the correct search path for finding
headers and the like. This is slightly complicated by the "dynamic"
asm search path which is in our build tree but (may be) symlinked to
the right architectures headers.

Also we explicitly include SRCDIR for the linking scripts as VPATH
doesn't seem to find them well enough.

Also we set OBJDIRS for the lib/arm, lib/arm64 and generated
asm-offset files.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

show more ...

232f404a24-Apr-2017 Andrew Jones <drjones@redhat.com>

arch-run: more qemu binary search cleanup

We use tabs in scripts/arch-run.bash, which the import of the
function forgot to convert to. Also, while touching all lines
to add the tabs, apply some mor

arch-run: more qemu binary search cleanup

We use tabs in scripts/arch-run.bash, which the import of the
function forgot to convert to. Also, while touching all lines
to add the tabs, apply some more cleanups and simplifications.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Message-Id: <20170424092618.21950-1-drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

1b7dd7d315-Mar-2017 Sergey Bronnikov <sergeyb@bronevichok.ru>

Use /bin/env in shebang to make scripts more portable

Some operating systems installs bash executable file to other directory
than /bin. So it is better to use env utility to find bash.

Signed-off-

Use /bin/env in shebang to make scripts more portable

Some operating systems installs bash executable file to other directory
than /bin. So it is better to use env utility to find bash.

Signed-off-by: Sergey Bronnikov <sergeyb@bronevichok.ru>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

show more ...

531326ae19-Apr-2017 Balamuruhan S <bala24@linux.vnet.ibm.com>

scripts/arch-run: function to search qemu binary

Add a shell function to search qemu binary, similar to what x86/run does,
so that it can be reused for all arches.

Signed-off-by: Balamuruhan S <bal

scripts/arch-run: function to search qemu binary

Add a shell function to search qemu binary, similar to what x86/run does,
so that it can be reused for all arches.

Signed-off-by: Balamuruhan S <bala24@linux.vnet.ibm.com>
Message-Id: <1492629251-23267-1-git-send-email-bala24@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

37abdda928-Mar-2017 Thomas Huth <thuth@redhat.com>

Add the possibility to do simple migration tests

To be able to do simple migration tests with kvm-unit-tests, too,
add a helper script that does all the necessary work: Start two
instances of QEMU (

Add the possibility to do simple migration tests

To be able to do simple migration tests with kvm-unit-tests, too,
add a helper script that does all the necessary work: Start two
instances of QEMU (source and destination) with QMP sockets for
sending commands to them, then trigger the migration from one
instance to the other and finally signal the end of the migration
to the guest by injecting an NMI.
This helper script is now used automatically for powerpc tests
if the test is put into the "migration" group in the unittests.cfg
file.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>

show more ...

7430e2c508-Mar-2017 Andrew Jones <drjones@redhat.com>

run_tests: add run all tests parameter

Tests can be flagged as 'nodefault' in unittests.cfg files. Allow
running all tests, including all nodefault tests by just calling
run_tests.sh with a new -a p

run_tests: add run all tests parameter

Tests can be flagged as 'nodefault' in unittests.cfg files. Allow
running all tests, including all nodefault tests by just calling
run_tests.sh with a new -a parameter. (Also cleanup the help text.)

Suggested-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

show more ...

9f15911612-Jan-2017 Peter Xu <peterx@redhat.com>

run_tests: put logs into per-test file

We were using test.log before to keep all the test logs. This patch
creates one log file per test case under logs/ directory with name
"TESTNAME.log". Meanwhil

run_tests: put logs into per-test file

We were using test.log before to keep all the test logs. This patch
creates one log file per test case under logs/ directory with name
"TESTNAME.log". Meanwhile, we will keep the last time log into
logs.old/.

Renaming scripts/functions.bash into scripts/common.bash to store some
more global variables.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

cf44bb8912-Dec-2016 Andrew Jones <drjones@redhat.com>

Add git-diff orderFile

It's helpful to have a common order of file types in patches.
Applying git-diff's orderFile feature allows us to do that. Just
do 'git config diff.orderFile scripts/git.diffor

Add git-diff orderFile

It's helpful to have a common order of file types in patches.
Applying git-diff's orderFile feature allows us to do that. Just
do 'git config diff.orderFile scripts/git.difforder' to enable it.

Acked-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

8c3f0d9611-Jan-2017 Andrew Jones <drjones@redhat.com>

arch-run: fix terminal issues without stty

This patch reverts the stty parts of 8727c886 "runtime: better
handling of QEMU aborts", as we can more robustly fix the same
issue by simply redirecting /

arch-run: fix terminal issues without stty

This patch reverts the stty parts of 8727c886 "runtime: better
handling of QEMU aborts", as we can more robustly fix the same
issue by simply redirecting /dev/null into qemu's stdin. The
obvious side effect of this is that serial input will no longer
be wired up to the tty (or any other input file descriptor), but
unit tests do not, and should not, be reading from the serial port
anyway.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

f1071c6d19-Dec-2016 Andrew Jones <drjones@redhat.com>

report: move blank line to better side of SUMMARY

Currently test.log gets output of the form

test1-command-line
test1-output

SUMMARY:
test2-command-line
test2-output

SUMMARY:
test3-command

report: move blank line to better side of SUMMARY

Currently test.log gets output of the form

test1-command-line
test1-output

SUMMARY:
test2-command-line
test2-output

SUMMARY:
test3-command-line
...

Having a blank line before SUMMARY, and not after, it makes it
tough to group lines by eye. Change it to

test1-command-line
test1-output
SUMMARY:

test2-command-line
test2-output
SUMMARY:

test3-command-line
...

The empty line is moved from report_summary to runtime in order
to remove it altogether when running tests individually or as a
standalone.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...


/kvm-unit-tests/Makefile
/kvm-unit-tests/arm/Makefile.common
/kvm-unit-tests/arm/cstart.S
/kvm-unit-tests/arm/gic.c
/kvm-unit-tests/arm/pci-test.c
/kvm-unit-tests/arm/pmu.c
/kvm-unit-tests/arm/run
/kvm-unit-tests/arm/selftest.c
/kvm-unit-tests/arm/spinlock-test.c
/kvm-unit-tests/arm/unittests.cfg
/kvm-unit-tests/lib/alloc.h
/kvm-unit-tests/lib/arm/asm/arch_gicv3.h
/kvm-unit-tests/lib/arm/asm/barrier.h
/kvm-unit-tests/lib/arm/asm/delay.h
/kvm-unit-tests/lib/arm/asm/gic-v2.h
/kvm-unit-tests/lib/arm/asm/gic-v3.h
/kvm-unit-tests/lib/arm/asm/gic.h
/kvm-unit-tests/lib/arm/asm/processor.h
/kvm-unit-tests/lib/arm/asm/setup.h
/kvm-unit-tests/lib/arm/asm/sysreg.h
/kvm-unit-tests/lib/arm/delay.c
/kvm-unit-tests/lib/arm/gic-v2.c
/kvm-unit-tests/lib/arm/gic-v3.c
/kvm-unit-tests/lib/arm/gic.c
/kvm-unit-tests/lib/arm/setup.c
/kvm-unit-tests/lib/arm64/asm/arch_gicv3.h
/kvm-unit-tests/lib/arm64/asm/barrier.h
/kvm-unit-tests/lib/arm64/asm/delay.h
/kvm-unit-tests/lib/arm64/asm/gic-v2.h
/kvm-unit-tests/lib/arm64/asm/gic-v3.h
/kvm-unit-tests/lib/arm64/asm/gic.h
/kvm-unit-tests/lib/arm64/asm/processor.h
/kvm-unit-tests/lib/arm64/asm/sysreg.h
/kvm-unit-tests/lib/devicetree.c
/kvm-unit-tests/lib/devicetree.h
/kvm-unit-tests/lib/libcflat.h
/kvm-unit-tests/lib/pci-host-generic.c
/kvm-unit-tests/lib/pci.c
/kvm-unit-tests/lib/powerpc/setup.c
/kvm-unit-tests/lib/powerpc/smp.c
/kvm-unit-tests/lib/report.c
/kvm-unit-tests/lib/x86/apic.c
/kvm-unit-tests/lib/x86/apic.h
/kvm-unit-tests/lib/x86/processor.h
/kvm-unit-tests/powerpc/run
/kvm-unit-tests/powerpc/tm.c
runtime.bash
/kvm-unit-tests/x86/apic.c
/kvm-unit-tests/x86/asyncpf.c
/kvm-unit-tests/x86/debug.c
/kvm-unit-tests/x86/run
/kvm-unit-tests/x86/svm.c
/kvm-unit-tests/x86/vmexit.c
/kvm-unit-tests/x86/vmx.h
/kvm-unit-tests/x86/vmx_tests.c
8727c88615-Nov-2016 Andrew Jones <drjones@redhat.com>

runtime: better handling of QEMU aborts

Add two changes to run_qemu. The first saves/restores terminal settings.
This solves an annoying loss of terminal echo when QEMU aborts during
a test run. The

runtime: better handling of QEMU aborts

Add two changes to run_qemu. The first saves/restores terminal settings.
This solves an annoying loss of terminal echo when QEMU aborts during
a test run. The second ensures we see a message about the abort, because
the "Aborted (core dumped)" message we should see gets eaten. We also
add a message to run()'s failure cases in its exit code processing to
handle signals in general.

Note, the first change is necessary because QEMU modifies the terminal
settings when using '-serial stdio', but calling abort() invokes exit
without first calling qemu_chr_free(serial_hds[0]) to restore them.

(Additionally we fixup the premature failure check to only capture the
last line, like it says it's doing.)

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrew Jones <drjones@redhat.com>
[Redirected the abort message to stderr and moved it below `stty`.]
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

show more ...

f0ca153c02-Nov-2016 Radim Krčmář <rkrcmar@redhat.com>

scripts/arch-run: print stderr immediately

Not doing so hid stderr output when the test was stuck and subsequently
killed with ^C.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>


/kvm-unit-tests/Makefile
/kvm-unit-tests/arm/Makefile.common
/kvm-unit-tests/arm/pci-test.c
/kvm-unit-tests/arm/run
/kvm-unit-tests/arm/unittests.cfg
/kvm-unit-tests/lib/arm/asm/pci.h
/kvm-unit-tests/lib/arm64/asm/pci.h
/kvm-unit-tests/lib/asm-generic/barrier.h
/kvm-unit-tests/lib/asm-generic/pci-host-bridge.h
/kvm-unit-tests/lib/pci-host-generic.c
/kvm-unit-tests/lib/pci-host-generic.h
/kvm-unit-tests/lib/pci-testdev.c
/kvm-unit-tests/lib/pci.c
/kvm-unit-tests/lib/pci.h
/kvm-unit-tests/lib/powerpc/asm/handlers.h
/kvm-unit-tests/lib/powerpc/asm/hcall.h
/kvm-unit-tests/lib/powerpc/asm/processor.h
/kvm-unit-tests/lib/powerpc/asm/setup.h
/kvm-unit-tests/lib/powerpc/asm/smp.h
/kvm-unit-tests/lib/powerpc/handlers.c
/kvm-unit-tests/lib/powerpc/processor.c
/kvm-unit-tests/lib/powerpc/setup.c
/kvm-unit-tests/lib/powerpc/smp.c
/kvm-unit-tests/lib/ppc64/asm/handlers.h
/kvm-unit-tests/lib/ppc64/asm/smp.h
/kvm-unit-tests/lib/x86/apic-defs.h
/kvm-unit-tests/lib/x86/asm/pci.h
/kvm-unit-tests/lib/x86/msr.h
/kvm-unit-tests/lib/x86/stack.c
/kvm-unit-tests/lib/x86/vm.c
/kvm-unit-tests/powerpc/Makefile.common
/kvm-unit-tests/powerpc/tm.c
/kvm-unit-tests/powerpc/unittests.cfg
arch-run.bash
/kvm-unit-tests/x86/Makefile.x86_64
/kvm-unit-tests/x86/apic.c
/kvm-unit-tests/x86/hyperv.h
/kvm-unit-tests/x86/hyperv_clock.c
/kvm-unit-tests/x86/hyperv_stimer.c
/kvm-unit-tests/x86/hyperv_synic.c
/kvm-unit-tests/x86/ioapic.c
/kvm-unit-tests/x86/kvmclock_test.c
/kvm-unit-tests/x86/s3.c
/kvm-unit-tests/x86/tscdeadline_latency.c
/kvm-unit-tests/x86/unittests.cfg
/kvm-unit-tests/x86/vmexit.c
/kvm-unit-tests/x86/vmx.c
/kvm-unit-tests/x86/vmx.h
/kvm-unit-tests/x86/vmx_tests.c
9a00898619-Aug-2016 Suraj Jitindar Singh <sjitindarsingh@gmail.com>

scripts/runtime: Add ability to mark test as don't run by default

Invoking run_tests.sh without the -g parameter will by default run all of
the tests for a given architecture. This patch series will

scripts/runtime: Add ability to mark test as don't run by default

Invoking run_tests.sh without the -g parameter will by default run all of
the tests for a given architecture. This patch series will add a test which
has the ability to bring down the host and thus it might be nice if we
double check that the user actually wants to run that test instead of
them unknowingly bringing down a machine they might not want to.

In order to do this add the option for a tests' group parameter in
unittests.cfg to include "nodefault" on order to indicate that it shouldn't
be run be default.

When tests are invoked via run_tests.sh those with the nodefault group
parameter will be skipped unless explicitly specified by the "-g" command
line option. When tests with the nodefault group parameter are built and
run standalone the user will be prompted on invocation to confirm that
they actually want to run the test.

This allows a developer to mark a test as having potentially adverse
effects and thus requires an extra level of confirmation from the user
before they are invoked. Existing functionality will be preserved and new
tests can choose any group other than "nodefault" if they want to be run
by default.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

show more ...


/kvm-unit-tests/Makefile
/kvm-unit-tests/arm/Makefile.common
/kvm-unit-tests/arm/selftest.c
/kvm-unit-tests/arm/spinlock-test.c
/kvm-unit-tests/arm/unittests.cfg
/kvm-unit-tests/configure
/kvm-unit-tests/lib/alloc.h
/kvm-unit-tests/lib/argv.c
/kvm-unit-tests/lib/arm/asm/page.h
/kvm-unit-tests/lib/arm/setup.c
/kvm-unit-tests/lib/asm-generic/barrier.h
/kvm-unit-tests/lib/asm-generic/io.h
/kvm-unit-tests/lib/auxinfo.c
/kvm-unit-tests/lib/auxinfo.h
/kvm-unit-tests/lib/libcflat.h
/kvm-unit-tests/lib/powerpc/asm/setup.h
/kvm-unit-tests/lib/powerpc/setup.c
/kvm-unit-tests/lib/ppc64/asm/barrier.h
/kvm-unit-tests/lib/ppc64/asm/io.h
/kvm-unit-tests/lib/x86/apic.c
/kvm-unit-tests/lib/x86/apic.h
/kvm-unit-tests/lib/x86/asm/barrier.h
/kvm-unit-tests/lib/x86/asm/io.h
/kvm-unit-tests/lib/x86/asm/page.h
/kvm-unit-tests/lib/x86/asm/pci.h
/kvm-unit-tests/lib/x86/io.c
/kvm-unit-tests/lib/x86/smp.h
/kvm-unit-tests/lib/x86/vm.c
/kvm-unit-tests/lib/x86/vm.h
/kvm-unit-tests/powerpc/Makefile.common
/kvm-unit-tests/powerpc/emulator.c
/kvm-unit-tests/powerpc/rtas.c
/kvm-unit-tests/powerpc/selftest.c
/kvm-unit-tests/powerpc/spapr_hcall.c
/kvm-unit-tests/powerpc/unittests.cfg
runtime.bash
/kvm-unit-tests/x86/Makefile.i386
/kvm-unit-tests/x86/access.c
/kvm-unit-tests/x86/apic.c
/kvm-unit-tests/x86/asyncpf.c
/kvm-unit-tests/x86/eventinj.c
/kvm-unit-tests/x86/hypercall.c
/kvm-unit-tests/x86/hyperv.c
/kvm-unit-tests/x86/hyperv.h
/kvm-unit-tests/x86/hyperv_stimer.c
/kvm-unit-tests/x86/hyperv_synic.c
/kvm-unit-tests/x86/init.c
/kvm-unit-tests/x86/kvmclock.c
/kvm-unit-tests/x86/kvmclock.h
/kvm-unit-tests/x86/pku.c
/kvm-unit-tests/x86/rmap_chain.c
/kvm-unit-tests/x86/smap.c
/kvm-unit-tests/x86/svm.c
/kvm-unit-tests/x86/taskswitch2.c
/kvm-unit-tests/x86/unittests.cfg
/kvm-unit-tests/x86/vmexit.c
/kvm-unit-tests/x86/vmx.c
/kvm-unit-tests/x86/vmx.h
/kvm-unit-tests/x86/vmx_tests.c
df47798301-Jun-2016 Lukáš Doktor <ldoktor@redhat.com>

scripts/runtime: Adjust the premature_failure check

The premature_failure check fails on qemu-system-ppc64 as it uses
different message. This patch modifies the condition so it works
(hopefully) for

scripts/runtime: Adjust the premature_failure check

The premature_failure check fails on qemu-system-ppc64 as it uses
different message. This patch modifies the condition so it works
(hopefully) for all archs. (tested on x86_64, ppc64, aarch64)

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

a51bab1311-May-2016 Radim Krčmář <rkrcmar@redhat.com>

scripts/arch-run: change QEMU failure detection

We FAIL the test whenever there is an output on stderr. QEMU or its
libraries can warn and the test could still work, so ignore any line
that has a w

scripts/arch-run: change QEMU failure detection

We FAIL the test whenever there is an output on stderr. QEMU or its
libraries can warn and the test could still work, so ignore any line
that has a warning keyword.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Message-Id: <1462984243-5783-3-git-send-email-rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

d5f55dcc11-May-2016 Radim Krčmář <rkrcmar@redhat.com>

scripts/runtime: skip tests that cannot run

A case where QEMU won't run the kernel should be considered as skipped.
Hyper-V tests used to FAIL on old QEMUs. The infamous QEMU=/dev/null
FAIL streak

scripts/runtime: skip tests that cannot run

A case where QEMU won't run the kernel should be considered as skipped.
Hyper-V tests used to FAIL on old QEMUs. The infamous QEMU=/dev/null
FAIL streak is covered too. Some error messages in arch/run were
reworded, because they are now visible in summary.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Message-Id: <1462984243-5783-2-git-send-email-rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

1abbc2ce11-May-2016 Radim Krčmář <rkrcmar@redhat.com>

run_tests: log stderr

Summary should provide all important information.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Message-Id: <1462984243-5783-1-git-send-email-rkrcmar@redhat.com>
Signed-off

run_tests: log stderr

Summary should provide all important information.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Message-Id: <1462984243-5783-1-git-send-email-rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

e9ae961311-May-2016 Radim Krčmář <rkrcmar@redhat.com>

run_tests: print SUMMARY line in summary

SUMMARY line is present if the test uses lib/report. Summary contains
some interesting information, so duplicating the output isn't that big
of a cost. Our

run_tests: print SUMMARY line in summary

SUMMARY line is present if the test uses lib/report. Summary contains
some interesting information, so duplicating the output isn't that big
of a cost. Our log redirection got more complicated, though.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Message-Id: <1462983171-4208-10-git-send-email-rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

9c51d8c911-May-2016 Radim Krčmář <rkrcmar@redhat.com>

scripts/runtime: consolidate summary tags

Turn skip into yellow SKIP and add reusable definitions of all tags.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@re

scripts/runtime: consolidate summary tags

Turn skip into yellow SKIP and add reusable definitions of all tags.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Message-Id: <1462983171-4208-9-git-send-email-rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

12345678