forked from rapido-linux/rapido
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cut_fstests_local.sh
executable file
·46 lines (42 loc) · 1.99 KB
/
cut_fstests_local.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
#
# Copyright (C) SUSE LINUX GmbH 2016, all rights reserved.
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 2.1 of the License, or
# (at your option) version 3.
#
# This library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
RAPIDO_DIR="$(realpath -e ${0%/*})"
. "${RAPIDO_DIR}/runtime.vars"
_rt_require_dracut_args
_rt_require_fstests
_rt_require_lib "libkeyutils.so.1 libhandle.so.1 libssl.so.1 libgdbm.so libgdbm_compat.so"
dracut --install "tail blockdev ps rmdir resize dd vim grep find df sha256sum \
strace mkfs mkfs.btrfs mkfs.xfs \
which perl awk bc touch cut chmod true false unlink \
mktemp getfattr setfattr chacl attr killall hexdump sync \
id sort uniq date expr tac diff head dirname seq \
basename tee egrep xfs_freeze xfs_db xfs_io xfs_info \
xfs_logprint xfs_repair xfs_growfs xfs_quota xfs_bmap \
fstrim fio logger dmsetup chattr lsattr cmp stat \
dbench /usr/share/dbench/client.txt hostname getconf md5sum \
od wc getfacl setfacl tr xargs sysctl link truncate quota \
repquota setquota quotacheck quotaon pvremove vgremove \
xfs_mkfile xfs_mdrestore xfs_metadump xfs_fsr xfsdump \
chgrp du fgrep pgrep tar \
$LIBS_INSTALL_LIST" \
--include "$FSTESTS_SRC" "/fstests" \
--include "$RAPIDO_DIR/fstests_local_autorun.sh" "/.profile" \
--include "$RAPIDO_DIR/rapido.conf" "/rapido.conf" \
--include "$RAPIDO_DIR/vm_autorun.env" "/vm_autorun.env" \
--add-drivers "zram lzo dm-snapshot dm-flakey xfs btrfs raid6_pq" \
--modules "bash base" \
$DRACUT_EXTRA_ARGS \
$DRACUT_OUT || _fail "dracut failed"
_rt_xattr_vm_networkless_set "$DRACUT_OUT"
_rt_xattr_vm_resources_set "$DRACUT_OUT" "2" "2048M"