[syslinux:master] hdt: Adding make test target

syslinux-bot for Erwan Velu erwan.velu at free.fr
Sun Feb 6 14:07:18 PST 2011


Commit-ID:  779142d7b6f8a426f04fdb4b08cb9a884e97ee82
Gitweb:     http://syslinux.zytor.com/commit/779142d7b6f8a426f04fdb4b08cb9a884e97ee82
Author:     Erwan Velu <erwan.velu at free.fr>
AuthorDate: Mon, 7 Dec 2009 21:25:23 +0100
Committer:  Erwan Velu <erwan.velu at free.fr>
CommitDate: Mon, 7 Dec 2009 21:25:23 +0100

hdt: Adding make test target

Impact: Make testing easier

During the dev. phases, we usually do make hdt.img; qemu-kvm -fda
hdt.img. Let's put that into a make target.


---
 com32/hdt/Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/com32/hdt/Makefile b/com32/hdt/Makefile
index 5c02c43..8cd96f2 100644
--- a/com32/hdt/Makefile
+++ b/com32/hdt/Makefile
@@ -46,6 +46,7 @@ GZ_PCI_IDS_FILE         ?= $(PCI_IDS_FILE).gz
 REBOOT_COM32            ?= $(com32)/modules/reboot.c32
 MENU_COM32              ?= $(com32)/menu/menu.c32
 ART_DIR                 ?= art/
+QEMU			?= qemu-kvm
 
 all: $(MODULES) $(TESTFILES)
 
@@ -111,6 +112,9 @@ hdt.iso: hdt.c32 $(topdir)/core/isolinux.bin $(FLOPPY_DIR)/hdt.cfg memtest
 release: spotless hdt.c32 hdt.img hdt.img.gz hdt.iso
 	mv hdt.c32 hdt_$(VERSION_C32).c32
 
+test: hdt.img
+	$(QEMU) -fda hdt.img
+
 tidy dist:
 	rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
 



More information about the Syslinux-commits mailing list