]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
create test/initramfs.testing from Makefile target
authorHarald Hoyer <harald@redhat.com>
Mon, 25 May 2009 10:11:27 +0000 (12:11 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 25 May 2009 10:11:27 +0000 (12:11 +0200)
Makefile

index d46dc8aace968bf7fd7a9332a935f439ccf7110e..5f9878d1c5f5cb9d578825b87c5445c99209b14c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -34,9 +34,12 @@ rpm: dracut-$(VERSION)-$(GITVERSION).tar.bz2
        rpmbuild --define "_topdir $$PWD" --define "_sourcedir $$PWD" --define "_specdir $$PWD" --define "_srcrpmdir $$PWD" --define "_rpmdir $$PWD" --define "gittag $(GITVERSION)" -ba dracut.spec 
        rm -fr BUILD BUILDROOT
 
-test: test/root.ext2 all
+test: test/root.ext2 test/initramfs.testing all
        sudo APPEND="$(APPEND)" DRACUTOPTS="$(DRACUTOPTS)" test/test-initramfs
 
+test/initramfs.testing:
+       sudo ./dracut $(DRACUTOPTS) -c test/dracut.conf.test -l -f test/initramfs.testing
+
 test/root.ext2: test/test-init test/make-test-root
        sudo test/make-test-root