Harald Hoyer
0a10d7fc51
TEST-30-ISCSI: fix test to run with new iscsi
...
(cherry picked from commit 836ca3f47e
)
2015-11-11 15:53:48 +01:00
Harald Hoyer
6251f82c6f
TEST-30-ISCSI: add rd.scsi.firmware
...
(cherry picked from commit 310574f7ea
)
2015-11-11 15:12:05 +01:00
Harald Hoyer
0a66b74b51
TEST-30-ISCSI: test more and set static initiator name
2015-08-13 11:54:24 +02:00
Harald Hoyer
c22c43f81a
TEST-30-ISCSI: switch to scsi-target-utils
...
netbsd-iscsi is not available on RHEL
Beef up the testsuite to use the two targets over different
interfaces.
Test the new iSCSI parameters rd.iscsi.waitnet and rd.iscsi.testroute.
2015-08-12 14:48:19 +02:00
Harald Hoyer
52b91b6698
TEST-30-ISCSI/dhcpd.conf: set the LUN
...
set the LUN, so the udev rule to mount the disk matches
2015-08-12 14:40:42 +02:00
Harald Hoyer
ff55a8939c
Merge pull request #81 from floppym/printf2
...
Replace echo -n with printf in code with a /bin/sh shebang
2015-07-16 12:02:48 +02:00
Harald Hoyer
e50f91e600
use mktemp "-p" instead of "--tmpdir" for busybox
2015-07-15 11:47:43 +02:00
Mike Gilbert
5899f2f516
Replace echo -n with printf in code with a /bin/sh shebang
...
POSIX does not mandate that echo support the -n parameter.
printf has more well-defined behavior.
2015-07-14 22:22:14 -04:00
Harald Hoyer
7ecb36aef4
TEST-50-MULTINIC/test.sh: correctly call ldconfig
2015-07-07 15:34:30 +02:00
Harald Hoyer
3fa31c3a47
TEST-14-IMSM: remove "rd.auto"
...
otherwise rd.auto auto assembles the device
2015-07-07 14:31:16 +02:00
Harald Hoyer
9ee2f1e235
TEST-04-FULL-SYSTEMD: fixup loadkeys keymap loading
2015-07-07 14:31:06 +02:00
Harald Hoyer
777f2db037
splitup dracut-init.sh from dracut-functions.sh
...
other tools want to source dracut-functions.sh without any mkdir side
effects.
2015-07-02 16:04:05 +02:00
Harald Hoyer
3944c4b136
TEST-16-DMSQUASH: add more debug parms
2015-06-11 17:39:47 +02:00
Harald Hoyer
97ff396a97
run-qemu: default kernel to "/lib/modules/${KVERSION}/vmlinuz"
...
newer Fedora kernel install the kernel to /lib/modules
2015-06-11 17:39:47 +02:00
Harald Hoyer
4358ace43c
fixup test suite
...
- qemu wants to have "format=raw"
- "-kernel" is obsolete, because run-qemu picks the right path
2015-06-09 13:36:46 +02:00
Harald Hoyer
6d58fa27a4
change "while read x" to cope with EOF without newline
...
while read x || [ -n "$x" ]
should do the trick
2015-04-28 11:39:15 +02:00
Harald Hoyer
e93d0bea38
test: include kernel-network-modules for network tests
2015-03-26 10:57:58 +01:00
Harald Hoyer
3c20ac5377
TEST-30-ISCSI/test.sh: add all dracut modules
...
add all dracut modules to catch netroot conflicts and side effects like
afcc697cb8
2015-03-20 16:13:30 +01:00
Harald Hoyer
481ee9e6fc
test: ping watchdog in dhcp servers
2015-03-20 14:28:42 +01:00
Harald Hoyer
04942c4569
test/*NFS* : add dhcpd debug flag
2015-01-31 12:24:02 +01:00
Harald Hoyer
296d013f1a
TEST-30-ISCSI: turn off iscsi_firmware
...
Having iscsi_firmware on the kernel cmdline stalls until firmware is
found. qemu does not have this.
2015-01-31 12:22:45 +01:00
Harald Hoyer
8a430ab25b
test: use the new sfdisk syntax without disk geometry
2015-01-22 16:02:54 +01:00
Harald Hoyer
2a5a7fb662
test/TEST-04-FULL-SYSTEMD/test.sh: fix the find -perm
...
"find -perm +111" should be "find -perm /0111" as it is deprecated since
a long time
2015-01-22 16:00:50 +01:00
Marko Myllynen
b4fb539c9b
Change Fedora default console font to eurlatgr
...
See https://fedoraproject.org/wiki/Changes/NewDefaultConsoleFont
2015-01-22 15:51:03 +01:00
Harald Hoyer
e3e1f406bb
test: turn off hostonly-cmdline and hostonly
2015-01-21 09:33:39 +01:00
Harald Hoyer
eda73c0ad2
test: add "fs-lib" to dracut module list
2014-10-24 13:19:34 +02:00
Harald Hoyer
f44b084660
TEST-99-RPM: ignore more files
2014-10-24 13:18:35 +02:00
Harald Hoyer
cfd51d2be2
TEST-30-ISCSI: udev does not export path_id for iscsi
...
therefore root=iscsi.... does not work anymore :-/
disabled for now
2014-10-24 13:17:30 +02:00
Harald Hoyer
967cc19ab1
remove all vim and emacs code format comments
2014-08-29 13:38:47 +02:00
Harald Hoyer
068531232b
test: make testsuite work with the new systemd minimal root req
...
systemd needs more directories to switch root
2014-08-08 13:34:04 +02:00
Harald Hoyer
4e1f8d0c5f
TEST-20-NFS: add more commands and fix client root dirs
2014-08-01 13:15:44 +02:00
Harald Hoyer
28d03673f9
TEST-20-NFS:client-init.sh: add shell on rd.shell
2014-08-01 13:15:05 +02:00
Harald Hoyer
ece72160ce
test/TEST-30-ISCSI: add rd.shell to client root
2014-07-22 14:22:21 +02:00
Harald Hoyer
44537b7bf8
TEST-15-BTRFSRAID: install /etc/os-release
...
makes systemd switch-root happy
2014-06-30 12:03:12 +02:00
Harald Hoyer
e54d961160
test: add udev settle after sfdisk
2014-06-30 12:03:12 +02:00
Harald Hoyer
b0d844fa74
TEST-04-FULL-SYSTEMD/test.sh: removed debug comments
2014-06-30 12:03:11 +02:00
Chapman Flack
9cf339ada3
Correct strstr/strglobin in test suite.
...
Previous commit included versions of strstr/strglobin in the test
suite files that did not match those in dracut-lib.sh.
2014-04-07 10:49:07 +02:00
Chapman Flack
2c19a5fa78
Specify strstr tightly, add strglob/strglobin.
...
By convention, strstr should be a literal string match. Previously, it
would match as a glob pattern. Some code used that, so add new
functions strglob and strglobin to do what that code expects, and
specify them tightly too. strglob tests whether the glob pattern
matches the entire string (the name strglob is also used in the yorick
language, and that's what it does there), while strglobin tests whether
the glob pattern matches anywhere in the string.
Also tightens str_starts, str_ends, and str_replace to deal with
literal strings only. In a quick grep I did not find code that depended
on these functions matching globs.
Changes the call sites where strstr was used with glob patterns to use
strglobin or strglob as the intention seemed to be (or, in one case,
strstr with the * removed as it did not affect the result anyway).
2014-04-07 10:49:07 +02:00
Harald Hoyer
3a62030116
test/TEST-50-MULTINIC/client-init.sh: skip MAC marker files
2014-02-28 13:26:13 +01:00
Harald Hoyer
be1c0381e5
test/Makefile: add SKIP env to skip certain tests
2014-02-28 13:25:39 +01:00
Harald Hoyer
6fe0abbf12
test: add missing Makefile.testdir
2014-02-28 12:57:57 +01:00
Harald Hoyer
f52759131b
test: include the same Makefile.testdir
2014-02-04 12:01:11 +01:00
Harald Hoyer
ab6f4a825e
iscsi: do iscsi_firmware regardless of network
...
Do the iscsi_firmware iscsistart at least once, even if the network is
not up, to activate offload HBA iSCSI.
https://bugzilla.redhat.com/show_bug.cgi?id=1031160
2013-12-18 15:22:24 +01:00
Harald Hoyer
859e3a77d0
test/TEST-17-LVM-THIN: remove .testdir
2013-12-17 13:36:55 +01:00
Harald Hoyer
61a02caca4
test/TEST-17-LVM-THIN: add test case for lvm thin pools
2013-12-16 13:15:48 +01:00
Harald Hoyer
84bc192946
TEST-50-MULTINIC: improve interface test
2013-09-10 10:51:04 +02:00
Harald Hoyer
ffc68f357e
use ${var:+val} rather than ${var+val}
...
${var:+val} also catches var=""
2013-08-22 11:24:01 +02:00
Harald Hoyer
0d6d85b494
resurrect TEST-14-IMSM
2013-08-15 16:05:35 +02:00
Harald Hoyer
67b4a9ea17
testsuite: fixed network interface names
2013-08-15 10:25:19 +02:00
Harald Hoyer
62cdced342
TEST-12-RAID-DEG: enter UUID in crypttab rather than md0
2013-08-14 15:04:05 +02:00
Harald Hoyer
af11946054
dracut-functions.sh: inst_multiple == dracut_install
2013-08-07 10:33:15 +02:00
Harald Hoyer
b806625d41
TEST-30-ISCSI: eth0 -> ens3
2013-07-31 11:23:51 +02:00
Harald Hoyer
aa23dcd8ae
TEST-50-MULTINIC: change interface names to ens*
2013-07-31 10:59:25 +02:00
Harald Hoyer
5bbbfeaf19
TEST-10: double disk space
2013-07-31 09:57:57 +02:00
Harald Hoyer
b093aa2dc7
beautified shell code
...
checked with shellcheck http://www.shellcheck.net/about.html
2013-07-04 12:31:15 +02:00
Harald Hoyer
32bd2fbb4c
use "rm --" to guard against filenames beginning with "-"
2013-06-28 10:31:18 +02:00
Harald Hoyer
1d84d6940e
TEST-04-FULL-SYSTEMD/test.sh: dlfgjlkdfjgldfj
2013-06-28 10:22:27 +02:00
Harald Hoyer
87ae968810
test/run-qemu: specify the kernel
2013-06-28 10:21:42 +02:00
Harald Hoyer
0d59a84b53
TEST-04-FULL-SYSTEMD: call xargs with "-r"
2013-06-26 09:16:04 +02:00
Harald Hoyer
a94cd56d6f
test/TEST-50-MULTINIC: fix interface test
2013-06-13 15:15:55 +02:00
Harald Hoyer
44d832c5ad
test/TEST-50-MULTINIC: fixed debug output
2013-06-13 14:44:47 +02:00
Harald Hoyer
fd28794bbc
TEST-99-RPM: generate rpms and exclude /boot loader entries
2013-05-31 10:00:07 +02:00
Harald Hoyer
021b2fddff
test: use grep option "-F" and install /etc/os-release
2013-04-30 18:54:33 +02:00
Harald Hoyer
db9fbaf9b8
TEST-99-RPM: ignore rescue images
2013-04-05 11:52:33 +02:00
Harald Hoyer
56fb5c4dbf
TESTSUITE: s/i6300esbwdt/i6300esb ib700wdt/g
2013-04-05 11:07:55 +02:00
Harald Hoyer
a8986425a4
TEST-50-MULTINIC: fixup test suite
...
qemu of the day doesn't like multicast anymore
2013-04-05 11:07:40 +02:00
Harald Hoyer
44f870be42
test: change qemu param -nographic to -display none for -daemonize
...
qemu does not like -nographic in combination with -daemonize
2013-03-26 16:17:24 +01:00
Harald Hoyer
57aa1e9140
TEST-40-NBD/test.sh: kill_server() after test_run()
2013-03-19 14:53:17 +01:00
Harald Hoyer
11fbde4454
TEST-16-DMSQUASH: use current releasever
2013-03-15 14:41:11 +01:00
Harald Hoyer
bb278147cf
fixed testsuite
2013-03-15 07:10:20 +01:00
Harald Hoyer
83691c413f
testsuite fixup
2013-03-06 17:29:12 +01:00
Harald Hoyer
3e4ab73cd4
test: make testsuite work with systemd
2013-03-02 13:27:08 +01:00
Harald Hoyer
4e32b2e916
test: removed unused cryptroot-ask.sh scripts
2013-03-02 13:22:29 +01:00
Harald Hoyer
356333b331
test: add finished-false.sh for create-root.sh initqueue job
2013-03-02 13:20:59 +01:00
Harald Hoyer
43cc4d84bc
change for "udevadm control": s/--reload-rules/--reload/g
2012-12-14 09:04:56 +01:00
Harald Hoyer
665b7e58ba
TEST-04-FULL-SYSTEMD: fixed poweroff
2012-10-16 16:20:33 +02:00
Harald Hoyer
cc68f78d92
TEST-04-FULL-SYSTEMD/test.sh: fixed $kernel var
2012-10-10 14:14:31 +02:00
Harald Hoyer
df2afa9ff4
test: disable systemd for encryption
2012-10-09 16:46:46 +02:00
Harald Hoyer
14be3b16cd
TEST-20-NFS/test.sh: reformat
2012-10-08 15:36:41 +02:00
Harald Hoyer
2e111dd57a
TEST-50-MULTINIC/test.sh: fix multinic issues
2012-10-08 15:35:57 +02:00
Harald Hoyer
167a320e5f
s/libnss*.so/libnss_*.so so that we don't install libnss3.so
2012-10-04 14:38:25 -04:00
Harald Hoyer
e064127729
add "rd.auto" parameter and switch off automatic assembly
...
No automatic assembly is done anymore by default. You will have to
specify exactly what devices to assemble
("rd.md.uuid=" "rd.luks.uuid" ...)
or use "rd.auto=1" or "rd.auto" on the kernel command line.
For big servers with thousands of disks we don't want to assemble
everything by default (error prone, slow).
2012-09-27 14:05:50 +02:00
Harald Hoyer
7f1d77d9fb
TEST-16-DMSQUASH: reenable test
2012-09-26 11:58:51 +02:00
Harald Hoyer
bc07024624
TEST-10-RAID/test.sh: add "rd.auto=1"
2012-09-24 13:59:03 +02:00
Harald Hoyer
907f75447b
TEST-03-USR-MOUNT/create-root.sh: load btrfs module manually
2012-09-24 13:56:21 +02:00
Harald Hoyer
ba111df2b9
nfs: install all nfs submodules
2012-09-10 15:49:58 +02:00
Frederic Crozat
ec8974914f
ensure af_packet module is loaded (if not built-in)
2012-08-01 14:40:43 +02:00
Harald Hoyer
23d6dcd125
test: s/ib700wdt/i6300esbwdt/g
2012-08-01 12:53:39 +02:00
Harald Hoyer
9fd9e96130
test/Makefile: fixed TESTS parsing
2012-08-01 12:50:54 +02:00
Harald Hoyer
1f524c4544
Prevent testsuite runs from non-root users.
2012-07-31 13:49:04 +02:00
Harald Hoyer
650ab3b077
TEST-10-RAID/test.sh: comment debug options
2012-07-30 21:07:14 +02:00
Harald Hoyer
3f7e5358e5
crypt/crypt-run-generator.sh: do not add already existing luks
2012-07-30 20:41:16 +02:00
Harald Hoyer
5d833a9f5b
add "af_packet" kernel module to network testsuite tests
2012-07-27 15:11:01 +02:00
Harald Hoyer
a0af318a8d
testsuite: fixups and color
2012-07-20 11:20:12 +02:00
Harald Hoyer
a01cf5d782
test/TEST-04-FULL-SYSTEMD: add systemd to modules
2012-07-17 18:05:39 +02:00
Harald Hoyer
3d115217e4
test/TEST-04-FULL-SYSTEMD: default to basic.target and output more debug
2012-07-12 08:59:43 +02:00
Harald Hoyer
2723ebba9a
test: silence "make all"
2012-07-11 15:23:21 +02:00
Harald Hoyer
badda27f61
test/TEST-04-FULL-SYSTEMD: full test with systemd and /usr mount
2012-07-11 15:18:32 +02:00
Harald Hoyer
3e1d48fd12
test: add support for: make V=1 TESTS="01 20 40" check
...
$ sudo make V=1 clean check
now runs the testsuite in verbose mode
$ sudo make TESTS="01 20 40" clean check
now only runs the 01, 20 and 40 tests.
2012-07-11 09:33:32 +02:00
Harald Hoyer
4dda0095a1
test/*/server-init.sh: redirect stdin,out,err to /dev/console
2012-07-11 08:40:45 +02:00
Harald Hoyer
9ede75b1ce
TEST-01-BASIC: enable selinux
2012-07-10 12:24:16 +02:00
Harald Hoyer
fe5f8d0074
TEST-01-BASIC: turn on systemd debugging
2012-07-10 12:24:16 +02:00
Harald Hoyer
43bac63e33
TEST-99-RPM test trap
2012-07-09 20:44:48 +02:00
Harald Hoyer
4eafdbdbe8
test: new test TEST-99-RPM
...
This test installs the dracut rpm together with the kernel in an
installroot. rpm -Va and rpm -qf are used, to ensure nothing modified
files in the real root.
2012-07-09 16:44:45 +02:00
Harald Hoyer
27fa604418
test: export initdir
2012-07-09 15:30:15 +02:00
Harald Hoyer
cbefa47006
TEST-30-ISCSI: convert to ext3
2012-07-09 10:17:22 +02:00
Harald Hoyer
38bbec3731
TEST-30-ISCSI: put back in hard-off.sh for tests
2012-07-03 18:22:29 +02:00
Harald Hoyer
a128f03b30
TEST-03-USR-MOUNT: change test to use a seperate disk
2012-07-03 18:21:54 +02:00
Harald Hoyer
1d59e3e592
TEST-02-SYSTEMD: enlarge the root disk
2012-07-02 18:52:49 +02:00
Harald Hoyer
47057875e7
TEST-01-BASIC: grow the root disk
2012-07-02 18:52:49 +02:00
Harald Hoyer
ef9b54cfe6
new testsuite test TEST-03-USR-MOUNT
...
mounts /usr as a btrfs subvolume and should respect "rw" and "ro" kernel
command line arguments properly.
2012-07-02 18:52:49 +02:00
Harald Hoyer
6571cd4073
TEST-40-NBD: add watchdog
2012-06-29 12:51:13 +02:00
Harald Hoyer
67ab4f7718
testsuite: fixups
2012-06-29 12:51:13 +02:00
Harald Hoyer
f71145d20d
TEST-20-NFS: trigger watchdog more often
2012-06-29 12:51:13 +02:00
Harald Hoyer
70c6b773ca
dracut.sh, dracut-functions.sh: add dracut_kernel_post()
...
dracut_kernel_post() does lazy kernel module dependency installation,
depmod and cleans up temporary files
2012-06-29 12:41:28 +02:00
Harald Hoyer
f0558da598
test/*/test.sh: correct ifup and dhclient paths
2012-06-29 12:41:27 +02:00
Harald Hoyer
f48f9341a5
disable TEST-16-DMSQUASH for now
2012-06-18 20:05:25 +02:00
Harald Hoyer
d686298315
TEST-50-MULTINIC: libnss cleanup
2012-06-18 20:05:25 +02:00
Harald Hoyer
9f88b0370d
TEST-20-NFS: libnss cleanup
2012-06-18 20:05:25 +02:00
Harald Hoyer
2dbd71b77a
TEST-50-MULTINIC: add watchdog
2012-06-18 20:05:25 +02:00
Harald Hoyer
483b1e3aa8
TEST-20-NFS: add watchdog
2012-06-18 20:05:25 +02:00
Harald Hoyer
c8f3a1c057
TEST-01-BASIC: add watchdog
2012-06-18 20:05:25 +02:00
Harald Hoyer
3eca0cc846
TEST-50-MULTINIC: install correct nss libs
2012-06-15 11:12:46 +02:00
Harald Hoyer
c79f3883cd
test/TEST-16-DMSQUASH: add check for python-imgcreate
2012-06-04 11:35:31 +02:00
Harald Hoyer
df42cd3dbd
test/test-functions: check with test_check() if test is suitable
2012-06-04 11:35:02 +02:00
Harald Hoyer
cfe32ef5ba
TEST-01-BASIC: sync after creating the root disk
2012-05-16 11:51:26 +02:00
Harald Hoyer
f72318243c
systemd: adapt to new switch-root mechanism
2012-05-15 18:57:29 +02:00
Harald Hoyer
2c431e8ec4
add systemd module
2012-05-09 13:36:07 +02:00
Harald Hoyer
4b13b2e2bf
test/TEST-01-BASIC/test.sh: fix cleanup of overlay dir
2012-05-07 16:32:28 +02:00
Harald Hoyer
5a81678219
TEST-15-BTRFSRAID: add one more partition to the btrfs raid10
2012-04-25 15:58:40 +02:00
Harald Hoyer
fc87119069
TEST-20-NFS: get shell in test root for rd.shell
2012-04-02 09:03:25 +02:00
Harald Hoyer
513d26f7b7
TEST-12-RAID-DEG/create-root.sh: settle after deconstruct
2012-03-29 14:36:20 +02:00
Harald Hoyer
d8eb522e80
TEST-01-BASIC: add setsid
2012-03-14 16:32:19 +01:00
Harald Hoyer
f94ceb13b8
TEST-10-RAID: wait for udev settle before deconstructing
2012-03-14 15:52:35 +01:00
Harald Hoyer
0635530dda
TEST-20-NFS/test.sh: fsck with "-a"
2012-03-08 12:25:30 +01:00
Harald Hoyer
b8a9dc2d3f
TEST-20-NFS: use ext3 on server and fsck after kill
2012-03-08 11:00:29 +01:00
Harald Hoyer
8b6e099892
90kernel-modules/module-setup.sh: exclude nfs* lockd from standard
...
do not install nfs* lockd filesystems for the standard kernel modules
2012-02-22 16:14:38 +01:00
Harald Hoyer
552ecca6db
Renamed all shell scripts to *.sh
2012-02-22 15:15:21 +01:00
Harald Hoyer
9373aec650
TEST-30-ISCSI/test.sh: factor out client runs
2012-02-22 11:32:59 +01:00
Harald Hoyer
3905f6695e
TEST-30-ISCSI: add test case for "root=iscsi:...." and untabify
2012-02-16 11:37:21 +01:00
Harald Hoyer
28f0b27fb9
TEST-40-NBD: correct symlinks by rerunning ldconfig
2012-02-15 15:08:34 +01:00
Harald Hoyer
0ddc098eb0
TEST-12-RAID-DEG: improve test case
2012-02-15 15:08:29 +01:00
Harald Hoyer
96d22bd7d6
test: fixed terminfo location
2012-02-13 21:15:22 +01:00
Harald Hoyer
12018c91ea
TEST-15-BTRFSRAID: write diskimage to tmp dir
2012-02-08 17:02:57 +01:00
Harald Hoyer
cf5229190d
TEST-10-RAID: fixed TESTDIR handling
2012-01-13 11:33:22 +01:00
Harald Hoyer
5112bfc8cc
TEST-12-RAID-DEG: mkdir /run
2011-12-15 14:49:05 +01:00
Harald Hoyer
191f6945ac
test: moved TEST-14-IMSM to old.TEST-14-IMSM
...
TEST-14-IMSM does not work anymore in qemu instances
2011-11-16 14:05:57 +01:00
Harald Hoyer
0be1785aea
test: introduce $TESTDIR tmpdir
...
to keep the git source tree clean, test files are now created in a
$TESTDIR created with mktemp.
2011-11-16 14:04:27 +01:00
Harald Hoyer
75e8f476e7
TEST-40-NBD: relaxed check on ext3 filesystem options
...
onerror=continue does not seem to be displayed for new kernels
2011-09-22 15:37:27 +02:00
Harald Hoyer
ea8e543bb8
add TEST-16-DMSQUASH
...
This is a test for Fedora LiveCDs created via livecd-tools
2011-08-17 13:42:16 +02:00
Harald Hoyer
d6770cf001
TEST-11-LVM/create-root.sh: sleep before disassembling device
2011-08-11 17:52:39 +02:00
Harald Hoyer
bcf94bba99
TEST-40-NBD/test.sh: source reformat
2011-08-11 15:36:29 +02:00
Harald Hoyer
de0b239907
TEST-40-NBD/create-root.sh: sleep before disassembling root device
2011-08-11 15:36:29 +02:00
Harald Hoyer
bdf96a5d25
TEST-12-RAID-DEG/test.sh: uncomment rd.shell
2011-08-11 14:27:26 +02:00
Harald Hoyer
1eb8e9217f
test/TEST-13-ENC-RAID-LVM/create-root.sh: wait before disassembling lvm
2011-08-11 10:49:10 +02:00
Harald Hoyer
8570b544e9
TEST-10-RAID/test-init: add comment for rd.break=shutdown
2011-07-20 21:40:50 +02:00
Harald Hoyer
00d89f5170
TEST-10-RAID/test-init: turn off debug for shutdown
2011-07-20 21:10:58 +02:00
Harald Hoyer
ceaf49d735
TEST-10-RAID: extend test case to shutdown
2011-07-20 19:08:25 +02:00
Harald Hoyer
54703a719f
add TEST-15-BTRFSRAID
2011-07-20 14:10:30 +02:00
Harald Hoyer
3b403b32fc
removed trailing whitespaces
2011-05-10 11:56:09 +02:00
Harald Hoyer
a7ee1cd7f6
test/TEST-13-ENC-RAID-LVM: double test root disk space
2011-05-03 09:59:14 +02:00
Harald Hoyer
0743486127
test/TEST-11-LVM, test/TEST-14-IMSM: update test cases
...
- more diskspace
- add /run
- drop to shell in test-init
2011-04-14 15:24:50 +02:00
Harald Hoyer
06ae51be51
TEST-50-MULTINIC/client-init: drop to shell, if "rd.shell"
2011-04-11 19:24:59 +02:00
Harald Hoyer
8a6ecb19b9
TEST-50-MULTINIC/test.sh: add /run dir and "ls" to client image
2011-04-11 19:24:59 +02:00
Harald Hoyer
ef85627e93
test/TEST-01-BASIC/test.sh: uncomment debug options
2011-04-08 13:25:22 +02:00
Harald Hoyer
486ec65745
TEST-01-BASIC: softlink fstab to proc/mounts in test-init
2011-04-08 13:25:18 +02:00
Harald Hoyer
dd26a551c2
test/TEST-01-BASIC: add basic ext3 test
2011-04-08 11:17:31 +02:00
Harald Hoyer
0b53ca70b6
Move all hooks to "$hookdir"
...
hookdir=/lib/dracut/hooks for now, to keep the root directory clean
2011-03-25 16:10:46 +01:00
Harald Hoyer
e43df9e342
base/init: fixed /dev/.initramfs creation, for no "/run"
2011-03-25 15:43:54 +01:00
Harald Hoyer
28eb2436c8
TEST-50-MULTINIC: change /dev/.initramfs to /dev/.run/initramfs
2011-03-10 19:49:08 +01:00
Harald Hoyer
fa79f00803
test/*/test.sh: mv 01hard-off.sh 000-hard-off.sh
...
otherwise "die" will let the kernel panic
2011-03-07 16:22:42 +01:00
Harald Hoyer
b2559a8895
TEST-50-MULTINIC/test.sh: only set hdc for no cdrom
2010-10-28 17:11:35 +02:00
Harald Hoyer
51b28ba9c4
test/TEST-*/test.sh: set -serial to null for servers
...
-serial udp might have stalled
2010-10-28 17:11:35 +02:00
Harald Hoyer
387bf82e30
test/*/*-init: set PATH
...
/sbin and /usr/sbin are no longer in $PATH
2010-10-28 17:11:34 +02:00
Harald Hoyer
fa7ada31d0
new parameter option names with "rd.*" namespace
...
Renamed Options
Here is a list of options, which were used in dracut prior to
version 008, and their new replacement.
rdbreak
rd.break
rd_CCW
rd.ccw
rdcopystate
rd.copystate
rd_DASD_MOD
rd.dasd_mod.dasd
rd_DASD
rd.dasd
rdinitdebug rdnetdebug
rd.debug
rd_NO_DM
rd.dm=0
rd_DM_UUID
rd.dm.uuid
rdblacklist
rd.driver.blacklist
rdinsmodpost
rd.driver.post
rdloaddriver
rd.driver.pre
rd_NO_FSTAB
rd.fstab=0
rdinfo
rd.info
check
rd.live.check
rdlivedebug
rd.live.debug
live_dir
rd.live.dir
liveimg
rd.live.image
overlay
rd.live.overlay
readonly_overlay
rd.live.overlay.readonly
reset_overlay
rd.live.overlay.reset
live_ram
rd.live.ram
rd_NO_CRYPTTAB
rd.luks.crypttab=0
rd_LUKS_KEYDEV_UUID
rd.luks.keydev.uuid
rd_LUKS_KEYPATH
rd.luks.keypath
rd_NO_LUKS
rd.luks=0
rd_LUKS_UUID
rd.luks.uuid
rd_LUKS_UUID
rd.luks.uuid
rd_NO_LVMCONF
rd.lvm.conf
rd_LVM_LV
rd.lvm.lv
rd_NO_LVM
rd.lvm=0
rd_LVM_SNAPSHOT
rd.lvm.snapshot
rd_LVM_SNAPSIZE
rd.lvm.snapsize
rd_LVM_VG
rd.lvm.vg
rd_NO_MDADMCONF
rd.md.conf=0
rd_NO_MDIMSM
rd.md.imsm=0
rd_NO_MD
rd.md=0
rd_MD_UUID
rd.md.uuid
rd_NFS_DOMAIN
rd.nfs.domain
rd_NO_PLYMOUTH
rd.plymouth=0
rd_retry
rd.retry
rdshell
rd.shell
rd_NO_SPLASH
rd.splash
rdudevdebug
rd.udev.debug
rdudevinfo
rd.udev.info
rd_NO_ZFCPCONF
rd.zfcp.conf=0
rd_ZFCP
rd.zfcp
2010-10-28 17:11:27 +02:00
Harald Hoyer
1b29b0f7cf
test: double disk space for root images
2010-09-23 16:10:00 +02:00
Amadeusz Żołnowski
f3af7bd66b
use 'type' built-in instead of external cmd 'which' in every Bash script
2010-08-23 11:54:09 +02:00
Harald Hoyer
4b0a61c586
TEST-12-RAID-DEG: do not execute rd_NO_MDADMCONF tests
2010-08-02 14:18:00 +02:00
Harald Hoyer
cc97412c32
TEST-14-IMSM: fixed test
2010-08-02 14:17:59 +02:00
Harald Hoyer
aceaf13b44
TEST-13-ENC-RAID-LVM: prepend "luks-" to rd_LUKS_UUID argument
2010-08-02 14:17:59 +02:00
Harald Hoyer
4c2d8f5816
TEST-12-RAID-DEG: double disk space
2010-08-02 14:17:58 +02:00
Harald Hoyer
9c111e59c9
TEST: omit network module for non-network tests
2010-08-02 10:35:31 +02:00
Harald Hoyer
b8a2f174d7
TEST-13-ENC-RAID: add check for rd_LUKS_UUID argument parsing
2010-07-12 16:16:57 +02:00
Harald Hoyer
169f167151
iscsi: add support for multiple netroot=iscsi:
...
The whole netdisk concept should be reviewed though!
2010-06-09 16:46:33 +02:00
Harald Hoyer
e02c2d5c43
TEST-50-MULTINIC: do not provide a cdrom in the testcase
2010-05-19 09:35:01 +02:00
Harald Hoyer
ebcfda6c61
test/NBD: check for nbd kernel module first
2010-04-16 17:59:51 +02:00
Harald Hoyer
8f4c066020
test/MULTINIC: kill server after passing all tests
2010-04-16 17:59:51 +02:00
Harald Hoyer
da4e644327
test/TEST-50-MULTINIC: install sd_mod and ata_piix kernel modules
2010-04-16 17:59:51 +02:00
Harald Hoyer
c5ef4b63a3
test/TEST-50-MULTINIC: install all nfsidmap libs for server
2010-04-16 17:59:50 +02:00
Harald Hoyer
6c980807d0
test/TEST-50-MULTINIC: kill server after failed test
2010-04-16 17:59:50 +02:00
Harald Hoyer
97add1b383
NBD: kill server after failed test
2010-04-16 17:59:50 +02:00
Harald Hoyer
3de984ba7f
test/nfs: correct return code and cleanup
2010-04-16 17:59:50 +02:00
Harald Hoyer
85fd75f91f
add rd_retry kernel command line parameter
...
rd_retry=<seconds to retry in the main loop>
speeds up internal test suite
2010-04-16 17:59:50 +02:00
Harald Hoyer
0c88742669
test: change testsuite to local tcp rather than udp multicast
...
multicast needs an ethernet device and correct firewall rules
the loopback interface suites better as we only have 2 machines
2010-04-16 17:59:49 +02:00
Harald Hoyer
709302e3cc
run-qemu: add /usr/libexec/qemu-kvm to search
2010-04-16 17:59:49 +02:00
Harald Hoyer
3e96d7aa33
TEST-12-RAID-DEG/create-root: filter MD_UUID only
2010-04-16 17:59:49 +02:00
Philippe Seewer
8a08012764
test: use ldconfig processing for roots as well
2010-03-05 11:42:04 +01:00
Harald Hoyer
54aaad9dad
test/iSCSI: fixed test script
2010-02-03 16:42:43 +01:00
Harald Hoyer
0e8b76a57e
test: remove lvm.conf in create-root.sh
2010-01-15 12:58:46 +01:00
Harald Hoyer
b7b6c6e1c6
test: remove lvm.conf in create-root.sh
2010-01-14 17:02:18 +01:00
Harald Hoyer
f5b01e3c57
test: set PATH
2009-11-26 19:12:20 +01:00
Harald Hoyer
121e7b3e2d
TEST-14-IMSM/create-root.sh: wait until md0 is ready synced
2009-10-27 16:02:56 +01:00
Philippe Seewer
778d2ba28b
test: Add compatibility for different kernel configs
...
Some distros, including debian unstable with 2.6.30, still shop
style ide drivers and/or have important filesystems like ext3 as
modules.
This patch ensures that all test cases work on these configurations
by including the necessary modules and adding a simple udev rule
file that provides /dev/sd* symlinks for the case where old style
ide drivers are still in use.
2009-10-27 16:02:56 +01:00
Harald Hoyer
2cc8cbeaf4
test/TEST-20-NFS: kill server if pid file present on run()
2009-10-27 16:02:54 +01:00
Harald Hoyer
ba54a4c747
test: add rdinfo
2009-10-09 13:57:35 +02:00
Harald Hoyer
ffd0861b7c
test/*/hard-off.sh: do not powerdown on rdshell
2009-10-09 13:18:05 +02:00
Harald Hoyer
e5ccf5eb93
run-qemu: specify PATH
2009-10-09 13:17:45 +02:00
Harald Hoyer
40ef4325d9
test: run all tests with rdinitdebug by default
2009-10-06 19:09:22 +02:00
Harald Hoyer
9fbe8a001b
TEST-50-MULTINIC/test.sh: add selinux=0
2009-10-06 19:09:21 +02:00
Harald Hoyer
f12b432efd
test: add "failme" parameter for failing tests
2009-10-06 19:09:17 +02:00
Harald Hoyer
e71a5ca5f2
test/*/hard-off.sh: poweroff, if failme specified
2009-10-06 16:37:20 +02:00
Philippe Seewer
a71f1b4917
Add multinic test suite
...
This is a start a test suite for the multinic support of dracut
2009-10-06 15:17:39 +02:00
Harald Hoyer
8eb16b0827
selinux: bail out if policy could not be loaded and selinux=0 not
...
specified
2009-09-21 17:44:14 +02:00
Harald Hoyer
26fbe9a101
TEST-14-IMSM: rd_NO_DM rd_NO_MDIMSM rd_NO_MDADMCONF succeeds now
...
This test succeeds, because the mirror parts are found without
assembling the mirror itsself, which is what we want
client_run rd_NO_DM rd_NO_MDIMSM rd_NO_MDADMCONF || return 1
2009-09-16 15:32:55 +02:00
Harald Hoyer
f8ddafcca2
TEST-11-LVM: add rdinfo
2009-09-16 15:32:29 +02:00
Harald Hoyer
597839331c
dmraid: use and install kpartx for dmraids
2009-09-16 11:21:24 +02:00
Harald Hoyer
ad8f03af22
TEST-14-IMSM: "rd_NO_DM rd_NO_MDIMSM rd_NO_MDADMCONF" fails
2009-09-15 15:00:24 +02:00
Harald Hoyer
2f02ae9d45
mdraid: add rd_NO_MDADMCONF --mdadmconf --nomdadmconf
...
Copy /etc/mdadm.conf to initramfs (even for non-hostonly) if
mdadmconf="yes" is set in dracut.conf or --mdadmconf is specified on the
dracut command line.
This was done, because there seems _no_ sane way to autoassemble md raid
arrays.
also moved rd_NO_MD to an udev ENV
2009-09-15 15:00:18 +02:00
Harald Hoyer
e51b607189
TEST-14-IMSM: create raid5 inside isw raid container
2009-09-08 15:31:27 +02:00
Harald Hoyer
fdf2a763d4
TEST-14-IMSM: more test cases
2009-09-08 15:31:00 +02:00
Harald Hoyer
0e9bb3f30c
TEST-14-IMSM: no test for a isw raid array
2009-09-08 13:43:21 +02:00
Harald Hoyer
1753a63081
TEST-12-RAID-DEG: check with root=LABEL=root
2009-09-07 11:41:38 +02:00
Harald Hoyer
461ff22cd5
new test/TEST-13-ENC-RAID-LVM
2009-09-01 15:42:27 +02:00
Harald Hoyer
b1a4919cb2
TEST-12-RAID-DEG/test.sh: add rdinfo
2009-09-01 15:42:27 +02:00
Harald Hoyer
5a8b143888
TEST-10-RAID: new mdadm is picky about partitions
2009-08-14 17:27:50 +02:00
Warren Togami
beb097d9f1
Bridged network boot
...
* SYNTAX
bridge=<bridgename>:<ethname>
If bridge without parameters, assume bridge=br0:eth0
* When <ethname> would be configured by network scripts, instead create a bridge named <bridgename> then add <ethname> to that bridge.
* Then $netif becomes <bridgename> instead of <ethname> and all existing scripts process netroot mount via this new $netif instead of <ethname>.
* Include a few test cases in NFS and NBD
2009-07-16 16:58:19 -04:00
Warren Togami
44f1ab8285
Remove 63-luks.rules, it is no longer used
2009-07-16 09:34:07 -04:00
Harald Hoyer
d34a6d07c1
extend TEST-12-RAID-DEG to check for UUID command line parameters
2009-07-15 18:27:21 +02:00
Harald Hoyer
6281504d33
add testsuite for degraded RAID-5 array
2009-07-14 13:44:38 +02:00
Harald Hoyer
4a4c88236b
modified test description for TEST-10-RAID
2009-07-14 13:44:07 +02:00
Harald Hoyer
4fafddf78f
add test for simple root on LVM
2009-07-13 16:41:05 +02:00
Harald Hoyer
6aca2e0366
add kernel-modules module to iscsi server
2009-07-13 15:03:11 +02:00
Harald Hoyer
a3a3448d8c
rdshell
2009-07-03 18:28:09 +02:00
Harald Hoyer
58dbb43eac
initqueue now loops until /dev/root exists or root is mounted
...
init now has the following points to inject scripts:
/cmdline/*.sh
scripts for command line parsing
/pre-udev/*.sh
scripts to run before udev is started
/pre-trigger/*.sh
scripts to run before the main udev trigger is pulled
/initqueue/*.sh
runs in parallel to the udev trigger
Udev events can add scripts here with /sbin/initqueue.
If /sbin/initqueue is called with the "--onetime" option, the script
will be removed after it was run.
If /initqueue/work is created and udev >= 143 then this loop can
process the jobs in parallel to the udevtrigger.
If the udev queue is empty and no root device is found or no root
filesystem was mounted, the user will be dropped to a shell after
a timeout.
Scripts can remove themselves from the initqueue by "rm $job".
/pre-mount/*.sh
scripts to run before the root filesystem is mounted
NFS is an exception, because it has no device node to be created
and mounts in the udev events
/mount/*.sh
scripts to mount the root filesystem
NFS is an exception, because it has no device node to be created
and mounts in the udev events
If the udev queue is empty and no root device is found or no root
filesystem was mounted, the user will be dropped to a shell after
a timeout.
/pre-pivot/*.sh
scripts to run before the real init is executed and the initramfs
disappears
All processes started before should be killed here.
The behaviour of the dmraid module demonstrates how to use the new
mechanism. If it detects a device which is part of a raidmember from a
udev rule, it installs a job to scan for dmraid devices, if the udev
queue is empty. After a scan, it removes itsself from the queue.
2009-07-03 18:11:38 +02:00
Harald Hoyer
e2dbd86f09
add kernel-modules module to testsuite images
2009-07-03 12:06:11 +02:00
Harald Hoyer
4ce1991856
let iSCSI try to mount the complete LUN specified
2009-07-02 11:47:27 +02:00
Harald Hoyer
5db734030d
omit plymouth and add debug module for the testsuite clients
2009-07-02 11:47:27 +02:00
Warren Togami
f910f00627
Remove the NBD legacy format. It wasn't actually matching Debian's nbdroot implementation.
...
Talked with Debian nbdroot author and he agreed we shouldn't support their obsolete syntax in dracut.
Their root=/dev/nbd[0-9] is no longer needed. Also their syntax was very standardized requiring
a separate boot= parameter.
2009-07-01 15:41:26 -04:00
Harald Hoyer
ada0bc3e5f
use different multicast ports for the different testsuites
2009-07-01 21:32:33 +02:00
Harald Hoyer
6fb586f3ef
omit the plymouth module in the testsuite
2009-07-01 19:28:51 +02:00
Harald Hoyer
5831685cdb
use _all_ modules to run the test, in case another module fails
...
also run the tests with 256MB virtual machines
2009-07-01 19:28:51 +02:00
Harald Hoyer
950086e987
do not assume nfs for root=/dev/... but for /dev/nfs
2009-07-01 19:28:31 +02:00
Warren Togami
9d4c1799fe
Fix legacy root=/dev/nfs nfsroot=IP:path case
...
TODO: root=/dev/nfs DHCP cases are still broken.
2009-06-30 18:22:44 -04:00
Warren Togami
297cb80bab
Cleanup parse-nfsroot and NFS tests.
...
TODO: root=/dev/nfs is still broken.
2009-06-30 17:48:56 -04:00
Warren Togami
798d950651
Add test for Legacy root=IP:path NFSv3 syntax
2009-06-30 16:38:57 -04:00
Warren Togami
92798bf79b
netroot= variant is not supported for NFS, you must use root=
...
TODO: This temporarily breaks Legacy root=/dev/nfs.
2009-06-30 16:27:45 -04:00
Warren Togami
fb3d8cf7c2
Remove legacy nfsroot.txt derived shortcuts and accompanying tests.
...
(further cleanup is needed)
2009-06-23 17:08:39 -04:00
Warren Togami
5655a3ffbf
Remove dracut invented variations of Legacy nfsroot.txt syntax and accompanying tests.
...
- Remove root=nfs nfsroot=...
- Remove root=nfs4 nfsroot=...
- Remove root=/dev/nfs4 nfsroot=...
- Legacy nfsroot= without root=/dev/nfs should be unsupported according to the nfsroot.txt.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/filesystems/nfsroot.txt
45 root=/dev/nfs
46
47 This is necessary to enable the pseudo-NFS-device. Note that it's not a
48 real device but just a synonym to tell the kernel to use NFS instead of
49 a real device.
2009-06-22 16:40:09 -04:00
Harald Hoyer
064b6ea92d
make iSCSI boot with root=dhcp and mount partitions labeled with "ROOT"
...
or "/"
2009-06-19 13:00:00 +02:00
Harald Hoyer
33655fc539
do not poweroff in TEST-10-RAID if rdinitdebug is set
2009-06-19 09:29:16 +02:00