Victor Lowther
333103217d
Don't create fully generic initramfs'es in the test framework
...
There is no point loading every driver available when we are not testing
network functionality and qemu does not even support the stuff we were
loading. It just wastes time and space.
16 years ago
Warren Togami
e19d6bf603
Disambiguate modules and drivers. modules are dracutmodules. drivers are kernel modules.
16 years ago
Victor Lowther
a0c2cee947
Get rid of dependency on e2mkdir
...
If we install copy-root as a mount hook, it will be run after the root fs
is mounted and it will make hte proc directory, allowing root filesystem
creation to finish without error.
16 years ago
Harald Hoyer
c9f0e1f9a5
add "#!/bin/bash" to test.sh
16 years ago
Victor Lowther
fe9143d9ca
Move content of 00test module into the test subdir
...
The last changes made the 00test module really awkward anyways, so just
hack the test module into the initramfs in a slight more brutal fashion.
16 years ago
Harald Hoyer
02b47109cf
add small test script to create a minimal root in /mnt/root
16 years ago
Harald Hoyer
c00f04f57a
introduce modular test suite
16 years ago
Harald Hoyer
2f692e8ff8
silently run qemu
16 years ago
Harald Hoyer
008bb4f22c
/dev/kvm is a char device
16 years ago
Harald Hoyer
2281815799
set u+x for run-qemu
16 years ago
Andreas Thienemann
8a4b60d9b2
Support different virtualization technologies for run-qemu.
...
If the host supports kvm, use is. If this is not the case but the kqemu
module is loaded, run qemu with kqemu optimization. Otherwise fall-back to
pure usermode qemu.
16 years ago
Victor Lowther
4957ab92f2
Create test image on an md array and improve cryptroot handling
...
If we purport to test booting to an md raid, we may as well test it.
We do not need the plymouth module and the normal crypt module to include
duplicate functionality.
16 years ago
Victor Lowther
7f6643f9d9
Add comments to make-test-root to explain why it is written the way it is.
16 years ago
Victor Lowther
9335cb383a
We create our test image with root as an LVM menber.
...
We purport to support booting off an encrypted LVM PV, may as well test it.
16 years ago
Victor Lowther
ac6da96cc8
Make running qemu a little more generic
...
Also create the root filesystem from within the virtual env, this way there
will be no nasty suprises w.r.t interactions with the host machine. This
is important when we test booting to LVM, LUKS, and mdraid.
16 years ago
Harald Hoyer
4b8b7c59cf
quit plymouth in test root
16 years ago
Harald Hoyer
3745a7eb43
include all modules for the test besides of plymouth
16 years ago
Harald Hoyer
d4244cb25b
support normal nfs root definition syntax
16 years ago
Harald Hoyer
280117d934
add nfs testcase
16 years ago
Harald Hoyer
cc5864aa4a
better use bash for initramfs debugging
16 years ago
Harald Hoyer
02948d0905
add minimal dnsmasq dhcp/dns server
16 years ago
Harald Hoyer
2e0eaafa9b
use multicast net for qemu
16 years ago
Harald Hoyer
6b852fde4b
add dhclient to test root image
16 years ago
Harald Hoyer
c395f1de24
add debug to test image
16 years ago
Harald Hoyer
c354b54e55
removed kernel variable from test/test-initramfs
16 years ago
Harald Hoyer
9e551c9097
cleanup make-test-root
16 years ago
Harald Hoyer
e2367e1948
add APPEND and DRACUTOPTS to make target "test"
...
call test with additional dracut options and kernel command line
parameter:
$ make APPEND="udevinfo quiet" DRACUTOPTS="-verbose" test
16 years ago
Harald Hoyer
7ea690569c
no additional modules specified for test/dracut.conf.test
16 years ago
Harald Hoyer
e4d48c451a
install more binaries and directories in the test root
16 years ago
Harald Hoyer
2647059b7c
boot with network
16 years ago
Harald Hoyer
f5f52afdca
fixed the root kernel command argument
16 years ago
Harald Hoyer
93fea990ec
fixed the creation of the root filesystem
16 years ago
Harald Hoyer
309ed9668b
add udev mount rule module to the test image
16 years ago
Victor Lowther
6ce3123192
Updated test-init to only create fstab symlink as needed.
16 years ago
Victor Lowther
9239133486
Minor updates to the testing framework
16 years ago
Victor Lowther
8faaa8f082
Change default install target for udev rules.
...
Also make sure that udev does not complain about a missing rules.d directory.
16 years ago
Victor Lowther
597bd00990
Load all our usual dracut modules
16 years ago
Victor Lowther
88ffd2df3f
Update test framework to create and use LVM on cryptroot
16 years ago
Victor Lowther
32d6bc5d75
Modify Makefile to use new test harness
16 years ago
Victor Lowther
c0b5f979a8
Add a very simple test harness
...
This creates a basic root filesystem, creates an initramfs, and tries
to boot to the basic filesystem.
The init code on the test filesystem prints how much memory is used vs. free
and then drops to a shell. Exiting the shell will power off the VM.
16 years ago