Skip to content
Snippets Groups Projects

ci: add basic integration test for pmb

Merged Clayton Craft requested to merge craftyguy/ci_integration_test into master
Compare and Show latest version
1 file
+ 14
8
Compare changes
  • Side-by-side
  • Inline
+ 14
8
@@ -7,22 +7,28 @@ if [ "$(id -u)" = 0 ]; then
fi
pmaports="$(cd "$(dirname "$0")"/..; pwd -P)"
pmbootstrap="./pmbootstrap.py"
# Make sure that the work folder format is up to date, and that there are no
# mounts from aborted test cases (pmbootstrap#1595)
pmbootstrap work_migrate
pmbootstrap config aports "$pmaports"
pmbootstrap -q shutdown
echo "Initializing pmbootstrap"
if ! "yes '' | ./pmbootstrap.py \
--details-to-stdout \
init \
>/tmp/pmb_init 2>&1"; then
cat /tmp/pmb_init
./pmbootstrap.py work_migrate
./pmbootstrap.py config aports "$pmaports"
./pmbootstrap.py -q shutdown
# TODO: make device configurable?
device="qemu-amd64"
# TODO: make UI configurable?
ui="phosh"
pmbootstrap config device "$device"
pmbootstrap config ui "$ui"
./pmbootstrap.py config device "$device"
./pmbootstrap.py config ui "$ui"
echo "Building $ui image for $device"
pmbootstrap -y install --zap --password 147147
./pmbootstrap.py -y install --zap --password 147147
echo "Building $ui image for $device, with FDE"
pmbootstrap -y install --zap --password 147147 --fde
./pmbootstrap.py -y install --zap --password 147147 --fde
Loading