From 788a0ef17947ce0627759b40cee3e99494412eeb Mon Sep 17 00:00:00 2001 From: Tony Asleson Date: Thu, 4 Nov 2021 14:19:56 -0500 Subject: test: exercise sytemd-integritysetup & generator Ensures we can open a dm-integrity volume formated with integritysetup. --- test/TEST-67-INTEGRITY/Makefile | 1 + test/TEST-67-INTEGRITY/test.sh | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 120000 test/TEST-67-INTEGRITY/Makefile create mode 100755 test/TEST-67-INTEGRITY/test.sh (limited to 'test/TEST-67-INTEGRITY') diff --git a/test/TEST-67-INTEGRITY/Makefile b/test/TEST-67-INTEGRITY/Makefile new file mode 120000 index 0000000000..e9f93b1104 --- /dev/null +++ b/test/TEST-67-INTEGRITY/Makefile @@ -0,0 +1 @@ +../TEST-01-BASIC/Makefile \ No newline at end of file diff --git a/test/TEST-67-INTEGRITY/test.sh b/test/TEST-67-INTEGRITY/test.sh new file mode 100755 index 0000000000..dcc1efd222 --- /dev/null +++ b/test/TEST-67-INTEGRITY/test.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later +set -e + +TEST_DESCRIPTION="dm-integrity test" + +TEST_NO_NSPAWN=1 +QEMU_TIMEOUT=300 + +# shellcheck source=test/test-functions +. "${TEST_BASE_DIR:?}/test-functions" + +test_append_files() {( + + instmods loop =block + instmods dm_integrity =md + + inst_binary losetup + inst_binary integritysetup + inst_binary blkid + install_dmevent + + generate_module_dependencies + +)} + +do_test "$@" -- cgit v1.2.3