summaryrefslogtreecommitdiff
path: root/test/test-functions
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2022-04-07 18:03:17 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-04-14 00:12:02 +0900
commit3c9af05caeb0dcc7fc60b5b5a2d43e991425c993 (patch)
treefe9e2c6dffd495d579daaa3ee528db969f1a5259 /test/test-functions
parent9a78ee002f14cf1feeb2d4a13ad9936a2f755e02 (diff)
downloadsystemd-3c9af05caeb0dcc7fc60b5b5a2d43e991425c993.tar.gz
test: add MD-related tests to TEST-64
Diffstat (limited to 'test/test-functions')
-rw-r--r--test/test-functions23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/test-functions b/test/test-functions
index 47eae9f0cb..b5a618c741 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -1055,6 +1055,29 @@ install_iscsi() {
fi
}
+install_mdadm() {
+ local unit
+ local mdadm_units=(
+ system/mdadm-grow-continue@.service
+ system/mdadm-last-resort@.service
+ system/mdadm-last-resort@.timer
+ system/mdmon@.service
+ system/mdmonitor-oneshot.service
+ system/mdmonitor-oneshot.timer
+ system/mdmonitor.service
+ system-shutdown/mdadm.shutdown
+ )
+
+ image_install mdadm mdmon
+ inst_rules 01-md-raid-creating.rules 63-md-raid-arrays.rules 64-md-raid-assembly.rules 69-md-clustered-confirm-device.rules
+ # Fedora/CentOS/RHEL ships this rule file
+ [[ -f /lib/udev/rules.d/65-md-incremental.rules ]] && inst_rules 65-md-incremental.rules
+
+ for unit in "${mdadm_units[@]}"; do
+ image_install "${ROOTLIBDIR:?}/$unit"
+ done
+}
+
install_compiled_systemd() {
dinfo "Install compiled systemd"