Added make check target to run unit tests too since this seems to be

standard.
This commit is contained in:
Alexandre Julliard 2002-02-28 21:43:46 +00:00
parent 60502143d2
commit abfcb8bfb9
4 changed files with 6 additions and 6 deletions

View File

@ -141,7 +141,7 @@ LINTS = $(C_SRCS:.c=.ln)
.pl.ok: .pl.ok:
$(RUNTEST) $(RUNTESTFLAGS) $< && touch $@ $(RUNTEST) $(RUNTESTFLAGS) $< && touch $@
.PHONY: all install uninstall clean distclean depend dummy test testclean .PHONY: all install uninstall clean distclean depend dummy check test testclean
# 'all' target first in case the enclosing Makefile didn't define any target # 'all' target first in case the enclosing Makefile didn't define any target
@ -242,7 +242,7 @@ testclean:: $(SUBDIRS:%=%/__testclean__)
$(RM) $(TESTRESULTS) $(RM) $(TESTRESULTS)
clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__) clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__)
$(RM) $(CLEAN_FILES) $(GEN_C_SRCS) $(GEN_ASM_SRCS) $(RC_SRCS:.rc=.res) $(RC_SRCS16:.rc=.res) $(MC_SRCS:.mc=.mc.rc) $(TESTRESULTS) $(PROGRAMS) $(RM) $(CLEAN_FILES) $(GEN_C_SRCS) $(GEN_ASM_SRCS) $(RC_SRCS:.rc=.res) $(RC_SRCS16:.rc=.res) $(MC_SRCS:.mc=.mc.rc) $(TESTRESULTS) $(TESTLIST) $(PROGRAMS)
# Rules for installing # Rules for installing
@ -254,7 +254,7 @@ $(SUBDIRS:%=%/__uninstall__): dummy
# Rules for testing # Rules for testing
test:: $(TESTRESULTS) check test:: $(TESTRESULTS)
$(PLTESTS:.c=.ok): $(WINETEST) $(PLTESTS:.c=.ok): $(WINETEST)
$(CTESTS:.c=.ok): $(TESTPROGRAM).so $(CTESTS:.c=.ok): $(TESTPROGRAM).so

View File

@ -134,7 +134,7 @@ checklink::
@cd dlls && $(MAKE) checklink @cd dlls && $(MAKE) checklink
@cd debugger && $(MAKE) checklink @cd debugger && $(MAKE) checklink
test:: check test::
@cd programs/winetest && $(MAKE) test @cd programs/winetest && $(MAKE) test
@cd dlls && $(MAKE) test @cd dlls && $(MAKE) test

View File

@ -794,7 +794,7 @@ install:: $(SUBDIRS:%=%/__install__)
uninstall:: $(SUBDIRS:%=%/__uninstall__) uninstall:: $(SUBDIRS:%=%/__uninstall__)
test:: $(SUBDIRS:%=%/__test__) check test:: $(SUBDIRS:%=%/__test__)
checklink:: $(SUBDIRS:%=%/__checklink__) checklink:: $(SUBDIRS:%=%/__checklink__)

View File

@ -211,7 +211,7 @@ install:: \$(SUBDIRS:%=%/__install__)
uninstall:: \$(SUBDIRS:%=%/__uninstall__) uninstall:: \$(SUBDIRS:%=%/__uninstall__)
test:: \$(SUBDIRS:%=%/__test__) check test:: \$(SUBDIRS:%=%/__test__)
checklink:: \$(SUBDIRS:%=%/__checklink__) checklink:: \$(SUBDIRS:%=%/__checklink__)