Commit Graph

536 Commits (8b2afb08baea7fc6e15ece94e287dcc4a008bcc4)

Author SHA1 Message Date
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.
2009-05-25 17:49:56 +02:00
Harald Hoyer 02b47109cf add small test script to create a minimal root in /mnt/root 2009-05-25 16:51:10 +02:00
Harald Hoyer c00f04f57a introduce modular test suite 2009-05-25 15:32:26 +02:00
Harald Hoyer 2f692e8ff8 silently run qemu 2009-05-25 14:11:24 +02:00
Harald Hoyer 008bb4f22c /dev/kvm is a char device 2009-05-25 11:44:52 +02:00
Harald Hoyer 2281815799 set u+x for run-qemu 2009-05-25 11:36:32 +02:00
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.
2009-05-25 11:36:32 +02:00
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.
2009-05-25 11:36:32 +02:00
Victor Lowther 7f6643f9d9 Add comments to make-test-root to explain why it is written the way it is. 2009-05-25 11:36:32 +02:00
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.
2009-05-25 11:36:27 +02:00
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.
2009-05-25 11:24:26 +02:00
Harald Hoyer 4b8b7c59cf quit plymouth in test root 2009-05-20 14:58:55 +02:00
Harald Hoyer 3745a7eb43 include all modules for the test besides of plymouth 2009-05-20 14:25:35 +02:00
Harald Hoyer d4244cb25b support normal nfs root definition syntax 2009-05-18 19:55:58 +02:00
Harald Hoyer 280117d934 add nfs testcase 2009-05-18 19:32:22 +02:00
Harald Hoyer cc5864aa4a better use bash for initramfs debugging 2009-05-18 16:09:16 +02:00
Harald Hoyer 02948d0905 add minimal dnsmasq dhcp/dns server 2009-05-18 15:33:37 +02:00
Harald Hoyer 2e0eaafa9b use multicast net for qemu 2009-05-18 15:32:09 +02:00
Harald Hoyer 6b852fde4b add dhclient to test root image 2009-05-18 14:09:21 +02:00
Harald Hoyer c395f1de24 add debug to test image 2009-05-18 14:06:47 +02:00
Harald Hoyer c354b54e55 removed kernel variable from test/test-initramfs 2009-05-15 14:09:55 +02:00
Harald Hoyer 9e551c9097 cleanup make-test-root 2009-05-15 13:24:08 +02:00
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
2009-05-15 13:16:15 +02:00
Harald Hoyer 7ea690569c no additional modules specified for test/dracut.conf.test 2009-05-12 15:46:20 +02:00
Harald Hoyer e4d48c451a install more binaries and directories in the test root 2009-05-12 15:35:57 +02:00
Harald Hoyer 2647059b7c boot with network 2009-05-12 15:35:22 +02:00
Harald Hoyer f5f52afdca fixed the root kernel command argument 2009-03-24 11:31:07 +01:00
Harald Hoyer 93fea990ec fixed the creation of the root filesystem 2009-03-24 11:30:30 +01:00
Harald Hoyer 309ed9668b add udev mount rule module to the test image 2009-03-24 11:29:53 +01:00
Victor Lowther 6ce3123192 Updated test-init to only create fstab symlink as needed. 2009-03-20 03:51:05 -05:00
Victor Lowther 9239133486 Minor updates to the testing framework 2009-03-20 03:34:30 -05:00
Victor Lowther 8faaa8f082 Change default install target for udev rules.
Also make sure that udev does not complain about a missing rules.d directory.
2009-03-20 03:08:40 -05:00
Victor Lowther 597bd00990 Load all our usual dracut modules 2009-03-20 03:08:40 -05:00
Victor Lowther 88ffd2df3f Update test framework to create and use LVM on cryptroot 2009-03-20 03:08:39 -05:00
Victor Lowther 32d6bc5d75 Modify Makefile to use new test harness 2009-03-08 11:51:21 -05:00
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.
2009-03-08 11:39:55 -05:00