You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2005/09/13 04:50:26 UTC

svn commit: r280467 - in /apr/apr/trunk/test: MakeWin32Make.awk Makefile.win aprtest.dsp

Author: wrowe
Date: Mon Sep 12 19:50:22 2005
New Revision: 280467

URL: http://svn.apache.org/viewcvs?rev=280467&view=rev
Log:

  It's not possible anymore to keep these in sync, we've already
  thrown away compatibility by becoming addicted to libtool.

  Give it up already, and insist that the libtool addicts keep
  our Makefile.win in sync.  Syrro

Removed:
    apr/apr/trunk/test/MakeWin32Make.awk
Modified:
    apr/apr/trunk/test/Makefile.win
    apr/apr/trunk/test/aprtest.dsp

Modified: apr/apr/trunk/test/Makefile.win
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/test/Makefile.win?rev=280467&r1=280466&r2=280467&view=diff
==============================================================================
--- apr/apr/trunk/test/Makefile.win (original)
+++ apr/apr/trunk/test/Makefile.win Mon Sep 12 19:50:22 2005
@@ -1,101 +1,118 @@
+# PROGRAMS includes all test programs built on this platform.
+# STDTEST_PORTABLE
+#   test programs invoked via standard user interface, run on all platforms
+# STDTEST_NONPORTABLE
+#   test programs invoked via standard user interface, not portable
+# OTHER_PROGRAMS
+#   programs such as sendfile, that have to be invoked in a special sequence
+#   or with special parameters
 
-LINK=link /nologo
-
-PROGRAMS = \
-        globalmutexchild.exe \
-	sendfile.exe \
-	proc_child.exe \
-        tryread.exe \
-	occhild.exe \
-	readchild.exe \
-	sockchild.exe \
+STDTEST_PORTABLE = \
 	testlockperf.exe \
 	testshmproducer.exe \
 	testshmconsumer.exe \
 	testmutexscope.exe \
-	testall.exe \
-	mod_test.so
+	testall.exe
+
+OTHER_PROGRAMS = sendfile.exe 
 
+PROGRAMS = $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE) $(OTHER_PROGRAMS)
 
 TARGETS = $(PROGRAMS)
 
-LOCAL_LIBS=..\LibD\apr-1.lib 
-ALL_LIBS=kernel32.lib advapi32.lib ws2_32.lib mswsock.lib ole32.lib shell32.lib rpcrt4.lib
+# bring in rules.mk for standard functionality
+ALL: $(TARGETS)
 
-CLEAN_TARGETS = mod_test.lib mod_test.exp
+CL = cl.exe
 
-INCDIR=../include
-INCLUDES=/I "$(INCDIR)"
+CFLAGS = /nologo /c /MDd /W3 /Gm /GX /Zi /Od /D _DEBUG /D WIN32 /D APR_DECLARE_STATIC /FD 
 
-all: $(TARGETS)
+.c.obj::
+	$(CL) -c $< $(CFLAGS) $(INCLUDES)
 
-clean:
-	-del $(CLEAN_TARGETS) $(PROGRAMS) *.obj *.pdb *.ilk 2>NUL
+LOCAL_LIBS= ../LibD/apr-1.lib 
+ALL_LIBS= kernel32.lib user32.lib advapi32.lib Rpcrt4.lib ws2_32.lib wsock32.lib ole32.lib 
 
-.c.obj:
-	cl /nologo /c /MDd /W3 /GX /Zi /Od /DWIN32 /D_DEBUG /D_WINDOWS /DAPR_DECLARE_STATIC $(INCLUDES) $<
 
-tryread.exe: tryread.obj $(LOCAL_LIBS)
-	$(LINK) tryread.obj $(LOCAL_LIBS) $(ALL_LIBS)
+CLEAN_TARGETS = testfile.tmp mod_test.dll proc_child.exe occhild.exe \
+	readchild.exe tryread.exe sockchild.exe \
+	globalmutexchild.exe lfstests/large.bin \
+	data/testputs.txt data/testbigfprintf.dat data/testwritev.txt \
+        data/testwritev_full.txt
+CLEAN_SUBDIRS = internal
+
+INCDIR=../include
+INCLUDES=/I "$(INCDIR)"
+
+# link programs using -no-install to get real executables not
+# libtool wrapper scripts which link an executable when first run.
+LINK_PROG = link.exe /nologo /debug /machine:I386 /subsystem:console /incremental:no 
+LINK_LIB = link.exe /nologo /dll /debug /machine:I386 /subsystem:windows /incremental:no
+
+check: $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
+	for prog in $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE); do \
+		./$$prog; \
+		if test $$? = 255; then \
+			echo "$$prog failed"; \
+			break; \
+		fi; \
+	done
 
 occhild.exe: occhild.obj $(LOCAL_LIBS)
-	$(LINK) occhild.obj $(LOCAL_LIBS) $(ALL_LIBS)
+	$(LINK_PROG) occhild.obj $(LOCAL_LIBS) $(ALL_LIBS)
+
+sockchild.exe: sockchild.obj $(LOCAL_LIBS)
+	$(LINK_PROG) sockchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
 readchild.exe: readchild.obj $(LOCAL_LIBS)
