s390x and generic script updates
Hi Paolo,
the following changes since commit 58c94d57a51a6927a68e3f09627b2d85e3404c0f:
travis.yml: Use TRAVIS_BUILD_DIR to refer to the top directory (2020-09-25 10:00:36 +0200)
are available in the Git repository at:
https://gitlab.com/huth/kvm-unit-tests.git tags/pull-request-2020-09-28
for you to fetch changes up to b508e1147055255ecce93a95916363bda8c8f299:
scripts/arch-run: use ncat rather than nc. (2020-09-28 15:03:50 +0200)
----------------------------------------------------------------
- s390x protected VM support
- Some other small s390x improvements
- Generic improvements in the scripts (better TAP13 names, nc -> ncat, ...)
----------------------------------------------------------------
Jamie Iles (1):
scripts/arch-run: use ncat rather than nc.
Marc Hartmayer (6):
runtime.bash: remove outdated comment
Use same test names in the default and the TAP13 output format common.bash: run cmd only if a test case was found
scripts: add support for architecture dependent functions run_tests/mkstandalone: add arch_cmd hook
s390x: add Protected VM support
Thomas Huth (4):
configure: Add a check for the bash version travis.yml: Update from Bionic to Focal travis.yml: Update the list of s390x tests s390x/selftest: Fix constraint of inline assembly
.travis.yml | 7 ++++--- README.md | 3 ++- configure | 14 ++++++++++++++ run_tests.sh | 18 +++++++++--------- s390x/Makefile | 15 ++++++++++++++- s390x/selftest.c | 2 +- s390x/selftest.parmfile | 1 + s390x/unittests.cfg | 1 + scripts/arch-run.bash | 6 +++--- scripts/common.bash | 21 +++++++++++++++++++-- scripts/mkstandalone.sh | 4 ---- scripts/runtime.bash | 9 +++------ scripts/s390x/func.bash | 35 +++++++++++++++++++++++++++++++++++ 13 files changed, 106 insertions(+), 30 deletions(-) create mode 100644 s390x/selftest.parmfile create mode 100644 scripts/s390x/func.bash
[kvm-unit-tests PULL 02/11] Use same test names in the default and the TAP13 output format
From: Marc Hartmayer <[email protected]>
Use the same test names in the TAP13 output as in the default output format. This makes the output more consistent. To achieve this, we need to pass the test name as an argument to the function process_test_output.
Before this change:
$ ./run_tests.sh PASS selftest-setup (14 tests) ...
vs.
$ ./run_tests.sh -t TAP version 13 ok 1 - selftest: true ok 2 - selftest: argc == 3 ...
After this change:
$ ./run_tests.sh PASS selftest-setup (14 tests) ...
vs.
$ ./run_tests.sh -t TAP version 13 ok 1 - selftest-setup: selftest: true ok 2 - selftest-setup: selftest: argc == 3 ...
While at it, introduce a local variable kernel in RUNTIME_log_stdout since this makes the function easier to read.
Message-Id: <[email protected]>
--- run_tests.sh | 15 +++++++++------ scripts/runtime.bash | 6 +++--- 2 files changed, 12 insertions(+), 9 deletions(-)
run_tests.sh +9 -6
@@ -88,18 +88,19 @@ if [[ $tap_output == "no" ]]; then postprocess_suite_output() { cat; } else process_test_output() { + local testname="$1" CR=$'\r' while read -r line; do line="${line%$CR}" case "${line:0:4}" in PASS) - echo "ok TEST_NUMBER - ${line#??????}" >&3 + echo "ok TEST_NUMBER - ${testname}: ${line#??????}" >&3 ;; FAIL) - echo "not ok TEST_NUMBER - ${line#??????}" >&3 + echo "not ok TEST_NUMBER - ${testname}: ${line#??????}" >&3 ;; SKIP) - echo "ok TEST_NUMBER - ${line#??????} # skip" >&3 + echo "ok TEST_NUMBER - ${testname}: ${line#??????} # skip" >&3 ;; *) ;;
@@ -121,12 +122,14 @@ else } fi -RUNTIME_log_stderr () { process_test_output; } +RUNTIME_log_stderr () { process_test_output "$1"; } RUNTIME_log_stdout () { + local testname="$1" if [ "$PRETTY_PRINT_STACKS" = "yes" ]; then - ./scripts/pretty_print_stacks.py $1 | process_test_output + local kernel="$2" + ./scripts/pretty_print_stacks.py "$kernel" | process_test_output "$testname" else - process_test_output + process_test_output "$testname" fi }
scripts/runtime.bash +3 -3
@@ -140,10 +140,10 @@ function run() # extra_params in the config file may contain backticks that need to be # expanded, so use eval to start qemu. Use "> >(foo)" instead of a pipe to # preserve the exit status. - summary=$(eval $cmdline 2> >(RUNTIME_log_stderr) \ - > >(tee >(RUNTIME_log_stdout $kernel) | extract_summary)) + summary=$(eval $cmdline 2> >(RUNTIME_log_stderr $testname) \ + > >(tee >(RUNTIME_log_stdout $testname $kernel) | extract_summary)) ret=$? - [ "$STANDALONE" != "yes" ] && echo > >(RUNTIME_log_stdout $kernel) + [ "$STANDALONE" != "yes" ] && echo > >(RUNTIME_log_stdout $testname $kernel) if [ $ret -eq 0 ]; then print_result "PASS" $testname "$summary"
Signature · 1 line
2.18.2
[kvm-unit-tests PULL 01/11] runtime.bash: remove outdated comment
In reply to Thomas HuthFrom: Marc Hartmayer <[email protected]>
Since commit 6e1d3752d7ca ("tap13: list testcases individually") the comment is no longer valid. Therefore let's remove it.
Message-Id: <[email protected]>
--- scripts/runtime.bash | 3 --- 1 file changed, 3 deletions(-)
scripts/runtime.bash +0 -3
@@ -53,9 +53,6 @@ skip_nodefault() function print_result() { - # output test results in a TAP format - # https://testanything.org/tap-version-13-specification.html - local status="$1" local testname="$2" local summary="$3"
Signature · 1 line
2.18.2
[kvm-unit-tests PULL 03/11] configure: Add a check for the bash version
In reply to Thomas HuthOur scripts do not work with older versions of the bash, like the default Bash 3 from macOS (e.g. we use the "|&" operator which has been introduced in Bash 4.0). Add a check to make sure that we use at least version 4 to avoid that the users run into problems later.
Message-Id: <[email protected]>
--- configure | 5 +++++ 1 file changed, 5 insertions(+)
configure +5 -0
@@ -1,5 +1,10 @@ #!/usr/bin/env bash +if [ -z "${BASH_VERSINFO[0]}" ] || [ "${BASH_VERSINFO[0]}" -lt 4 ] ; then + echo "Error: Bash version 4 or newer is required for the kvm-unit-tests" + exit 1 +fi + srcdir=$(cd "$(dirname "$0")"; pwd) prefix=/usr/local cc=gcc
Signature · 1 line
2.18.2
[kvm-unit-tests PULL 04/11] travis.yml: Update from Bionic to Focal
In reply to Thomas HuthThe newer version of QEMU in Focal should help to run more tests with TCG (which will be enabled in later patches).
Message-Id: <[email protected]>
--- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
@@ -1,4 +1,4 @@ -dist: bionic +dist: focal language: c cache: ccache git:
Signature · 1 line
2.18.2
[kvm-unit-tests PULL 06/11] common.bash: run `cmd` only if a test case was found
In reply to Thomas HuthFrom: Marc Hartmayer <[email protected]>
It's only useful to run cmd in for_each_unittest if a test case was found. This change allows us to remove the guards from the functions run_task and mkstandalone.
Message-Id: <[email protected]>
--- run_tests.sh | 3 --- scripts/common.bash | 8 ++++++-- scripts/mkstandalone.sh | 4 ---- 3 files changed, 6 insertions(+), 9 deletions(-)
run_tests.sh +0 -3
@@ -136,9 +136,6 @@ RUNTIME_log_stdout () { function run_task() { local testname="$1" - if [ -z "$testname" ]; then - return - fi while (( $(jobs | wc -l) == $unittest_run_queues )); do # wait for any background test to finish
scripts/common.bash +6 -2
@@ -17,7 +17,9 @@ function for_each_unittest() while read -r -u $fd line; do if [[ "$line" =~ ^\[(.*)\]$ ]]; then - "$cmd" "$testname" "$groups" "$smp" "$kernel" "$opts" "$arch" "$check" "$accel" "$timeout" + if [ -n "${testname}" ]; then + "$cmd" "$testname" "$groups" "$smp" "$kernel" "$opts" "$arch" "$check" "$accel" "$timeout" + fi testname=${BASH_REMATCH[1]} smp=1 kernel=""
@@ -45,6 +47,8 @@ function for_each_unittest() timeout=${BASH_REMATCH[1]} fi done - "$cmd" "$testname" "$groups" "$smp" "$kernel" "$opts" "$arch" "$check" "$accel" "$timeout" + if [ -n "${testname}" ]; then + "$cmd" "$testname" "$groups" "$smp" "$kernel" "$opts" "$arch" "$check" "$accel" "$timeout" + fi exec {fd}<&- }
scripts/mkstandalone.sh +0 -4
@@ -83,10 +83,6 @@ function mkstandalone() { local testname="$1" - if [ -z "$testname" ]; then - return - fi - if [ -n "$one_testname" ] && [ "$testname" != "$one_testname" ]; then return fi
Signature · 1 line
2.18.2
[kvm-unit-tests PULL 07/11] scripts: add support for architecture dependent functions
In reply to Thomas HuthFrom: Marc Hartmayer <[email protected]>
This is necessary to keep architecture dependent code separate from common code.
Message-Id: <[email protected]>
--- README.md | 3 ++- scripts/common.bash | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-)
README.md +2 -1
@@ -134,7 +134,8 @@ all unit tests. ## Directory structure .: configure script, top-level Makefile, and run_tests.sh - ./scripts: helper scripts for building and running tests + ./scripts: general architecture neutral helper scripts for building and running tests + ./scripts/<ARCH>: architecture dependent helper scripts for building and running tests ./lib: general architecture neutral services for the tests ./lib/<ARCH>: architecture dependent services for the tests ./<ARCH>: the sources of the tests and the created objects/images
scripts/common.bash +8 -0
@@ -1,3 +1,4 @@ +source config.mak function for_each_unittest() {
@@ -52,3 +53,10 @@ function for_each_unittest() fi exec {fd}<&- } + +# The current file has to be the only file sourcing the arch helper +# file +ARCH_FUNC=scripts/${ARCH}/func.bash +if [ -f "${ARCH_FUNC}" ]; then + source "${ARCH_FUNC}" +fi
Signature · 1 line
2.18.2
[kvm-unit-tests PULL 05/11] travis.yml: Update the list of s390x tests
In reply to Thomas HuthWith the new QEMU from Ubuntu Focal, we can now run more tests with TCG.
Message-Id: <[email protected]>
--- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
.travis.yml +3 -2
@@ -106,7 +106,8 @@ jobs: env: - CONFIG="--arch=s390x --cross-prefix=s390x-linux-gnu-" - BUILD_DIR="." - - TESTS="diag10 diag308" + - TESTS="cpumodel css diag10 diag288 diag308 emulator intercept sclp-1g + sclp-3g selftest-setup" - ACCEL="tcg,firmware=s390x/run" - addons:
@@ -114,7 +115,7 @@ jobs: env: - CONFIG="--arch=s390x --cross-prefix=s390x-linux-gnu-" - BUILD_DIR="s390x-builddir" - - TESTS="sieve" + - TESTS="sieve skey stsi vector" - ACCEL="tcg,firmware=s390x/run" - os: osx
Signature · 1 line
2.18.2
[kvm-unit-tests PULL 08/11] run_tests/mkstandalone: add arch_cmd hook
In reply to Thomas HuthFrom: Marc Hartmayer <[email protected]>
This allows us, for example, to auto generate a new test case based on an existing test case.
Message-Id: <[email protected]>
--- scripts/common.bash | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
scripts/common.bash +7 -2
@@ -19,7 +19,7 @@ function for_each_unittest() while read -r -u $fd line; do if [[ "$line" =~ ^\[(.*)\]$ ]]; then if [ -n "${testname}" ]; then - "$cmd" "$testname" "$groups" "$smp" "$kernel" "$opts" "$arch" "$check" "$accel" "$timeout" + $(arch_cmd) "$cmd" "$testname" "$groups" "$smp" "$kernel" "$opts" "$arch" "$check" "$accel" "$timeout" fi testname=${BASH_REMATCH[1]} smp=1
@@ -49,11 +49,16 @@ function for_each_unittest() fi done if [ -n "${testname}" ]; then - "$cmd" "$testname" "$groups" "$smp" "$kernel" "$opts" "$arch" "$check" "$accel" "$timeout" + $(arch_cmd) "$cmd" "$testname" "$groups" "$smp" "$kernel" "$opts" "$arch" "$check" "$accel" "$timeout" fi exec {fd}<&- } +function arch_cmd() +{ + [ "${ARCH_CMD}" ] && echo "${ARCH_CMD}" +} + # The current file has to be the only file sourcing the arch helper # file ARCH_FUNC=scripts/${ARCH}/func.bash
Signature · 1 line
2.18.2
[kvm-unit-tests PULL 09/11] s390x: add Protected VM support
In reply to Thomas HuthFrom: Marc Hartmayer <[email protected]>
Add support for Protected Virtual Machine (PVM) tests. For starting a PVM guest we must be able to generate a PVM image by using the genprotimg tool from the s390-tools collection. This requires the ability to pass a machine-specific host-key document, so the option --host-key-document is added to the configure script.
Message-Id: <[email protected]>
--- configure | 9 +++++++++ s390x/Makefile | 15 ++++++++++++++- s390x/selftest.parmfile | 1 + s390x/unittests.cfg | 1 + scripts/s390x/func.bash | 35 +++++++++++++++++++++++++++++++++++ 5 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 s390x/selftest.parmfile create mode 100644 scripts/s390x/func.bash
configure +9 -0
@@ -24,6 +24,7 @@ wa_divide= vmm="qemu" errata_force=0 erratatxt="$srcdir/errata.txt" +host_key_document= usage() { cat <<-EOF
@@ -46,6 +47,9 @@ usage() { no environ is provided by the user (enabled by default) --erratatxt=FILE specify a file to use instead of errata.txt. Use '--erratatxt=' to ensure no file is used. + --host-key-document=HOST_KEY_DOCUMENT + Specify the machine-specific host-key document for creating + a PVM image with 'genprotimg' (s390x only) EOF exit 1 }
@@ -98,6 +102,9 @@ while [[ "$1" = -* ]]; do erratatxt= [ "$arg" ] && erratatxt=$(eval realpath "$arg") ;; + --host-key-document) + host_key_document="$arg" + ;; --help) usage ;;
@@ -229,6 +236,8 @@ ENVIRON_DEFAULT=$environ_default ERRATATXT=$erratatxt U32_LONG_FMT=$u32_long WA_DIVIDE=$wa_divide +GENPROTIMG=${GENPROTIMG-genprotimg} +HOST_KEY_DOCUMENT=$host_key_document EOF cat <<EOF > lib/config.h
s390x/Makefile +14 -1
@@ -19,12 +19,19 @@ tests += $(TEST_DIR)/smp.elf tests += $(TEST_DIR)/sclp.elf tests += $(TEST_DIR)/css.elf tests += $(TEST_DIR)/uv-guest.elf + tests_binary = $(patsubst %.elf,%.bin,$(tests)) +ifneq ($(HOST_KEY_DOCUMENT),) +tests_pv_binary = $(patsubst %.bin,%.pv.bin,$(tests_binary)) +else +tests_pv_binary = +endif -all: directories test_cases test_cases_binary +all: directories test_cases test_cases_binary test_cases_pv test_cases: $(tests) test_cases_binary: $(tests_binary) +test_cases_pv: $(tests_pv_binary) CFLAGS += -std=gnu99 CFLAGS += -ffreestanding
@@ -73,6 +80,12 @@ FLATLIBS = $(libcflat) %.bin: %.elf $(OBJCOPY) -O binary $< $@ +%selftest.pv.bin: %selftest.bin $(HOST_KEY_DOCUMENT) $(patsubst %.pv.bin,%.parmfile,$@) + $(GENPROTIMG) --host-key-document $(HOST_KEY_DOCUMENT) --parmfile $(patsubst %.pv.bin,%.parmfile,$@) --no-verify --image $< -o $@ + +%.pv.bin: %.bin $(HOST_KEY_DOCUMENT) + $(GENPROTIMG) --host-key-document $(HOST_KEY_DOCUMENT) --no-verify --image $< -o $@ + arch_clean: asm_offsets_clean $(RM) $(TEST_DIR)/*.{o,elf,bin} $(TEST_DIR)/.*.d lib/s390x/.*.d
s390x/selftest.parmfile new file +1 -0
@@ -0,0 +1 @@ +test 123
s390x/unittests.cfg +1 -0
@@ -21,6 +21,7 @@ [selftest-setup] file = selftest.elf groups = selftest +# please keep the kernel cmdline in sync with $(TEST_DIR)/selftest.parmfile extra_params = -append 'test 123' [intercept]
scripts/s390x/func.bash new file +35 -0
@@ -0,0 +1,35 @@ +# The file scripts/common.bash has to be the only file sourcing this +# arch helper file +source config.mak + +ARCH_CMD=arch_cmd_s390x + +function arch_cmd_s390x() +{ + local cmd=$1 + local testname=$2 + local groups=$3 + local smp=$4 + local kernel=$5 + local opts=$6 + local arch=$7 + local check=$8 + local accel=$9 + local timeout=${10} + + # run the normal test case + "$cmd" "$testname" "$groups" "$smp" "$kernel" "$opts" "$arch" "$check" "$accel" "$timeout" + + # run PV test case + kernel=${kernel%.elf}.pv.bin + testname=${testname}_PV + if [ ! -f "${kernel}" ]; then + if [ -z "${HOST_KEY_DOCUMENT}" ]; then + return 2 + fi + + print_result 'SKIP' $testname '' 'PVM image was not created' + return 2 + fi + "$cmd" "$testname" "$groups pv" "$smp" "$kernel" "$opts" "$arch" "$check" "$accel" "$timeout" +}
Signature · 1 line
2.18.2
[kvm-unit-tests PULL 10/11] s390x/selftest: Fix constraint of inline assembly
In reply to Thomas HuthClang on s390x compains:
/home/thuth/devel/kvm-unit-tests/s390x/selftest.c:39:15: error:
%r0 used in an address
asm volatile(" stg %0,0(%0)\n" : : "r"(-1L));
^
<inline asm>:1:13: note: instantiated into assembly here
stg %r0,0(%r0)
^Right it is. We should not use address register 0 for STG. Thus let's use the "a" constraint to avoid register 0 here.
Message-Id: <[email protected]>
--- s390x/selftest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
s390x/selftest.c +1 -1
@@ -36,7 +36,7 @@ static void test_pgm_int(void)check_pgm_int_code (PGM_INT_CODE_OPERATION );expect_pgm_int (); - asmvolatile (" stg %0,0(%0)\n" : :"r" (-1L )); + asmvolatile (" stg %0,0(%0)\n" : :"a" (-1L ));check_pgm_int_code (PGM_INT_CODE_ADDRESSING ); }
Signature · 1 line
2.18.2
[kvm-unit-tests PULL 11/11] scripts/arch-run: use ncat rather than nc.
In reply to Thomas HuthFrom: Jamie Iles <[email protected]>
On Red Hat 7+ and derived distributions, 'nc' is nmap-ncat, but on Debian based distributions this is often netcat-openbsd. Both are mostly compatible with the important distinction that netcat-openbsd does not shutdown the socket on stdin EOF without also passing '-N' as an argument which is not supported on nmap-ncat. This has the unfortunate consequence of hanging qmp calls so tests like aarch64 its-migration never complete.
We're depending on ncat behaviour and nmap-ncat is available in all major distributions.
Message-Id: <[email protected]>
--- scripts/arch-run.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
scripts/arch-run.bash +3 -3
@@ -101,13 +101,13 @@ timeout_cmd () qmp () { - echo '{ "execute": "qmp_capabilities" }{ "execute":' "$2" '}' | nc -U $1 + echo '{ "execute": "qmp_capabilities" }{ "execute":' "$2" '}' | ncat -U $1 } run_migration () { - if ! command -v nc >/dev/null 2>&1; then - echo "${FUNCNAME[0]} needs nc (netcat)" >&2 + if ! command -v ncat >/dev/null 2>&1; then + echo "${FUNCNAME[0]} needs ncat (netcat)" >&2 return 2 fi
Signature · 1 line
2.18.2
Paolo Bonzini
maintainerQuoted 37 lines · Thomas Huth
Hi Paolo,
the following changes since commit
58c94d57a51a6927a68e3f09627b2d85e3404c0f:travis.yml: Use
TRAVIS_BUILD_DIRto refer to the top directory (2020-09-25 10:00:36 +0200)are available in the Git repository at:
https://gitlab.com/huth/kvm-unit-tests.git tags/pull-request-2020-09-28
for you to fetch changes up to
b508e1147055255ecce93a95916363bda8c8f299:
scripts/arch-run: use ncat rather than nc. (2020-09-28 15:03:50 +0200)----------------------------------------------------------------
- s390x protected VM support
- Some other small s390x improvements
- Generic improvements in the scripts (better TAP13 names, nc -> ncat, ...)
----------------------------------------------------------------Jamie Iles (1):
scripts/arch-run: use ncat rather than nc.Marc Hartmayer (6):
runtime.bash: remove outdated comment
Use same test names in the default and the TAP13 output format common.bash: runcmdonly if a test case was found
scripts: add support for architecture dependent functions run_tests/mkstandalone: addarch_cmdhook
s390x: add Protected VM supportThomas Huth (4):
configure: Add a check for the bash version travis.yml: Update from Bionic to Focal travis.yml: Update the list of s390x tests s390x/selftest: Fix constraint of inline assembly
Quoted 17 lines
.travis.yml | 7 ++++--- README.md | 3 ++- configure | 14 ++++++++++++++ run_tests.sh | 18 +++++++++--------- s390x/Makefile | 15 ++++++++++++++- s390x/selftest.c | 2 +- s390x/selftest.parmfile | 1 + s390x/unittests.cfg | 1 + scripts/arch-run.bash | 6 +++--- scripts/common.bash | 21 +++++++++++++++++++-- scripts/mkstandalone.sh | 4 ---- scripts/runtime.bash | 9 +++------ scripts/s390x/func.bash | 35 +++++++++++++++++++++++++++++++++++ 13 files changed, 106 insertions(+), 30 deletions(-) create mode 100644 s390x/selftest.parmfile create mode 100644 scripts/s390x/func.bash
Pulled, thanks (for now to my clone; waiting for CI to complete). Should we switch to Gitlab merge requests for pull requests only (i.e. patches still go on the mailing list)?
Paolo
Quoted 14 lines · Paolo Bonzini
Quoted 13 lines · Thomas Huth
Hi Paolo,
the following changes since commit
58c94d57a51a6927a68e3f09627b2d85e3404c0f:travis.yml: Use
TRAVIS_BUILD_DIRto refer to the top directory (2020-09-25 10:00:36 +0200)are available in the Git repository at:
https://gitlab.com/huth/kvm-unit-tests.git tags/pull-request-2020-09-28
for you to fetch changes up to
b508e1147055255ecce93a95916363bda8c8f299:
scripts/arch-run: use ncat rather than nc. (2020-09-28 15:03:50 +0200)
[...]
Quoted 3 lines
Pulled, thanks (for now to my clone; waiting for CI to complete). Should we switch to Gitlab merge requests for pull requests only (i.e. patches still go on the mailing list)?
Fine for me, though I'm not sure whether the other maintainers are already using gitlab or not... And do we need e-mail notifications for such merge requests sent to the mailing list, in case anybody else still wants to object?
Thomas
Quoted 56 lines · Paolo Bonzini
Quoted 37 lines · Thomas Huth
Hi Paolo,
the following changes since commit
58c94d57a51a6927a68e3f09627b2d85e3404c0f:travis.yml: Use
TRAVIS_BUILD_DIRto refer to the top directory (2020-09-25 10:00:36 +0200)are available in the Git repository at:
https://gitlab.com/huth/kvm-unit-tests.git tags/pull-request-2020-09-28
for you to fetch changes up to
b508e1147055255ecce93a95916363bda8c8f299:
scripts/arch-run: use ncat rather than nc. (2020-09-28 15:03:50 +0200)----------------------------------------------------------------
- s390x protected VM support
- Some other small s390x improvements
- Generic improvements in the scripts (better TAP13 names, nc -> ncat, ...)
----------------------------------------------------------------Jamie Iles (1):
scripts/arch-run: use ncat rather than nc.Marc Hartmayer (6):
runtime.bash: remove outdated comment
Use same test names in the default and the TAP13 output format common.bash: runcmdonly if a test case was found
scripts: add support for architecture dependent functions run_tests/mkstandalone: addarch_cmdhook
s390x: add Protected VM supportThomas Huth (4):
configure: Add a check for the bash version travis.yml: Update from Bionic to Focal travis.yml: Update the list of s390x tests s390x/selftest: Fix constraint of inline assemblyQuoted 17 lines
.travis.yml | 7 ++++--- README.md | 3 ++- configure | 14 ++++++++++++++ run_tests.sh | 18 +++++++++--------- s390x/Makefile | 15 ++++++++++++++- s390x/selftest.c | 2 +- s390x/selftest.parmfile | 1 + s390x/unittests.cfg | 1 + scripts/arch-run.bash | 6 +++--- scripts/common.bash | 21 +++++++++++++++++++-- scripts/mkstandalone.sh | 4 ---- scripts/runtime.bash | 9 +++------ scripts/s390x/func.bash | 35 +++++++++++++++++++++++++++++++++++ 13 files changed, 106 insertions(+), 30 deletions(-) create mode 100644 s390x/selftest.parmfile create mode 100644 scripts/s390x/func.bash
Quoted 6 lines
Pulled, thanks (for now to my clone; waiting for CI to complete). Should we switch to Gitlab merge requests for pull requests only (i.e. patches still go on the mailing list)?
Paolo
Hrm, that would force everyone to use Gitlab and I see some value in having pull request mails on the lists. You just opened the Pandora's box of discussions :-)
If it's easier for you I'd be open to open a marge request and send out pull mails at the same time so people can comment without login to Gitlab.
Quoted 64 lines · Janosch Frank
Quoted 56 lines · Paolo Bonzini
Quoted 37 lines · Thomas Huth
Hi Paolo,
the following changes since commit
58c94d57a51a6927a68e3f09627b2d85e3404c0f:travis.yml: Use
TRAVIS_BUILD_DIRto refer to the top directory (2020-09-25 10:00:36 +0200)are available in the Git repository at:
https://gitlab.com/huth/kvm-unit-tests.git tags/pull-request-2020-09-28
for you to fetch changes up to
b508e1147055255ecce93a95916363bda8c8f299:
scripts/arch-run: use ncat rather than nc. (2020-09-28 15:03:50 +0200)----------------------------------------------------------------
- s390x protected VM support
- Some other small s390x improvements
- Generic improvements in the scripts (better TAP13 names, nc -> ncat, ...)
----------------------------------------------------------------Jamie Iles (1):
scripts/arch-run: use ncat rather than nc.Marc Hartmayer (6):
runtime.bash: remove outdated comment
Use same test names in the default and the TAP13 output format common.bash: runcmdonly if a test case was found
scripts: add support for architecture dependent functions run_tests/mkstandalone: addarch_cmdhook
s390x: add Protected VM supportThomas Huth (4):
configure: Add a check for the bash version travis.yml: Update from Bionic to Focal travis.yml: Update the list of s390x tests s390x/selftest: Fix constraint of inline assemblyQuoted 17 lines
.travis.yml | 7 ++++--- README.md | 3 ++- configure | 14 ++++++++++++++ run_tests.sh | 18 +++++++++--------- s390x/Makefile | 15 ++++++++++++++- s390x/selftest.c | 2 +- s390x/selftest.parmfile | 1 + s390x/unittests.cfg | 1 + scripts/arch-run.bash | 6 +++--- scripts/common.bash | 21 +++++++++++++++++++-- scripts/mkstandalone.sh | 4 ---- scripts/runtime.bash | 9 +++------ scripts/s390x/func.bash | 35 +++++++++++++++++++++++++++++++++++ 13 files changed, 106 insertions(+), 30 deletions(-) create mode 100644 s390x/selftest.parmfile create mode 100644 scripts/s390x/func.bashQuoted 6 lines
Pulled, thanks (for now to my clone; waiting for CI to complete). Should we switch to Gitlab merge requests for pull requests only (i.e. patches still go on the mailing list)?
Paolo
Quoted 6 lines
Hrm, that would force everyone to use Gitlab and I see some value in having pull request mails on the lists. You just opened the Pandora's box of discussions :-)
If it's easier for you I'd be open to open a marge request and send out pull mails at the same time so people can comment without login to Gitlab.
... or maybe the people who already have a gitlab account could simply include the URL to their CI run in their pull request cover letter...?
Thomas
Paolo Bonzini
maintainerQuoted 3 lines · Thomas Huth
Quoted 3 lines
Hrm, that would force everyone to use Gitlab and I see some value in having pull request mails on the lists. You just opened the Pandora's box of discussions :-)
That was the point. :) It was more to see opinions and alternative ideas than to seriously propose it.
Quoted 5 lines
Quoted 2 lines
If it's easier for you I'd be open to open a marge request and send out pull mails at the same time so people can comment without login to Gitlab.
... or maybe the people who already have a gitlab account could simply include the URL to their CI run in their pull request cover letter...?
That's a good idea!
Paolo
Paolo Bonzini
maintainerQuoted 37 lines · Thomas Huth
Hi Paolo,
the following changes since commit
58c94d57a51a6927a68e3f09627b2d85e3404c0f:travis.yml: Use
TRAVIS_BUILD_DIRto refer to the top directory (2020-09-25 10:00:36 +0200)are available in the Git repository at:
https://gitlab.com/huth/kvm-unit-tests.git tags/pull-request-2020-09-28
for you to fetch changes up to
b508e1147055255ecce93a95916363bda8c8f299:
scripts/arch-run: use ncat rather than nc. (2020-09-28 15:03:50 +0200)----------------------------------------------------------------
- s390x protected VM support
- Some other small s390x improvements
- Generic improvements in the scripts (better TAP13 names, nc -> ncat, ...)
----------------------------------------------------------------Jamie Iles (1):
scripts/arch-run: use ncat rather than nc.Marc Hartmayer (6):
runtime.bash: remove outdated comment
Use same test names in the default and the TAP13 output format common.bash: runcmdonly if a test case was found
scripts: add support for architecture dependent functions run_tests/mkstandalone: addarch_cmdhook
s390x: add Protected VM supportThomas Huth (4):
configure: Add a check for the bash version travis.yml: Update from Bionic to Focal travis.yml: Update the list of s390x tests s390x/selftest: Fix constraint of inline assembly
Quoted 17 lines
.travis.yml | 7 ++++--- README.md | 3 ++- configure | 14 ++++++++++++++ run_tests.sh | 18 +++++++++--------- s390x/Makefile | 15 ++++++++++++++- s390x/selftest.c | 2 +- s390x/selftest.parmfile | 1 + s390x/unittests.cfg | 1 + scripts/arch-run.bash | 6 +++--- scripts/common.bash | 21 +++++++++++++++++++-- scripts/mkstandalone.sh | 4 ---- scripts/runtime.bash | 9 +++------ scripts/s390x/func.bash | 35 +++++++++++++++++++++++++++++++++++ 13 files changed, 106 insertions(+), 30 deletions(-) create mode 100644 s390x/selftest.parmfile create mode 100644 scripts/s390x/func.bash
Pulled, thanks.
Paolo