1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-12 08:58:20 +03:00

26 lines
583 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# SPDX-License-Identifier: LGPL-2.1-or-later
2019-07-07 17:30:15 +02:00
set -e
2019-07-07 17:30:15 +02:00
TEST_DESCRIPTION="testing homed"
2021-11-15 16:21:37 +01:00
# Skip the qemu version of the test, unless we have btrfs
(modprobe -nv btrfs && command -v mkfs.btrfs) || TEST_NO_QEMU=1
2019-07-07 17:30:15 +02:00
# shellcheck source=test/test-functions
. "${TEST_BASE_DIR:?}/test-functions"
2019-07-07 17:30:15 +02:00
2021-11-15 16:21:37 +01:00
# Need loop devices for mounting images
test_append_files() {
(
if [ "$TEST_NO_QEMU" != "1" ] ; then
instmods loop =block
install_dmevent
install_btrfs
generate_module_dependencies
fi
)
}
do_test "$@"