automation/cirrus-ci: add smoke tests for the FreeBSD builds

Introduce a basic set of smoke tests using the XTF selftest image, and run
them on QEMU.  Use the matrix keyword to create a different task for each
XTF flavor on each FreeBSD build.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Oleksii Kurochko<oleksii.kurochko@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
Roger Pau Monne committed 2025-03-26 17:02:21 +01:00
1 parent c9de0e2ce4
commit 7973cba4db
2 files changed
+55

No files matched your search

+54
View File
@@ -5,6 +5,8 @@ freebsd_versions: &FREEBSD_VERSIONS
FREEBSD_PRODUCTION: freebsd-14-2
FREEBSD_CURRENT: freebsd-15-0-snap
# Build jobs
freebsd_template: &FREEBSD_ENV
environment:
APPEND_LIB: /usr/local/lib
@@ -118,3 +120,55 @@ task:
xtf_artifacts:
path: xtf/tests/selftest/test-*-selftest
type: application/octet-stream
# Test jobs
task:
name: 'FreeBSD: XTF selftest'
<< : *FREEBSD_ENV_PRODUCTION
env:
matrix:
FREEBSD_BUILD: $FREEBSD_LEGACY
FREEBSD_BUILD: $FREEBSD_PRODUCTION
FREEBSD_BUILD: $FREEBSD_CURRENT
depends_on:
- freebsd_full_$FREEBSD_BUILD
- xtf
install_script: pkg install -y qemu-nox11 expect
env:
matrix:
XTF_ARCH: hvm32
XTF_ARCH: hvm32pae
XTF_ARCH: hvm32pse
XTF_ARCH: hvm64
XTF_ARCH: pv64
fetch_script:
- fetch https://api.cirrus-ci.com/v1/artifact/build/$CIRRUS_BUILD_ID/xtf/xtf.zip
- fetch https://api.cirrus-ci.com/v1/artifact/build/$CIRRUS_BUILD_ID/freebsd_full_$FREEBSD_BUILD/xen.zip
- unzip xtf.zip
- unzip xen.zip
test_script: |
case "$XTF_ARCH" in \
*hvm*) \
XEN_EXTRA_CMD="dom0=pvh dom0-iommu=none" \
;; \
esac
export TEST_CMD="qemu-system-x86_64 -kernel xen/xen -initrd xtf/tests/selftest/test-${XTF_ARCH}-selftest \
-append \"loglvl=all console=com1 noreboot console_timestamps=boot dom0=verbose ${XEN_EXTRA_CMD}\" \
-m 512 -nographic -monitor none -serial stdio"
export TEST_LOG="serial-${FREEBSD_BUILD}-${XTF_ARCH}.txt"
export PASSED="Test result: SUCCESS"
export TEST_TIMEOUT=120
./automation/scripts/console.exp | sed 's/\r\+$//'
always:
serial_artifacts:
path: serial-*.txt
type: text/plain
+1
View File
@@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Resizable BARs is supported for PVH dom0.
- Support PCI passthrough for HVM domUs when dom0 is PVH (note SR-IOV
capability usage is not yet supported on PVH dom0).
- Smoke tests for the FreeBSD Xen builds in Cirrus CI.
### Removed
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.