2 - local: '/.gitlab-ci.d/edk2.yml'
3 - local: '/.gitlab-ci.d/opensbi.yml'
5 .update_apt_template: &before_script_apt
8 - apt-get install -y -qq git gcc libglib2.0-dev libpixman-1-dev make
10 - JOBS=$(expr $(nproc) + 1)
12 .update_dnf_template: &before_script_dnf
15 - dnf install -y bzip2 diffutils gcc git genisoimage findutils glib2-devel
16 make python3 perl-podlators perl-Test-Harness pixman-devel zlib-devel
17 - JOBS=$(expr $(nproc) + 1)
21 <<: *before_script_apt
23 - apt-get install -y -qq libgtk-3-dev libvte-dev nettle-dev libcacard-dev
24 libusb-dev libvde-dev libspice-protocol-dev libgl1-mesa-dev libvdeplug-dev
27 - ../configure --enable-werror --target-list="aarch64-softmmu alpha-softmmu
28 cris-softmmu hppa-softmmu lm32-softmmu moxie-softmmu microblazeel-softmmu
29 mips64el-softmmu m68k-softmmu ppc-softmmu riscv64-softmmu sparc-softmmu"
31 - make -j"$JOBS" check
35 <<: *before_script_dnf
37 - yum install -y SDL2-devel libgcrypt-devel brlapi-devel libaio-devel
38 libfdt-devel lzo-devel librdmacm-devel libibverbs-devel libibumad-devel
42 - ../configure --enable-werror --target-list="tricore-softmmu unicore32-softmmu
43 microblaze-softmmu mips-softmmu riscv32-softmmu s390x-softmmu sh4-softmmu
44 sparc64-softmmu x86_64-softmmu xtensa-softmmu nios2-softmmu or1k-softmmu"
46 - make -j"$JOBS" check
50 <<: *before_script_dnf
54 - ../configure --enable-werror --disable-rdma --disable-slirp --disable-curl
55 --disable-capstone --disable-live-block-migration --disable-glusterfs
56 --disable-replication --disable-coroutine-pool --disable-smartcard
57 --disable-guest-agent --disable-curses --disable-libxml2 --disable-tpm
58 --disable-qom-cast-debug --disable-spice --disable-vhost-vsock
59 --disable-vhost-net --disable-vhost-crypto --disable-vhost-user
60 --target-list="i386-softmmu ppc64-softmmu mips64-softmmu i386-linux-user"
62 - make -j"$JOBS" check-qtest SPEED=slow
66 <<: *before_script_dnf
68 - dnf install -y clang gtk3-devel libusbx-devel libgcrypt-devel
71 - ../configure --cc=clang --enable-werror --disable-tcg --audio-drv-list=""
74 - make check-qapi-schema
75 - cd tests/qemu-iotests/
76 - ./check -raw 001 002 003 004 005 008 009 010 011 012 021 025 032 033 048
77 052 063 077 086 101 104 106 113 148 150 151 152 157 159 160 163
78 170 171 183 184 192 194 197 208 215 221 222 226 227 236 253 277
79 - ./check -qcow2 028 051 056 057 058 065 067 068 082 085 091 095 096 102 122
80 124 132 139 142 144 145 151 152 155 157 165 194 196 197 200 202
81 208 209 215 216 218 222 227 234 246 247 248 250 254 255 257 258
82 260 261 262 263 264 270 272 273 277 279
85 <<: *before_script_apt
89 - ../configure --enable-werror --disable-system --disable-guest-agent
90 --disable-capstone --disable-slirp --disable-fdt
92 - make run-tcg-tests-i386-linux-user run-tcg-tests-x86_64-linux-user
96 <<: *before_script_dnf
98 - yum install -y clang SDL2-devel libattr-devel libcap-ng-devel xfsprogs-devel
99 libiscsi-devel libnfs-devel libseccomp-devel gnutls-devel librbd-devel
102 - ../configure --cc=clang --cxx=clang++ --enable-werror
103 --target-list="alpha-softmmu arm-softmmu m68k-softmmu mips64-softmmu
104 ppc-softmmu s390x-softmmu x86_64-softmmu arm-linux-user"
106 - make -j"$JOBS" check
110 <<: *before_script_dnf
112 - TARGETS="aarch64 alpha arm hppa m68k microblaze moxie ppc64 s390x x86_64"
115 - ../configure --enable-tcg-interpreter
116 --target-list="$(for tg in $TARGETS; do echo -n ${tg}'-softmmu '; done)"
118 - make run-tcg-tests-x86_64-softmmu
119 - make tests/qtest/boot-serial-test tests/qtest/cdrom-test tests/qtest/pxe-test
120 - for tg in $TARGETS ; do
121 export QTEST_QEMU_BINARY="${tg}-softmmu/qemu-system-${tg}" ;
122 ./tests/qtest/boot-serial-test || exit 1 ;
123 ./tests/qtest/cdrom-test || exit 1 ;
125 - QTEST_QEMU_BINARY="x86_64-softmmu/qemu-system-x86_64" ./tests/qtest/pxe-test
126 - QTEST_QEMU_BINARY="s390x-softmmu/qemu-system-s390x"
127 ./tests/qtest/pxe-test -m slow