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-11 08:49:24 +00:00
|
|
|
if command -v openssl >/dev/null 2>&1; then
|
|
|
|
inst_binary openssl
|
|
|
|
fi
|
2022-10-11 08:50:58 +00:00
|
|
|
inst_binary mcopy
|
2022-09-05 22:45:32 +00:00
|
|
|
instmods dm_verity =md
|
2022-08-19 19:59:03 +00:00
|
|
|
generate_module_dependencies
|
2022-11-10 11:33:02 +00:00
|
|
|
image_install -o /sbin/mksquashfs
|
2022-08-19 19:59:03 +00:00
|
|
|
fi
|
2022-08-19 19:37:00 +00:00
|
|
|
}
|
|
|
|
|
2021-04-26 17:20:18 +00:00
|
|
|
do_test "$@"
|