1#!/usr/bin/env bash 2# SPDX-License-Identifier: LGPL-2.1-or-later 3set -e 4 5TEST_DESCRIPTION="testing homed" 6 7# Skip the qemu version of the test, unless we have btrfs 8(modprobe -nv btrfs && command -v mkfs.btrfs) || TEST_NO_QEMU=1 9 10# shellcheck source=test/test-functions 11. "${TEST_BASE_DIR:?}/test-functions" 12 13# Need loop devices for mounting images 14test_append_files() { 15 ( 16 if [ "$TEST_NO_QEMU" != "1" ] ; then 17 instmods loop =block 18 install_dmevent 19 install_btrfs 20 generate_module_dependencies 21 fi 22 ) 23} 24 25do_test "$@" 26