Böszörményi Zoltán
c9b3c89f94
Make TEST-16-DMSQUASH Python 3 compatible
...
This change still supports Python 2.6 and 2.7 but loses support
for Python 2.5.
The reason for this change was that Fedora 30 does not ship
python-imgcreate but ships python3-imgcreate.
Signed-off-by: Böszörményi Zoltán <zboszor@pr.hu>
5 years ago
Marko Myllynen
42d93d3482
Use eurlatgr as default console font
...
Fedora and others have used eurlatgr as the default console font
for some time now, or suggested using it:
https://fedoraproject.org/wiki/Changes/NewDefaultConsoleFont
https://wiki.archlinux.org/index.php/Linux_console#Fonts
The Fedora Change page lists some of the benefits and this file
lists all the characters (glyphs) supported by the font:
http://git.altlinux.org/people/legion/packages/kbd.git?p=kbd.git;a=blob;f=data/consolefonts/README.eurlatgr
The notable downside is that the font does not support Arabic,
Cyrillic or Hebrew as LatArCyrHeb-16 (partially) does, so in cases
where support for languages using them is needed a non-default
console font should be used. Fedora, for instance, uses langtable
to decide the console font to use based on installation language:
https://bugzilla.redhat.com/show_bug.cgi?id=1209460
5 years ago
Lubomir Rintel
31e18286fc
test: fix preserving server.log with V=1
...
This is essentially equivalent to what commit 712f471ebf
('test/test-functions: correctly move server.log') does for V=2.
6 years ago
Jonas Witschel
12f023ab03
Replace $(arch) by $(uname -m)
6 years ago
Lubomir Rintel
393fb1ac05
test/MULTINIC: correctly note activated devices when using network-manager
...
The .did-setup files are not there. What is there is the NetworkManager
connection files.
6 years ago
Lubomir Rintel
9dfd73bcbd
test/BONDBRIDGETEAMVLAN: don't assert against ifcfg files
...
The network-manager module writes keyfiles instead of ifcfg files. Just
check whether the configuration got actually applied correctly.
6 years ago
Lubomir Rintel
2b1b3bcdcb
test/IFCFG: make sure the network-legacy plugin is being used
...
If the network-manager plugin is used instead, it wouldn't write out
ifcfg files and we wouldn't have anything to check.
While at that, also enable the test.
6 years ago
Lubomir Rintel
70787ab619
test: copy BONDBRIDGETEAMVLAN to IFCFG
...
The IFCFG test will make sure the network-legacy plugin keeps writing
out correct ifcfg files.
This is a separate commit so that actual changes are visible in the
following one.
6 years ago
Lubomir Rintel
e318ba30fb
test/{10,12,13,14,17,30,31}: increase the disk sizes
...
On Fedora 30 the paritition sizes turn out to be too small again:
+ mkdir -p /sysroot
+ mount /dev/dracut/root /sysroot
+ cp -a -t /sysroot /source/bin /source/dev /source/etc /source/lib /source/lib64 /source/proc /source/root /source/sbin /source/sys /source/tmp /source/usr /source/var
cp: error writing '/sysroot/usr/lib64/libkrb5.so.3.3': No space left on device
cp: error writing '/sysroot/usr/lib64/libkrb5support.so.0.1': No space left on device
It turns out that there has been quite some size increase in some libraries,
notably glibc, though not all -- some even shrunk, ruling out a toolchain
problem. Here's are files over 1M we install on Fedora 30:
f29 f30
2.7M => 6.4M /usr/lib64/{libc-2.28.so => libc-2.29.so}
3.1M => 6.0M /usr/lib64/libcrypto.so.1.1.1c
2.0M => 3.5M /usr/lib64/{libm-2.28.so => libm-2.29.so}
2.9M => 2.8M /usr/lib/systemd/{libsystemd-shared-239.so => libsystemd-shared-241.so}
1.7M => 2.5M /usr/lib64/libunistring.so.2.1.0
2.3M => 2.4M /usr/lib64/bind9-export/libdns-export.so.1105.0.0
1.2M => 2.1M /usr/bin/bash
1.1M => 1.4M /usr/lib64/libkrb5.so.3.3
1.2M => 1.4M /usr/lib64/libgcrypt.so.20.2.4
612K => 1.1M /usr/lib64/libssl.so.1.1.1c
This increases the image sizes to accomodate for this. There's probably
little else we can do.
6 years ago
Lubomir Rintel
c21c1d459e
TEST-70-BONDBRIDGETEAMVLAN: get rid of duplicate makefile
6 years ago
Lubomir Rintel
7934c6f918
test: tell systemd to reboot on fatal errors
...
Otherwise systemd would freeze execution, causing the test to time out
instead of failing fast.
6 years ago
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 || [...]
6 years ago
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.
6 years ago
Harald Hoyer
712f471ebf
test/test-functions: correctly move server.log
6 years ago
Harald Hoyer
225e4b94cb
Fix tests with network-legacy
6 years ago
Harald Hoyer
09132c732a
test/test-functions: fixed V=1 logic
7 years ago
Harald Hoyer
286685cb72
TEST-99-RPM: use releasever of the host system
7 years ago
Harald Hoyer
7c62555bcf
TEST-15-BTRFSRAID: use seperate disk image for boot result
7 years ago
Harald Hoyer
2699d8ff7e
TEST-99-RPM: removed --releasever
7 years ago
Harald Hoyer
5a8f1aef55
TEST-15-BTRFSRAID: sync in test-init
...
strange failure
7 years ago
Harald Hoyer
f8cad00948
test: for V=2 tail only the last MB of logs
7 years ago
Harald Hoyer
67f43d2124
test: fixed test.log name
7 years ago
Harald Hoyer
51d0a54555
travis: use own logtee.c to reduce log output
7 years ago
Harald Hoyer
c31a80c9ed
TEST-01: remove memdebug
7 years ago
Harald Hoyer
d15c15c8f5
test/test-functions: be verbose for any $V not empty
7 years ago
Harald Hoyer
9288d21b9f
TEST-50-MULTINIC: removed bogus qemu compat server call
7 years ago
Harald Hoyer
cafe6675c2
test/run-qemu: move -cpu host to kvm args
7 years ago
Harald Hoyer
fba4d28433
TEST-50-MULTINIC: fixed server.log
7 years ago
Harald Hoyer
b7774da97c
might even run without kvm
7 years ago
Harald Hoyer
0f294d90b2
TEST-31-ISCSI-MULTI: increase verbose level
7 years ago
Harald Hoyer
a2dbecfcd6
test: add TEST_RUN_ID
7 years ago
Harald Hoyer
604c09b1da
TEST-31-ISCSI-MULTI/test.sh: fixed test description
7 years ago
Harald Hoyer
f9c8b3112a
TEST-50-MULTINIC/test.sh: fixed server startup
7 years ago
Harald Hoyer
ca8f1c1ba3
test: fixed KVERSION and qemu backwards compatiblity
7 years ago
Harald Hoyer
94cc856cb8
TEST-70-BONDBRIDGETEAMVLAN: load vlan kernel modules
7 years ago
Harald Hoyer
827a5b1a80
test: also output server.log on failure
7 years ago
Harald Hoyer
393da0c370
TEST-50-MULTINIC: s/--device/-device
7 years ago
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
7 years ago
Harald Hoyer
ffbd37d784
TEST-31-ISCSI-MULTI: use different port than TEST-30
7 years ago
Harald Hoyer
6058b06b86
test/{TEST-50-MULTINIC,TEST-70-BONDBRIDGETEAMVLAN}: use qemu-3.0 syntax
...
use qemu-3.0 syntax for network devices
7 years ago
Harald Hoyer
d63a4e285e
TEST-40-NBD: disable for now
...
nbd is always broken
7 years ago
Harald Hoyer
9a9c67d61b
TEST-30-ISCSI: readd multiple target test
7 years ago
Harald Hoyer
e3fb645821
TEST-99-RPM: use Fedora 29
7 years ago
Harald Hoyer
d888e21b5d
test/ci-matrix.txt: add file specifying which tests to run
7 years ago
Harald Hoyer
5cc17c25c2
TEST-14-IMSM: fail early, if setup failed
7 years ago
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.
7 years ago
Harald Hoyer
5a8efed021
TEST-3[01]-ISCSI*: increase disk size
7 years ago
Harald Hoyer
0d947530b2
TEST-70: sort interfaces for validation
7 years ago
Harald Hoyer
66a3d4053b
testsuite: increase disk image size
8 years ago
Harald Hoyer
c75ce02775
TEST-02-systemd: add systemd-analyze verify
8 years ago