summaryrefslogtreecommitdiff
authorMichael Stahl <mstahl@redhat.com>2012-08-24 09:55:28 (GMT)
committer Michael Stahl <mstahl@redhat.com>2012-08-24 09:56:14 (GMT)
commit01a6b0b0eb2103df594881e4e5ac3607f1177998 (patch) (side-by-side diff)
treee865a70a16be5e2c60b289c87ea8646a0be81161
parent629cd5e1fcdf780cedf7fd88ed7d02492be31411 (diff)
downloadcore-01a6b0b0eb2103df594881e4e5ac3607f1177998.zip
core-01a6b0b0eb2103df594881e4e5ac3607f1177998.tar.gz
make it possible to run JunitTest and CppunitTest from Makefile.top
Change-Id: Ib0286466403a0457420c708ac083051d28d087bb
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile.top8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.top b/Makefile.top
index 54fa900..399b523 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
#