qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 14/18] qtest: Add "QTEST_FILTER" to filter test case


From: Fam Zheng
Subject: [Qemu-devel] [PATCH 14/18] qtest: Add "QTEST_FILTER" to filter test cases
Date: Fri, 17 Apr 2015 15:59:29 +0800

Signed-off-by: Fam Zheng <address@hidden>
---
 tests/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/Makefile b/tests/Makefile
index 55aa745..1c1294f 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -411,12 +411,16 @@ GCOV_OPTIONS = -n $(if $(V),-f,)
 
 # gtester tests, possibly with verbose output
 
+QTEST_FILTER ?= %
+
 .PHONY: $(patsubst %, check-qtest-%, $(QTEST_TARGETS))
 $(patsubst %, check-qtest-%, $(QTEST_TARGETS)): check-qtest-%: $(check-qtest-y)
        $(if $(CONFIG_GCOV),@rm -f *.gcda */*.gcda */*/*.gcda */*/*/*.gcda,)
        $(call quiet-command,QTEST_QEMU_BINARY=$*-softmmu/qemu-system-$* \
                MALLOC_PERTURB_=$${MALLOC_PERTURB_:-$$((RANDOM % 255 + 1))} \
-               gtester $(GTESTER_OPTIONS) -m=$(SPEED) 
$(check-qtest-$*-y),"GTESTER $@")
+               gtester $(GTESTER_OPTIONS) -m=$(SPEED) \
+        $(filter $(QTEST_FILTER),$(check-qtest-$*-y)),\
+        "GTESTER $@")
        $(if $(CONFIG_GCOV),@for f in $(gcov-files-$*-y); do \
          echo Gcov report for $$f:;\
          $(GCOV) $(GCOV_OPTIONS) $$f -o `dirname $$f`; \
-- 
1.9.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]