Skip to content
Snippets Groups Projects
Unverified Commit a34c1fa5 authored by Casey's avatar Casey :recycle:
Browse files

fixup! ci: add basic integration testing for pmb

parent 74344ee1
Branches
No related tags found
No related merge requests found
Pipeline #208629 passed
......@@ -6,25 +6,29 @@ if [ "$(id -u)" = 0 ]; then
exec su "${TESTUSER:-build}" -c "sh -e $0"
fi
pmbootstrap() {
./pmbootstrap.py --details-to-stdout "$@"
}
# Make sure that the work folder format is up to date, and that there are no
# mounts from aborted test cases (pmbootstrap#1595)
echo "Initializing pmbootstrap"
yes '' | ./pmbootstrap.py --details-to-stdout init
./pmbootstrap.py work_migrate
./pmbootstrap.py -q shutdown
pmbootstrap work_migrate
pmbootstrap -q shutdown
# TODO: make device configurable?
device="qemu-amd64"
# TODO: make UI configurable?
ui="phosh"
./pmbootstrap.py config device "$device"
./pmbootstrap.py config ui "$ui"
pmbootstrap config device "$device"
pmbootstrap config ui "$ui"
# NOTE: --no-image is used because building images makes pmb try to
# "modprobe loop". This fails in CI.
echo "Building $ui image for $device"
./pmbootstrap.py -y install --zap --password 147147 --no-image
pmbootstrap -y install --zap --password 147147 --no-image
echo "Building $ui image for $device, with FDE"
./pmbootstrap.py -y install --zap --password 147147 --fde --no-image
pmbootstrap -y install --zap --password 147147 --fde --no-image
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment