Lubomir Rintel
c27ed38bb2
test/TEST-14-IMSM: detect failure to compose the test setup root
...
The dracut-root-block-created line should not be created if we fail to copy
in the required files to sysroot. Let's turn on -e to trap failures and
poweroff on them, like some other tests do.
Also remove the &&. Not only it is unnecessary with -e, but defeats it.
From bash(1):
The shell does not exit if the command that fails is [...] part of any
command executed in a && or || list except the command following the
final && or || [...]
2019-07-19 16:10:15 +02:00
Lubomir Rintel
91c15babdf
test/TEST-17-LVM-THIN: fail setup if we run out of space in the thin pool
...
This condition is rather difficult to detect -- the writes will just remain
queued and get lost on shutdown, resulting in a corrupt filesystem.
2019-07-19 16:02:25 +02:00
Harald Hoyer
712f471ebf
test/test-functions: correctly move server.log
2018-12-04 10:06:12 +01:00
Harald Hoyer
225e4b94cb
Fix tests with network-legacy
2018-10-08 15:38:33 +02:00
Harald Hoyer
09132c732a
test/test-functions: fixed V=1 logic
2018-08-17 15:38:03 +02:00
Harald Hoyer
286685cb72
TEST-99-RPM: use releasever of the host system
2018-08-16 13:20:40 +02:00
Harald Hoyer
7c62555bcf
TEST-15-BTRFSRAID: use seperate disk image for boot result
2018-08-16 13:20:35 +02:00
Harald Hoyer
2699d8ff7e
TEST-99-RPM: removed --releasever
2018-08-16 12:03:40 +02:00
Harald Hoyer
5a8f1aef55
TEST-15-BTRFSRAID: sync in test-init
...
strange failure
2018-08-16 12:01:40 +02:00
Harald Hoyer
f8cad00948
test: for V=2 tail only the last MB of logs
2018-08-16 11:47:21 +02:00
Harald Hoyer
67f43d2124
test: fixed test.log name
2018-08-16 11:13:55 +02:00
Harald Hoyer
51d0a54555
travis: use own logtee.c to reduce log output
2018-08-16 10:17:48 +02:00
Harald Hoyer
c31a80c9ed
TEST-01: remove memdebug
2018-08-16 09:50:52 +02:00
Harald Hoyer
d15c15c8f5
test/test-functions: be verbose for any $V not empty
2018-08-14 16:54:27 +02:00
Harald Hoyer
9288d21b9f
TEST-50-MULTINIC: removed bogus qemu compat server call
2018-08-14 16:37:01 +02:00
Harald Hoyer
cafe6675c2
test/run-qemu: move -cpu host to kvm args
2018-08-14 16:31:22 +02:00
Harald Hoyer
fba4d28433
TEST-50-MULTINIC: fixed server.log
2018-08-14 16:30:42 +02:00
Harald Hoyer
b7774da97c
might even run without kvm
2018-08-14 16:18:53 +02:00
Harald Hoyer
0f294d90b2
TEST-31-ISCSI-MULTI: increase verbose level
2018-08-14 15:54:42 +02:00
Harald Hoyer
a2dbecfcd6
test: add TEST_RUN_ID
2018-08-14 15:54:31 +02:00
Harald Hoyer
604c09b1da
TEST-31-ISCSI-MULTI/test.sh: fixed test description
2018-08-14 15:28:56 +02:00
Harald Hoyer
f9c8b3112a
TEST-50-MULTINIC/test.sh: fixed server startup
2018-08-14 14:12:54 +02:00
Harald Hoyer
ca8f1c1ba3
test: fixed KVERSION and qemu backwards compatiblity
2018-08-14 14:03:55 +02:00
Harald Hoyer
94cc856cb8
TEST-70-BONDBRIDGETEAMVLAN: load vlan kernel modules
2018-08-14 13:57:15 +02:00
Harald Hoyer
827a5b1a80
test: also output server.log on failure
2018-08-14 11:37:57 +02:00
Harald Hoyer
393da0c370
TEST-50-MULTINIC: s/--device/-device
2018-08-14 11:35:26 +02:00
Harald Hoyer
82fe4ea0a5
enable parallel test suite
...
$ time sudo make -j SKIP=14 V=2 check
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-13-ENC-RAID-LVM'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-40-NBD'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-04-FULL-SYSTEMD'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-12-RAID-DEG'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-15-BTRFSRAID'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-16-DMSQUASH'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-17-LVM-THIN'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-11-LVM'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-31-ISCSI-MULTI'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-20-NFS'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-99-RPM'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-02-SYSTEMD'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-30-ISCSI'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-01-BASIC'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-03-USR-MOUNT'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-70-BONDBRIDGETEAMVLAN'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-50-MULTINIC'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-10-RAID'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-18-LVM-ENC-LV'
TEST: root filesystem on an encrypted LVM PV on a degraded RAID-5 [STARTED]
TEST: root filesystem on NBD [STARTED]
TEST: root filesystem on NBD [SKIPPED]
TEST: Full systemd serialization/deserialization test with /usr mount [STARTED]
TEST: root filesystem on multiple device btrfs [STARTED]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-40-NBD'
TEST: root filesystem on a LiveCD dmsquash filesystem [STARTED]
TEST: root filesystem on a LiveCD dmsquash filesystem [SKIPPED]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-16-DMSQUASH'
TEST: root filesystem on LVM on encrypted partitions of a RAID-5 [STARTED]
TEST: root filesystem on LVM PV [STARTED]
TEST: rpm integrity after dracut and kernel install [STARTED]
TEST: root filesystem on NFS [STARTED]
TEST: root filesystem over iSCSI [STARTED]
TEST: root filesystem on LVM PV with thin pool [STARTED]
TEST: root filesystem over iSCSI [STARTED]
TEST: root filesystem on a ext3 filesystem [STARTED]
TEST: root filesystem on a ext3 filesystem [STARTED]
TEST: root filesystem on a btrfs filesystem with /usr subvolume [STARTED]
TEST: root filesystem on NFS with bridging/bonding/vlan [STARTED]
TEST: root filesystem on NFS with multiple nics [STARTED]
TEST: root filesystem on an encrypted LVM PV on a RAID-5 [STARTED]
TEST: root filesystem on LVM on encrypted partitions of a RAID-5 [STARTED]
TEST: root filesystem on LVM PV [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-11-LVM'
TEST: root filesystem on multiple device btrfs [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-15-BTRFSRAID'
TEST: root filesystem on LVM PV with thin pool [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-17-LVM-THIN'
TEST: root filesystem on a ext3 filesystem [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-02-SYSTEMD'
TEST: root filesystem on a btrfs filesystem with /usr subvolume [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-03-USR-MOUNT'
TEST: root filesystem on LVM on encrypted partitions of a RAID-5 [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-18-LVM-ENC-LV'
TEST: Full systemd serialization/deserialization test with /usr mount [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-04-FULL-SYSTEMD'
TEST: root filesystem on an encrypted LVM PV on a RAID-5 [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-10-RAID'
TEST: root filesystem on LVM on encrypted partitions of a RAID-5 [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-13-ENC-RAID-LVM'
TEST: root filesystem over iSCSI [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-30-ISCSI'
TEST: root filesystem on a ext3 filesystem [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-01-BASIC'
TEST: root filesystem over iSCSI [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-31-ISCSI-MULTI'
TEST: rpm integrity after dracut and kernel install [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-99-RPM'
TEST: root filesystem on NFS [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-20-NFS'
TEST: root filesystem on NFS with bridging/bonding/vlan [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-70-BONDBRIDGETEAMVLAN'
TEST: root filesystem on an encrypted LVM PV on a degraded RAID-5 [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-12-RAID-DEG'
TEST: root filesystem on NFS with multiple nics [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-50-MULTINIC'
real 9m3,969s
user 22m50,323s
sys 5m24,411s
2018-08-14 11:04:50 +02:00
Harald Hoyer
ffbd37d784
TEST-31-ISCSI-MULTI: use different port than TEST-30
2018-08-14 11:03:48 +02:00
Harald Hoyer
6058b06b86
test/{TEST-50-MULTINIC,TEST-70-BONDBRIDGETEAMVLAN}: use qemu-3.0 syntax
...
use qemu-3.0 syntax for network devices
2018-08-13 16:30:25 +02:00
Harald Hoyer
d63a4e285e
TEST-40-NBD: disable for now
...
nbd is always broken
2018-07-12 15:18:48 +02:00
Harald Hoyer
9a9c67d61b
TEST-30-ISCSI: readd multiple target test
2018-07-06 11:56:23 +02:00
Harald Hoyer
e3fb645821
TEST-99-RPM: use Fedora 29
2018-07-05 13:39:46 +02:00
Harald Hoyer
d888e21b5d
test/ci-matrix.txt: add file specifying which tests to run
2018-01-12 13:04:34 +01:00
Harald Hoyer
5cc17c25c2
TEST-14-IMSM: fail early, if setup failed
2018-01-12 11:34:45 +01:00
Harald Hoyer
28a68f1f3c
iSCSI: no more iscsid
...
According to Cathy Zhou <Cathy.Zhou@Oracle.COM>:
"iscsistart is not designed to be working together with iscsid. When an
interface gets the dhcp offer successfully, the iscsiroot script is run
which starts the iscsistart service to establish the iSCSI session. With
the existence of iscsid, the iscsistart service's attempt to setup its
own mgmt ipc fails. Instead, the request to login to the iscsi target
is handled by the mgmt ipc of iscsid. After iscsistart finishes its
login attempt, it eventually sends a stop_event_loop request to stop
the mgmt process. As the result, it terminates iscsid."
So, iscsid is kicked out again.
Additionally iscsistart-flocked is used to make sure iscsistart is not
run in parallel.
2018-01-12 10:38:20 +01:00
Harald Hoyer
5a8efed021
TEST-3[01]-ISCSI*: increase disk size
2018-01-10 09:13:31 +01:00
Harald Hoyer
0d947530b2
TEST-70: sort interfaces for validation
2017-10-09 12:53:40 +02:00
Harald Hoyer
66a3d4053b
testsuite: increase disk image size
2017-07-28 15:15:02 +02:00
Harald Hoyer
c75ce02775
TEST-02-systemd: add systemd-analyze verify
2017-07-28 10:19:26 +02:00
Harald Hoyer
c0371761fb
add systemd-analyze to debug and TEST-02-SYSTEMD
2017-07-28 10:17:06 +02:00
Harald Hoyer
9388d99361
simplify TEST-30-ISCSI for CI
2017-07-21 16:01:04 +02:00
Harald Hoyer
9cd4edb445
TEST-12: increase retry and loglevel
2017-07-21 15:04:57 +02:00
Harald Hoyer
a1d92d8ace
TEST-12: sleep to get log messages
2017-07-21 14:44:20 +02:00
Harald Hoyer
fac3e9d975
TEST-12: settle before doing sfdisk
2017-07-21 14:07:30 +02:00
Harald Hoyer
9b8e6e40a9
increased qemu memory
2017-07-21 11:43:08 +02:00
Harald Hoyer
73e30ea106
Merge pull request #180 from danimo/tests_find_kvm_on_suse
...
Tests: find qemu on (open)SUSE systems
2017-06-19 13:42:30 +02:00
Harald Hoyer
29fd71b23d
TEST-50-MULTINIC: fix bridge test
...
Bridge with nics on a different vlan, otherwise we will see:
[ 117.750825] bridge0: received packet on ens5 with own address as source address
2017-04-26 09:39:20 +02:00
Daniel Molkentin
ce999bff98
Tests: find qemu on (open)SUSE systems
2017-04-05 16:42:22 +02:00
Harald Hoyer
0042f2568d
Merge branch 'remove-test-dependencies' of https://github.com/danimo/dracut into danimo-remove-test-dependencies
2017-03-30 09:21:50 +02:00
Harald Hoyer
b0d6254dad
TEST: redirect server output to server.log if $SERIAL empty
2017-03-30 09:04:02 +02:00
Harald Hoyer
f3f37f3cce
TEST: new rpcbind needs /run/rpcbind
2017-03-30 09:03:31 +02:00
Harald Hoyer
e1171941c2
TEST-70-BONDBRIDGETEAMVLAN: remove qemu -kernel parameter
...
'run-qemu' takes care of finding the kernel image
2017-03-30 08:34:57 +02:00
Daniel Molkentin
fd79054610
net-tools are not required anymore
...
Also bridge-utils was listed twice in README.testsuite.
2017-02-13 18:32:18 +01:00
Harald Hoyer
4e669086a3
test: add TEST-70-BONDBRIDGETEAMVLAN
2017-01-18 16:26:58 +01:00
Harald Hoyer
bdd626059c
test/run-qemu: make "-cpu host" the default
2017-01-18 16:26:30 +01:00
Harald Hoyer
f13278eac2
TEST-99-RPM: fix installation loop
2017-01-16 14:27:39 +01:00
Harald Hoyer
33a5586cae
test/Makefile: proper return code for "make check"
...
(cherry picked from commit aa40b82145
)
2017-01-16 14:27:39 +01:00
Harald Hoyer
ffc2ca202b
TEST-99-RPM: retry dnf 5 times in case http fails
2017-01-16 14:27:39 +01:00
Xunlei Pang
01030beda2
testsuite: add "rd.memdebug=4" in TEST-01-BASIC to test rd.memdebug
...
"rd.memdebug=4" includes all the test level, so add it to test
rd.memdebug function.
Signed-off-by: Xunlei Pang <xlpang@redhat.com>
2016-11-27 12:21:02 +08:00
Harald Hoyer
dfb3db3dad
testsuite: add "-cpu host" to kvm call
2016-11-14 16:21:06 +01:00
Harald Hoyer
e63ac4433a
test/test-rhel-7.2.rpms: remove file
2016-11-14 12:30:52 +01:00
Harald Hoyer
d941f0e015
Revert "TEST-99-RPM: use --best and install all rpms"
...
This reverts commit f81806db20
.
2016-11-14 12:29:12 +01:00
Harald Hoyer
f81806db20
TEST-99-RPM: use --best and install all rpms
2016-11-14 12:27:33 +01:00
Harald Hoyer
e35d1451f5
test/TEST-99-RPM: dnf does not like any dracut subpackage
2016-11-11 16:34:42 +01:00
Harald Hoyer
eac751f1e0
test/TEST-99-RPM: speedup test
2016-11-11 16:04:31 +01:00
Harald Hoyer
924a669a1b
TEST-99-RPM: append "/" to DESTDIR
2016-11-07 17:52:52 +01:00
Harald Hoyer
93d7b95ad4
TEST-30-ISCSI: give server more time for the head start
2016-11-07 17:22:08 +01:00
Harald Hoyer
ffcbde7fe2
TEST-99-RPM: set release version and disable update-testing repo
2016-11-07 17:20:18 +01:00
Harald Hoyer
44766d1f1f
TEST-99-RPM: actually use the generated rpms with dnf
2016-11-07 17:05:28 +01:00
Harald Hoyer
86f0904004
TEST-30-ISCSI: fixed dhcpd.conf and disabled nowait
2016-11-07 13:23:39 +01:00
Harald Hoyer
e22e04ae15
TEST-99-RPM: add test_check() for rpm,dnf,yum
2016-11-07 13:20:35 +01:00
Harald Hoyer
2811e4ed22
TEST-99-RPM: create dracut rpms to install first
...
create rpms in TESTDIR first
2016-11-07 13:15:56 +01:00
Harald Hoyer
ddfcfdf199
test/test-rhel-7.2.rpms
...
list of rpms to install to run the testsuite on rhel-7.2
2016-10-20 13:58:53 +02:00
Harald Hoyer
d7c9ad504e
TEST-30-ISCSI: add message, that all tests passed
2016-09-02 07:51:55 +02:00
Harald Hoyer
dba974844e
test/TEST-30-ISCSI: depend on tgtd and tgtadm
...
the testsuite now needs tgtd and tgtadm and not iscsi-target
2016-09-02 07:51:55 +02:00
Harald Hoyer
1de836c763
TEST-20-NFS: remove stale pid file
2016-08-19 15:33:59 +02:00
Harald Hoyer
b039b20ec2
test: correct cmdline reading functions
2016-06-27 12:05:37 +02:00
Harald Hoyer
f6fa9ef101
TEST-20-NFS: skip root=/dev/nfs tests with systemd v230
2016-06-23 16:38:17 +02:00
Harald Hoyer
36867f1abf
test: handle kernel panic in testsuite
...
- reboot kernel on panic
- qemu don't reboot
2016-06-10 08:53:01 +02:00
Harald Hoyer
0092942531
test/TEST-99-RPM: fixed test suite
...
- cope with dnf vs yum
- fixed find arguments
- make script fail, if command fails
2016-06-09 18:15:48 +02:00
Harald Hoyer
781f1971c3
cope with "rd.shell=0" in the testsuite
...
If emergency and shutdown-emergency hooks are called, the systemd should
poweroff the testsuite, therefore "rd.shell=0" is given on the test
suite kernel command lines.
"rd.shell=0" has to be parsed correctly by the test suite real root init
also.
2016-06-08 16:48:07 +02:00
Harald Hoyer
4e882b8090
use shutdown-emergency hook in testsuite to poweroff the machine
2016-06-07 14:27:03 +02:00
Ville Skyttä
9430ae301e
Do not use deprecated egrep/fgrep
2016-03-28 11:38:34 +03:00
Harald Hoyer
bb1b924792
TEST-30-ISCSI: some tests have unknown return code
...
by design
2016-01-19 14:43:43 +01:00
Harald Hoyer
24a78b2697
Fixed vlan, bonding, bridging, team logic
...
Call ifup for the slaves and assemble afterwards.
2016-01-19 11:35:23 +01:00
Harald Hoyer
b8bccd398a
test/TEST-04-FULL-SYSTEMD: optionally install machine-info and *-id
2015-12-14 15:19:53 +01:00
Harald Hoyer
b830a31331
TEST-16-DMSQUASH: do not use "--" with ldconfig -r
2015-12-14 15:19:53 +01:00
Harald Hoyer
b070c1d360
nbd: add systemd generator and use nbd export names instead of port numbers
...
Add a systemd generator for root=nbd:.. so that systemd has a correct
sysroot.mount unit.
Use export names instead of port numbers, because port number based
exports are deprecated and were removed.
2015-12-14 15:19:53 +01:00
Harald Hoyer
90ac2d2429
TEST-16-DMSQUASH: add code for IO throtteling in qemu
...
To test the mediacheck feature, I added commented out code with qemu IO
throtteling.
2015-11-18 10:17:04 +01:00
Harald Hoyer
c606be49d7
TEST-15-BTRFS: load btrfs module
...
(cherry picked from commit d9b5a98532
)
2015-11-11 16:15:50 +01:00
Harald Hoyer
f939cffdac
test/TEST-04-FULL-SYSTEMD/create-root.sh: modprobe btrfs
...
why so ever... it used to load automatically
(cherry picked from commit 65977ef1d1
)
2015-11-11 16:15:41 +01:00
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