1 # Currently we have two build stages after our containers are built:
2 # - build (for traditional build and test or first stage build)
3 # - test (for test stages, using build artefacts from a build stage)
11 # We assume GitLab has it's own caching set up for RPM/APT repositories so we
12 # just take care of avocado assets here.
15 - $HOME/avocado/data/cache
18 - local: '/.gitlab-ci.d/edk2.yml'
19 - local: '/.gitlab-ci.d/opensbi.yml'
20 - local: '/.gitlab-ci.d/containers.yml'
22 .native_build_job_template: &native_build_job_definition
24 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
26 - JOBS=$(expr $(nproc) + 1)
30 - if test -n "$TARGETS";
32 ../configure --enable-werror $CONFIGURE_ARGS --target-list="$TARGETS" ;
34 ../configure --enable-werror $CONFIGURE_ARGS ;
37 - if test -n "$MAKE_CHECK_ARGS";
39 make $MAKE_CHECK_ARGS ;
42 .native_test_job_template: &native_test_job_definition
44 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
47 - find . -type f -exec touch {} +
48 - make $MAKE_CHECK_ARGS
50 .post_acceptance_template: &post_acceptance
53 - python3 -c 'import json; r = json.load(open("tests/results/latest/results.json")); [print(t["logfile"]) for t in r["tests"] if t["status"] not in ("PASS", "SKIP")]' | xargs cat
54 - du -chs $HOME/avocado/data/cache
56 build-system-ubuntu-main:
57 <<: *native_build_job_definition
60 TARGETS: aarch64-softmmu alpha-softmmu cris-softmmu hppa-softmmu lm32-softmmu
61 moxie-softmmu microblazeel-softmmu mips64el-softmmu m68k-softmmu ppc-softmmu
62 riscv64-softmmu sparc-softmmu
67 check-system-ubuntu-main:
68 <<: *native_test_job_definition
70 - job: build-system-ubuntu-main
74 MAKE_CHECK_ARGS: check
76 acceptance-system-ubuntu-main:
77 <<: *native_test_job_definition
79 - job: build-system-ubuntu-main
83 MAKE_CHECK_ARGS: check-acceptance
86 build-system-fedora-alt:
87 <<: *native_build_job_definition
90 TARGETS: tricore-softmmu unicore32-softmmu microblaze-softmmu mips-softmmu
91 riscv32-softmmu s390x-softmmu sh4-softmmu sparc64-softmmu x86_64-softmmu
92 xtensa-softmmu nios2-softmmu or1k-softmmu
97 check-system-fedora-alt:
98 <<: *native_test_job_definition
100 - job: build-system-fedora-alt
104 MAKE_CHECK_ARGS: check
106 acceptance-system-fedora-alt:
107 <<: *native_test_job_definition
109 - job: build-system-fedora-alt
113 MAKE_CHECK_ARGS: check-acceptance
117 <<: *native_build_job_definition
120 CONFIGURE_ARGS: --disable-rdma --disable-slirp --disable-curl
121 --disable-capstone --disable-live-block-migration --disable-glusterfs
122 --disable-replication --disable-coroutine-pool --disable-smartcard
123 --disable-guest-agent --disable-curses --disable-libxml2 --disable-tpm
124 --disable-qom-cast-debug --disable-spice --disable-vhost-vsock
125 --disable-vhost-net --disable-vhost-crypto --disable-vhost-user
126 TARGETS: i386-softmmu ppc64-softmmu mips64-softmmu i386-linux-user
127 MAKE_CHECK_ARGS: check-qtest SPEED=slow
130 <<: *native_build_job_definition
136 - ../configure --disable-tcg --audio-drv-list=""
139 - make check-qapi-schema
140 - cd tests/qemu-iotests/
141 - ./check -raw 001 002 003 004 005 008 009 010 011 012 021 025 032 033 048
142 052 063 077 086 101 104 106 113 148 150 151 152 157 159 160 163
143 170 171 183 184 192 194 197 208 215 221 222 226 227 236 253 277
144 - ./check -qcow2 028 051 056 057 058 065 067 068 082 085 091 095 096 102 122
145 124 132 139 142 144 145 151 152 155 157 165 194 196 197 200 202
146 208 209 215 216 218 222 227 234 246 247 248 250 254 255 257 258
147 260 261 262 263 264 270 272 273 277 279
150 <<: *native_build_job_definition
152 IMAGE: debian-all-test-cross
153 CONFIGURE_ARGS: --disable-tools --disable-system
154 MAKE_CHECK_ARGS: check-tcg
157 <<: *native_build_job_definition
160 CONFIGURE_ARGS: --cc=clang --cxx=clang++
161 TARGETS: alpha-softmmu arm-softmmu m68k-softmmu mips64-softmmu
162 ppc-softmmu s390x-softmmu x86_64-softmmu arm-linux-user
163 MAKE_CHECK_ARGS: check
166 <<: *native_build_job_definition
170 - TARGETS="aarch64 alpha arm hppa m68k microblaze moxie ppc64 s390x x86_64"
173 - ../configure --enable-tcg-interpreter
174 --target-list="$(for tg in $TARGETS; do echo -n ${tg}'-softmmu '; done)"
176 - make run-tcg-tests-x86_64-softmmu
177 - make tests/qtest/boot-serial-test tests/qtest/cdrom-test tests/qtest/pxe-test
178 - for tg in $TARGETS ; do
179 export QTEST_QEMU_BINARY="${tg}-softmmu/qemu-system-${tg}" ;
180 ./tests/qtest/boot-serial-test || exit 1 ;
181 ./tests/qtest/cdrom-test || exit 1 ;
183 - QTEST_QEMU_BINARY="x86_64-softmmu/qemu-system-x86_64" ./tests/qtest/pxe-test
184 - QTEST_QEMU_BINARY="s390x-softmmu/qemu-system-s390x" ./tests/qtest/pxe-test -m slow