Message ID | 20240226101218.1472843-33-npiggin@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | powerpc improvements | expand |
On Mon, Feb 26, 2024 at 08:12:18PM +1000, Nicholas Piggin wrote: > This adds testing for the powernv machine, and adds a gitlab-ci test > group instead of specifying all tests in .gitlab-ci.yml. > > Signed-off-by: Nicholas Piggin <npiggin@gmail.com> > --- > .gitlab-ci.yml | 16 ++++++---------- > powerpc/unittests.cfg | 15 ++++++++------- > 2 files changed, 14 insertions(+), 17 deletions(-) > > diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml > index 61f196d5d..51a593021 100644 > --- a/.gitlab-ci.yml > +++ b/.gitlab-ci.yml > @@ -69,11 +69,9 @@ build-ppc64be: > - cd build > - ../configure --arch=ppc64 --endian=big --cross-prefix=powerpc64-linux-gnu- > - make -j2 > - - ACCEL=tcg ./run_tests.sh > - selftest-setup selftest-migration selftest-migration-skip spapr_hcall > - rtas-get-time-of-day rtas-get-time-of-day-base rtas-set-time-of-day > - emulator > - | tee results.txt > + - ACCEL=tcg MAX_SMP=8 ./run_tests.sh -g gitlab-ci | tee results.txt > + - if grep -q FAIL results.txt ; then exit 1 ; fi > + - ACCEL=tcg MAX_SMP=8 MACHINE=powernv ./run_tests.sh -g gitlab-ci | tee results.txt > - if grep -q FAIL results.txt ; then exit 1 ; fi > > build-ppc64le: > @@ -82,11 +80,9 @@ build-ppc64le: > - dnf install -y qemu-system-ppc gcc-powerpc64-linux-gnu nmap-ncat > - ./configure --arch=ppc64 --endian=little --cross-prefix=powerpc64-linux-gnu- > - make -j2 > - - ACCEL=tcg ./run_tests.sh > - selftest-setup selftest-migration selftest-migration-skip spapr_hcall > - rtas-get-time-of-day rtas-get-time-of-day-base rtas-set-time-of-day > - emulator > - | tee results.txt > + - ACCEL=tcg MAX_SMP=8 ./run_tests.sh -g gitlab-ci | tee results.txt > + - if grep -q FAIL results.txt ; then exit 1 ; fi > + - ACCEL=tcg MAX_SMP=8 MACHINE=powernv ./run_tests.sh -g gitlab-ci | tee results.txt > - if grep -q FAIL results.txt ; then exit 1 ; fi > We're slowly migrating all tests like these to grep -q PASS results.txt && ! grep -q FAIL results.txt Here's a good opportunity to change ppc's. Thanks, drew
On Wed Feb 28, 2024 at 10:16 PM AEST, Andrew Jones wrote: > On Mon, Feb 26, 2024 at 08:12:18PM +1000, Nicholas Piggin wrote: > > This adds testing for the powernv machine, and adds a gitlab-ci test > > group instead of specifying all tests in .gitlab-ci.yml. > > > > Signed-off-by: Nicholas Piggin <npiggin@gmail.com> > > --- > > .gitlab-ci.yml | 16 ++++++---------- > > powerpc/unittests.cfg | 15 ++++++++------- > > 2 files changed, 14 insertions(+), 17 deletions(-) > > > > diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml > > index 61f196d5d..51a593021 100644 > > --- a/.gitlab-ci.yml > > +++ b/.gitlab-ci.yml > > @@ -69,11 +69,9 @@ build-ppc64be: > > - cd build > > - ../configure --arch=ppc64 --endian=big --cross-prefix=powerpc64-linux-gnu- > > - make -j2 > > - - ACCEL=tcg ./run_tests.sh > > - selftest-setup selftest-migration selftest-migration-skip spapr_hcall > > - rtas-get-time-of-day rtas-get-time-of-day-base rtas-set-time-of-day > > - emulator > > - | tee results.txt > > + - ACCEL=tcg MAX_SMP=8 ./run_tests.sh -g gitlab-ci | tee results.txt > > + - if grep -q FAIL results.txt ; then exit 1 ; fi > > + - ACCEL=tcg MAX_SMP=8 MACHINE=powernv ./run_tests.sh -g gitlab-ci | tee results.txt > > - if grep -q FAIL results.txt ; then exit 1 ; fi > > > > build-ppc64le: > > @@ -82,11 +80,9 @@ build-ppc64le: > > - dnf install -y qemu-system-ppc gcc-powerpc64-linux-gnu nmap-ncat > > - ./configure --arch=ppc64 --endian=little --cross-prefix=powerpc64-linux-gnu- > > - make -j2 > > - - ACCEL=tcg ./run_tests.sh > > - selftest-setup selftest-migration selftest-migration-skip spapr_hcall > > - rtas-get-time-of-day rtas-get-time-of-day-base rtas-set-time-of-day > > - emulator > > - | tee results.txt > > + - ACCEL=tcg MAX_SMP=8 ./run_tests.sh -g gitlab-ci | tee results.txt > > + - if grep -q FAIL results.txt ; then exit 1 ; fi > > + - ACCEL=tcg MAX_SMP=8 MACHINE=powernv ./run_tests.sh -g gitlab-ci | tee results.txt > > - if grep -q FAIL results.txt ; then exit 1 ; fi > > > > We're slowly migrating all tests like these to > > grep -q PASS results.txt && ! grep -q FAIL results.txt > > Here's a good opportunity to change ppc's. Sure, I'll do that. Thanks, Nick
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 61f196d5d..51a593021 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -69,11 +69,9 @@ build-ppc64be: - cd build - ../configure --arch=ppc64 --endian=big --cross-prefix=powerpc64-linux-gnu- - make -j2 - - ACCEL=tcg ./run_tests.sh - selftest-setup selftest-migration selftest-migration-skip spapr_hcall - rtas-get-time-of-day rtas-get-time-of-day-base rtas-set-time-of-day - emulator - | tee results.txt + - ACCEL=tcg MAX_SMP=8 ./run_tests.sh -g gitlab-ci | tee results.txt + - if grep -q FAIL results.txt ; then exit 1 ; fi + - ACCEL=tcg MAX_SMP=8 MACHINE=powernv ./run_tests.sh -g gitlab-ci | tee results.txt - if grep -q FAIL results.txt ; then exit 1 ; fi build-ppc64le: @@ -82,11 +80,9 @@ build-ppc64le: - dnf install -y qemu-system-ppc gcc-powerpc64-linux-gnu nmap-ncat - ./configure --arch=ppc64 --endian=little --cross-prefix=powerpc64-linux-gnu- - make -j2 - - ACCEL=tcg ./run_tests.sh - selftest-setup selftest-migration selftest-migration-skip spapr_hcall - rtas-get-time-of-day rtas-get-time-of-day-base rtas-set-time-of-day - emulator - | tee results.txt + - ACCEL=tcg MAX_SMP=8 ./run_tests.sh -g gitlab-ci | tee results.txt + - if grep -q FAIL results.txt ; then exit 1 ; fi + - ACCEL=tcg MAX_SMP=8 MACHINE=powernv ./run_tests.sh -g gitlab-ci | tee results.txt - if grep -q FAIL results.txt ; then exit 1 ; fi # build-riscv32: diff --git a/powerpc/unittests.cfg b/powerpc/unittests.cfg index e275f389b..21071a1a1 100644 --- a/powerpc/unittests.cfg +++ b/powerpc/unittests.cfg @@ -34,17 +34,17 @@ file = selftest.elf smp = 2 extra_params = -m 1g -append 'setup smp=2 mem=1024' -groups = selftest +groups = selftest gitlab-ci [selftest-migration] file = selftest-migration.elf machine = pseries -groups = selftest migration +groups = selftest migration gitlab-ci [selftest-migration-skip] file = selftest-migration.elf machine = pseries -groups = selftest migration +groups = selftest migration gitlab-ci extra_params = -append "skip" # This fails due to a QEMU TCG bug so KVM-only until QEMU is fixed upstream @@ -56,7 +56,7 @@ groups = migration [spapr_hcall] file = spapr_hcall.elf -machine = pseries +machine = pseries gitlab-ci [spapr_vpa] file = spapr_vpa.elf @@ -67,24 +67,25 @@ file = rtas.elf machine = pseries timeout = 5 extra_params = -append "get-time-of-day date=$(date +%s)" -groups = rtas +groups = rtas gitlab-ci [rtas-get-time-of-day-base] file = rtas.elf machine = pseries timeout = 5 extra_params = -rtc base="2006-06-17" -append "get-time-of-day date=$(date --date="2006-06-17 UTC" +%s)" -groups = rtas +groups = rtas gitlab-ci [rtas-set-time-of-day] file = rtas.elf machine = pseries extra_params = -append "set-time-of-day" timeout = 5 -groups = rtas +groups = rtas gitlab-ci [emulator] file = emulator.elf +groups = gitlab-ci [interrupts] file = interrupts.elf
This adds testing for the powernv machine, and adds a gitlab-ci test group instead of specifying all tests in .gitlab-ci.yml. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> --- .gitlab-ci.yml | 16 ++++++---------- powerpc/unittests.cfg | 15 ++++++++------- 2 files changed, 14 insertions(+), 17 deletions(-)