From patchwork Thu Sep 1 15:42:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 112936 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C3757B6F8E for ; Fri, 2 Sep 2011 01:42:55 +1000 (EST) Received: from localhost ([::1]:48218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz9Ph-00087A-Oj for incoming@patchwork.ozlabs.org; Thu, 01 Sep 2011 11:42:45 -0400 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 Received: from rincewind.home.kraxel.org (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p81FgLvb026919; Thu, 1 Sep 2011 11:42:21 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 64B1341601; Thu, 1 Sep 2011 17:42:20 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 3/4] add "make check" target X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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