Various makefile fixes for the test environment.

This commit is contained in:
Alexandre Julliard 2002-04-02 02:58:45 +00:00
parent 5068347b19
commit d7c606d624
6 changed files with 20 additions and 9 deletions

View File

@ -259,6 +259,9 @@ $(SUBDIRS:%=%/__uninstall__): dummy
check test:: $(TESTRESULTS) check test:: $(TESTRESULTS)
$(SUBDIRS:%=%/__test__): dummy
@cd `dirname $@` && $(MAKE) test
$(PLTESTS:.c=.ok): $(WINETEST) $(PLTESTS:.c=.ok): $(WINETEST)
$(CTESTS:.c=.ok): $(TESTPROGRAM).so $(CTESTS:.c=.ok): $(TESTPROGRAM).so

View File

@ -71,6 +71,11 @@ INSTALLSUBDIRS = \
tsx11 \ tsx11 \
unicode unicode
# Sub-directories to run make test into
TESTSUBDIRS = \
programs/winetest \
dlls
EMUOBJS = \ EMUOBJS = \
miscemu/miscemu.o miscemu/miscemu.o
@ -157,9 +162,12 @@ checklink::
@cd dlls && $(MAKE) checklink @cd dlls && $(MAKE) checklink
@cd debugger && $(MAKE) checklink @cd debugger && $(MAKE) checklink
check test:: test_environment: dummy
@cd programs/winetest && $(MAKE) test @cd programs/winetest && $(MAKE) all
@cd dlls && $(MAKE) test
$(TESTSUBDIRS:%=%/__test__): test_environment
check test:: $(TESTSUBDIRS:%=%/__test__)
TAGS etags: TAGS etags:
etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain` etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`

View File

@ -840,9 +840,6 @@ libkernel32.dll.$(LIBEXT): kernel/kernel32.dll$(DLLEXT)
# Misc rules # Misc rules
$(SUBDIRS:%=%/__test__): dummy
@cd `dirname $@` && $(MAKE) test
$(SUBDIRS:%=%/__checklink__): dummy $(SUBDIRS:%=%/__checklink__): dummy
@cd `dirname $@` && $(MAKE) checklink @cd `dirname $@` && $(MAKE) checklink

View File

@ -246,9 +246,6 @@ foreach $mod (keys %linkable_dlls)
print NEWMAKE <<EOF; print NEWMAKE <<EOF;
# Misc rules # Misc rules
\$(SUBDIRS:%=%/__test__): dummy
\@cd `dirname \$\@` && \$(MAKE) test
\$(SUBDIRS:%=%/__checklink__): dummy \$(SUBDIRS:%=%/__checklink__): dummy
\@cd `dirname \$\@` && \$(MAKE) checklink \@cd `dirname \$\@` && \$(MAKE) checklink

View File

@ -32,6 +32,8 @@ RC_SRCS = \
CTESTS = tests/vartest.c CTESTS = tests/vartest.c
EXTRASUBDIRS = tests
@MAKE_DLL_RULES@ @MAKE_DLL_RULES@
### Dependencies: ### Dependencies:

View File

@ -10,6 +10,8 @@ MODULE = winetest
C_SRCS = winetest.c C_SRCS = winetest.c
EXTRA_SRCS = wtmain.c
EXTRA_OBJS = wine.o EXTRA_OBJS = wine.o
EXTRASUBDIRS = include tests EXTRASUBDIRS = include tests
@ -19,6 +21,8 @@ PLTESTS = \
@MAKE_PROG_RULES@ @MAKE_PROG_RULES@
all: wtmain.o
wine.c: wine.xs wine.c: wine.xs
perl $(XSUBPPDIR)/xsubpp -typemap $(XSUBPPDIR)/typemap $(SRCDIR)/wine.xs >wine.c || $(RM) wine.c perl $(XSUBPPDIR)/xsubpp -typemap $(XSUBPPDIR)/typemap $(SRCDIR)/wine.xs >wine.c || $(RM) wine.c