summaryrefslogtreecommitdiff
path: root/Makefile.top
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-08-24 11:55:28 +0200
committerMichael Stahl <mstahl@redhat.com>2012-08-24 11:56:14 +0200
commit01a6b0b0eb2103df594881e4e5ac3607f1177998 (patch)
treee865a70a16be5e2c60b289c87ea8646a0be81161 /Makefile.top
parent629cd5e1fcdf780cedf7fd88ed7d02492be31411 (diff)
make it possible to run JunitTest and CppunitTest from Makefile.top
Change-Id: Ib0286466403a0457420c708ac083051d28d087bb
Diffstat (limited to 'Makefile.top')
-rw-r--r--Makefile.top8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.top b/Makefile.top
index 54fa9003f1c1..399b5239be4a 100644
--- a/Makefile.top
+++ b/Makefile.top
@@ -313,6 +313,14 @@ $(eval $(call gbuild_modules_rules,$(gbuild_modules)))
$(eval $(call dmake_modules_rules,$(dmake_modules)))
+# run a JunitTest - relies on naming convention (module prefix)
+$(WORKDIR)/JunitTest/%/done :
+ cd $(firstword $(subst _, ,$*)) && $(GNUMAKE) $(GMAKE_OPTIONS) $@ gb_PARTIALBUILD=T
+
+# run a CppunitTest - relies on naming convention (module prefix)
+$(WORKDIR)/CppunitTest/%.test :
+ cd $(firstword $(subst _, ,$*)) && $(GNUMAKE) $(GMAKE_OPTIONS) $@ gb_PARTIALBUILD=T
+
#
# Clean
#