]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm: Add 'check' target to Makefile
authorPekka Enberg <penberg@cs.helsinki.fi>
Wed, 9 Jun 2010 18:32:29 +0000 (21:32 +0300)
committerPekka Enberg <penberg@cs.helsinki.fi>
Wed, 9 Jun 2010 18:32:29 +0000 (21:32 +0300)
This patch adds a 'check' target to Makefile that can be used to run some
simple test cases.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
tools/kvm/Makefile

index 8113dcfe95bf716468b4eda0d7dc0d187ff89de6..6096ac713a6b5f048d01976b4b4628286eda2a73 100644 (file)
@@ -77,6 +77,10 @@ bios/int10.o: bios/int10.S bios/int10-real.S
        $(Q) objcopy -O binary -j .text bios/int10-real.o bios/int10-real.bin
        $(Q) $(CC) $(CFLAGS) -c bios/int10.S -o bios/int10.o
 
+check: $(PROGRAM)
+       $(MAKE) -C tests
+       ./$(PROGRAM) tests/pit/tick.bin
+.PHONY: check
 
 clean:
        $(E) "  CLEAN"