2021-04-19 15:30:33 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-10-17 16:13:06 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2021-04-19 15:30:33 +00:00
|
|
|
set -e
|
2021-09-29 18:30:08 +00:00
|
|
|
|
2021-04-19 15:30:33 +00:00
|
|
|
TEST_DESCRIPTION="test systemd-repart"
|
2022-11-10 11:33:02 +00:00
|
|
|
IMAGE_NAME="repart"
|
|
|
|
TEST_FORCE_NEWIMAGE=1
|
2021-09-29 18:30:08 +00:00
|
|
|
|
|
|
|
# shellcheck source=test/test-functions
|
|
|
|
. "$TEST_BASE_DIR/test-functions"
|
2021-04-19 15:30:33 +00:00
|
|
|
|
2022-08-19 19:37:00 +00:00
|
|
|
test_append_files() {
|
2022-08-19 19:59:03 +00:00
|
|
|
if ! get_bool "${TEST_NO_QEMU:=}"; then
|
|
|
|
install_dmevent
|
2022-09-05 22:45:32 +00:00
|
|
|
instmods dm_verity =md
|
2022-12-09 15:08:54 +00:00
|
|
|
instmods erofs
|
2022-08-19 19:59:03 +00:00
|
|
|
generate_module_dependencies
|
2023-03-14 09:08:11 +00:00
|
|
|
image_install -o mksquashfs
|
|
|
|
image_install -o mkfs.erofs
|
2022-08-19 19:59:03 +00:00
|
|
|
fi
|
2022-11-10 14:40:00 +00:00
|
|
|
|
|
|
|
inst_binary mcopy
|
|
|
|
if command -v openssl >/dev/null 2>&1; then
|
|
|
|
inst_binary openssl
|
|
|
|
fi
|
2022-08-19 19:37:00 +00:00
|
|
|
}
|
|
|
|
|
2021-04-26 17:20:18 +00:00
|
|
|
do_test "$@"
|