Skip to contentSkip to conversation

travis.yml: Test the s390-ccw build, too

PATCH In review Thomas Huth 5 participants 6 messages Feb 6, 2020 – Feb 7, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 travis.yml: Test the s390-ccw build, too

Since we can now use a s390x host on Travis, we can also build and test the s390-ccw bios images there. For this we have to make sure that roms/SLOF is checked out, too, and then move the generated *.img files to the right location before running the tests.

---
 .travis.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)
.travis.yml +10 -0
index 6c0ec6cf69..c0eeff9caa 100644
@@ -508,6 +508,16 @@ matrix:
       env:
         - TEST_CMD="make check check-tcg V=1"
         - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user"
+      script:
+        - ( cd ${SRC_DIR} ; git submodule update --init roms/SLOF )
+        - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
+        - |
+          if [ "$BUILD_RC" -eq 0 ] ; then
+              mv pc-bios/s390-ccw/*.img pc-bios/ ;
+              ${TEST_CMD} ;
+          else
+              $(exit $BUILD_RC);
+          fi
 
     # Release builds
     # The make-release script expect a QEMU version, so our tag must start with a 'v'.
Signature · 1 line
2.18.1
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 22 lines · Thomas Huth

Since we can now use a s390x host on Travis, we can also build and test the s390-ccw bios images there. For this we have to make sure that roms/SLOF is checked out, too, and then move the generated *.img files to the right location before running the tests.

---
  .travis.yml | 10 ++++++++++
  1 file changed, 10 insertions(+)
.travis.yml +3 -0
index 6c0ec6cf69..c0eeff9caa 100644
@@ -508,6 +508,16 @@ matrix:
        env:
          - TEST_CMD="make check check-tcg V=1"
          - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user"
+      script:
+        - ( cd ${SRC_DIR} ; git submodule update --init roms/SLOF )
+        - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?

.travis.yml matrix: · line 523

Quoted 10 lines
.travis.yml +7 -0
+        - |
+          if [ "$BUILD_RC" -eq 0 ] ; then
+              mv pc-bios/s390-ccw/*.img pc-bios/ ;
+              ${TEST_CMD} ;
+          else
+              $(exit $BUILD_RC);
+          fi
 
      # Release builds
      # The make-release script expect a QEMU version, so our tag must start with a 'v'.

Maybe remove the trailing ", too" in subject...

https://travis-ci.org/philmd/qemu/jobs/647085877#L3190

Acked-by on v1 1/1
#2 lore raw
In reply to Thomas Huth
Quoted 4 lines · On Thu, 6 Feb 2020 21:25:43 +0100 Thomas Huth <[email protected]> wrote:

Since we can now use a s390x host on Travis, we can also build and test the s390-ccw bios images there. For this we have to make sure that roms/SLOF is checked out, too, and then move the generated *.img files to the right location before running the tests.

Oh, nice.

Quoted 11 lines
---
 .travis.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)
.travis.yml +0 -0
index 6c0ec6cf69..c0eeff9caa 100644

.travis.yml matrix: · line 517

Quoted 10 lines
.travis.yml +7 -0
@@ -508,6 +508,16 @@ matrix:
       env:
         - TEST_CMD="make check check-tcg V=1"
         - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user"
+      script:
+        - ( cd ${SRC_DIR} ; git submodule update --init roms/SLOF )
+        - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
+        - |
+          if [ "$BUILD_RC" -eq 0 ] ; then
+              mv pc-bios/s390-ccw/*.img pc-bios/ ;
+              ${TEST_CMD} ;

Out of curiousity: Which kind of tests are run for the net image?

.travis.yml matrix: · line 523

Quoted 6 lines
.travis.yml +3 -0
+          else
+              $(exit $BUILD_RC);
+          fi
 
     # Release builds
     # The make-release script expect a QEMU version, so our tag must start with a 'v'.
#3 lore raw
Quoted 25 lines · Cornelia Huck
Quoted 4 lines · On Thu, 6 Feb 2020 21:25:43 +0100 Thomas Huth <[email protected]> wrote:

Since we can now use a s390x host on Travis, we can also build and test the s390-ccw bios images there. For this we have to make sure that roms/SLOF is checked out, too, and then move the generated *.img files to the right location before running the tests.

Oh, nice.

Quoted 15 lines
---
 .travis.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)
.travis.yml +1 -0
index 6c0ec6cf69..c0eeff9caa 100644
@@ -508,6 +508,16 @@ matrix:
       env:
         - TEST_CMD="make check check-tcg V=1"
         - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user"
+      script:
Quoted 8 lines

.travis.yml matrix: · line 517

Quoted 6 lines
.travis.yml +6 -0
+        - ( cd ${SRC_DIR} ; git submodule update --init roms/SLOF )
+        - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
+        - |
+          if [ "$BUILD_RC" -eq 0 ] ; then
+              mv pc-bios/s390-ccw/*.img pc-bios/ ;
+              ${TEST_CMD} ;

Out of curiousity: Which kind of tests are run for the net image?

The tests/qtest/pxe-test.c test exercises the netboot. (and tests/qtest/cdrom-test.c execises booting from disk)

We could maybe add also add more complex test in "check-acceptance" later, but that's something for another day...

Thomas

#4 lore raw
Quoted 10 lines · Thomas Huth
Quoted 9 lines · Cornelia Huck
Quoted 4 lines · On Thu, 6 Feb 2020 21:25:43 +0100 Thomas Huth <[email protected]> wrote:

Since we can now use a s390x host on Travis, we can also build and test the s390-ccw bios images there. For this we have to make sure that roms/SLOF is checked out, too, and then move the generated *.img files to the right location before running the tests.

Oh, nice.

Yes, very cool.

#5 lore raw
In reply to Thomas Huth
Quoted 6 lines · Thomas Huth

Since we can now use a s390x host on Travis, we can also build and test the s390-ccw bios images there. For this we have to make sure that roms/SLOF is checked out, too, and then move the generated *.img files to the right location before running the tests.

Queued to testing/next, thanks.

Quoted 25 lines
---
 .travis.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)
.travis.yml +10 -0
index 6c0ec6cf69..c0eeff9caa 100644
@@ -508,6 +508,16 @@ matrix:
       env:
         - TEST_CMD="make check check-tcg V=1"
         - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user"
+      script:
+        - ( cd ${SRC_DIR} ; git submodule update --init roms/SLOF )
+        - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
+        - |
+          if [ "$BUILD_RC" -eq 0 ] ; then
+              mv pc-bios/s390-ccw/*.img pc-bios/ ;
+              ${TEST_CMD} ;
+          else
+              $(exit $BUILD_RC);
+          fi
 
     # Release builds
     # The make-release script expect a QEMU version, so our tag must start with a 'v'.
Signature · 1 line
Alex Bennée