From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH 3/4] add "make check" target
Date: Thu, 1 Sep 2011 17:42:18 +0200 [thread overview]
Message-ID: <1314891739-1881-4-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1314891739-1881-1-git-send-email-kraxel@redhat.com>
Add some Makefile glue so we have a simple "make check"
to run the unit tests.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
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
next prev parent reply other threads:[~2011-09-01 15:42 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-01 15:42 [Qemu-devel] [PATCH 0/4] add "make check" Gerd Hoffmann
2011-09-01 15:42 ` [Qemu-devel] [PATCH 1/4] Probe for libcheck by default Gerd Hoffmann
2011-09-01 19:37 ` Anthony Liguori
2011-09-02 7:42 ` Gerd Hoffmann
2011-09-05 7:39 ` Markus Armbruster
2011-09-01 15:42 ` [Qemu-devel] [PATCH 2/4] move checks to separate variable Gerd Hoffmann
2011-09-01 15:42 ` Gerd Hoffmann [this message]
2011-09-01 15:42 ` [Qemu-devel] [PATCH 4/4] add test-coroutine to checks Gerd Hoffmann
2011-09-05 7:55 ` [Qemu-devel] [PATCH 0/4] add "make check" Markus Armbruster
2011-10-24 18:43 ` Eduardo Habkost
2011-10-24 18:57 ` Anthony Liguori
2011-10-25 12:21 ` Kevin Wolf
2011-10-25 13:27 ` Gerd Hoffmann
2011-10-25 14:16 ` Kevin Wolf
2011-10-25 15:03 ` Eduardo Habkost
2011-10-25 15:22 ` Kevin Wolf
2011-10-26 20:49 ` Anthony Liguori
2011-10-27 8:20 ` Kevin Wolf
2011-10-27 17:58 ` Anthony Liguori
2011-10-27 21:22 ` Michael Roth
2011-10-25 15:54 ` Gerd Hoffmann
2011-10-25 16:30 ` Lucas Meneghel Rodrigues
2011-10-25 15:03 ` Anthony Liguori
2011-11-01 18:03 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1314891739-1881-4-git-send-email-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).