-	$(LINK) readchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
+	$(LINK_PROG) readchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
+
+globalmutexchild.exe: globalmutexchild.obj $(LOCAL_LIBS)
+	$(LINK_PROG) globalmutexchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
+
+tryread.exe: tryread.obj $(LOCAL_LIBS)
+	$(LINK_PROG) tryread.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
 proc_child.exe: proc_child.obj $(LOCAL_LIBS)
-	$(LINK) /debug /subsystem:console /machine:I386 \
-		proc_child.obj $(LOCAL_LIBS) $(ALL_LIBS)
+	$(LINK_PROG) proc_child.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
-# FIXME: This is BS ... we should deal with namespace decoration within the
-# apr_dso_sym() function or within the test (take y'r pick) since many platforms
-# have decoration and decoration issues.
-mod_test.so: mod_test.obj
-	$(LINK) mod_test.obj /dll /out:mod_test.so $(LOCAL_LIBS) $(ALL_LIBS) \
-		/export:print_hello /export:count_reps
+# FIXME: -prefer-pic is only supported with libtool-1.4+
+mod_test.dll: mod_test.obj
+	$(LINK_LIB) mod_test.obj /export:print_hello /export:count_reps $(LOCAL_LIBS) $(ALL_LIBS)
 
 testlockperf.exe: testlockperf.obj $(LOCAL_LIBS)
-	$(LINK) testlockperf.obj $(LOCAL_LIBS) $(ALL_LIBS)
-
-sockchild.exe: sockchild.obj $(LOCAL_LIBS)
-	$(LINK) sockchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
+	$(LINK_PROG) testlockperf.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
 sendfile.exe: sendfile.obj $(LOCAL_LIBS)
-	$(LINK) sendfile.obj $(LOCAL_LIBS) $(ALL_LIBS)
-
-testshm.exe: testshm.obj $(LOCAL_LIBS) testshmproducer.exe testshmconsumer.exe
-	$(LINK) testshm.obj $(LOCAL_LIBS) $(ALL_LIBS)
+	$(LINK_PROG) sendfile.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
 testshmproducer.exe: testshmproducer.obj $(LOCAL_LIBS)
-	$(LINK) testshmproducer.obj $(LOCAL_LIBS) $(ALL_LIBS)
+	$(LINK_PROG) testshmproducer.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
 testshmconsumer.exe: testshmconsumer.obj $(LOCAL_LIBS)
-	$(LINK) testshmconsumer.obj $(LOCAL_LIBS) $(ALL_LIBS)
+	$(LINK_PROG) testshmconsumer.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
 testprocmutex.exe: testprocmutex.obj $(LOCAL_LIBS)
-	$(LINK) testprocmutex.obj $(LOCAL_LIBS) $(ALL_LIBS)
-
-globalmutexchild.exe: globalmutexchild.obj $(LOCAL_LIBS)
-	$(LINK) globalmutexchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
+	$(LINK_PROG) testprocmutex.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
 testmutexscope.exe: testmutexscope.obj $(LOCAL_LIBS)
-	$(LINK) testmutexscope.obj $(LOCAL_LIBS) $(ALL_LIBS)
+	$(LINK_PROG) testmutexscope.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
-TESTS = abts.obj testtime.obj teststr.obj testvsn.obj testipsub.obj \
+TESTS = testutil.obj testtime.obj teststr.obj testvsn.obj testipsub.obj \
 	testmmap.obj testud.obj testtable.obj testsleep.obj testpools.obj \
 	testfmt.obj testfile.obj testdir.obj testfileinfo.obj testrand.obj \
 	testdso.obj testoc.obj testdup.obj testsockets.obj testproc.obj \
 	testpoll.obj testlock.obj testsockopt.obj testpipe.obj testthread.obj \
 	testhash.obj testargs.obj testnames.obj testuser.obj testpath.obj \
 	testenv.obj testprocmutex.obj testrand2.obj testfnmatch.obj \
-        testatomic.obj testflock.obj testshm.obj testsock.obj \
-        testglobalmutex.obj teststrnatcmp.obj testfilecopy.obj \
-        testtemp.obj testlfs.obj testutil.obj
-
-testall.exe: $(TESTS) $(LOCAL_LIBS)
-	$(LINK) /debug /subsystem:console /machine:I386 /out:$@ $(TESTS) \
-		$(LOCAL_LIBS) $(ALL_LIBS)
+        testatomic.obj testflock.obj testshm.obj testsock.obj testglobalmutex.obj \
+        teststrnatcmp.obj testfilecopy.obj testtemp.obj testlfs.obj 
+
+testall.exe: $(TESTS) mod_test.dll occhild.exe \
+	 readchild.exe abts.obj proc_child.exe \
+         tryread.exe sockchild.exe globalmutexchild.exe \
+         $(LOCAL_LIBS)
+	$(LINK_PROG) /out:testall.exe $(TESTS) abts.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
 
 # DO NOT REMOVE

Modified: apr/apr/trunk/test/aprtest.dsp
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/test/aprtest.dsp?rev=280467&r1=280466&r2=280467&view=diff
==============================================================================
--- apr/apr/trunk/test/aprtest.dsp (original)
+++ apr/apr/trunk/test/aprtest.dsp Mon Sep 12 19:50:22 2005
@@ -191,9 +191,5 @@
 
 SOURCE=.\Makefile.in
 # End Source File
-# Begin Source File
-
-SOURCE=.\MakeWin32Make.awk
-# End Source File
 # End Target
 # End Project