From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz9PS-0007wP-BF for qemu-devel@nongnu.org; Thu, 01 Sep 2011 11:42:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qz9PM-0005s9-0D for qemu-devel@nongnu.org; Thu, 01 Sep 2011 11:42:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz9PL-0005rZ-Kn for qemu-devel@nongnu.org; Thu, 01 Sep 2011 11:42:23 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p81FgMlB005444 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 1 Sep 2011 11:42:22 -0400 From: Gerd Hoffmann Date: Thu, 1 Sep 2011 17:42:18 +0200 Message-Id: <1314891739-1881-4-git-send-email-kraxel@redhat.com> In-Reply-To: <1314891739-1881-1-git-send-email-kraxel@redhat.com> References: <1314891739-1881-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 3/4] add "make check" target List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Add some Makefile glue so we have a simple "make check" to run the unit tests. Signed-off-by: Gerd Hoffmann --- Makefile | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 2963c8b..80c0bc2 100644 --- a/Makefile +++ b/Makefile @@ -289,6 +289,12 @@ endif test speed: all $(MAKE) -C tests $@ +.PHONY: check +check: $(patsubst %,run-check-%,$(CHECKS)) + +run-check-%: % + ./$< + .PHONY: TAGS TAGS: find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags -- 1.7.1