RUN_WRAP can be used to run tests in qemu
authorSzabolcs Nagy <nsz@port70.net>
Sun, 28 Jul 2013 15:08:47 +0000 (15:08 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Sun, 28 Jul 2013 15:08:47 +0000 (15:08 +0000)
Makefile

index d27eb2d..dc0b6f2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ CFLAGS:=-Isrc/common -I$(B)/common
 LDLIBS:=$(B)/common/libtest.a
 AR = $(CROSS_COMPILE)ar
 RANLIB = $(CROSS_COMPILE)ranlib
+RUN_TEST = $(RUN_WRAP) $(B)/common/runtest
 
 all:
 %.mk:
@@ -139,7 +140,7 @@ $(B)/%: $(B)/%.o
 %.ld.err: %
        touch $@
 %.err: %
-       $(B)/common/runtest ./$< >$@ || true
+       $(RUN_TEST) ./$< >$@ || true
 
 .PHONY: all run clean cleanall