test: update Ubuntu CI docs

This commit is contained in:
Frantisek Sumsal 2023-01-19 13:54:19 +01:00
parent 5908d86425
commit 48e582d7fe

View file

@ -171,7 +171,7 @@ Manually running a part of the Ubuntu CI test suite
In some situations one may want/need to run one of the tests run by Ubuntu CI
locally for debugging purposes. For this, you need a machine (or a VM) with
the same Ubuntu release as is used by Ubuntu CI (Focal ATTOW).
the same Ubuntu release as is used by Ubuntu CI (Jammy ATTOW).
First of all, clone the Debian systemd repository and sync it with the code of
the PR (set by the $UPSTREAM_PULL_REQUEST env variable) you'd like to debug:
@ -186,18 +186,16 @@ Now install necessary build & test dependencies:
## PPA with some newer Ubuntu packages required by upstream systemd
# add-apt-repository -y ppa:upstream-systemd-ci/systemd-ci
# apt build-dep -y systemd
# apt install -y autopkgtest debhelper genisoimage git qemu-system-x86 \
libzstd-dev libfdisk-dev libtss2-dev libfido2-dev libssl-dev \
python3-jinja2 zstd
# apt install -y autopkgtest debhelper genisoimage git qemu-system-x86
Build systemd deb packages with debug info:
# DEB_BUILD_OPTIONS="nocheck nostrip" dpkg-buildpackage -us -uc
# TEST_UPSTREAM=1 DEB_BUILD_OPTIONS="nocheck nostrip" dpkg-buildpackage -us -uc
# cd ..
Prepare a testbed image for autopkgtest (tweak the release as necessary):
# autopkgtest-buildvm-ubuntu-cloud -v -a amd64 -r focal
# autopkgtest-buildvm-ubuntu-cloud --ram-size 1024 -v -a amd64 -r jammy
And finally run the autopkgtest itself:
@ -205,7 +203,7 @@ And finally run the autopkgtest itself:
--timeout-factor=3 \
--test-name=boot-and-services \
--shell-fail \
-- autopkgtest-virt-qemu autopkgtest-focal-amd64.img
-- autopkgtest-virt-qemu --ram-size 2048 autopkgtest-jammy-amd64.img
where --test-name= is the name of the test you want to run/debug. The
--shell-fail option will pause the execution in case the test fails and shows